CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CLC_Fct_SelectorMessage.h
Go to the documentation of this file.
1 //*********************************************************
2 // File: CLC_Fct_SelectorMessage.h
3 // Project: CopperLan CHAILink Client SDK
4 // Version: 1.3
5 // Release Date: 2014/04/15
6 //*********************************************************
7 
8 /********************************************************************
9 Software License Agreement: CHAILink Client source code
10 
11 The software supplied herewith by Klavis Technology (the “Company”) is intended and
12 supplied to you, the Company’s customer, for use solely and exclusively on embedded
13 CopperLan products needing a CHAILink Client.
14  The software is owned by the Company and/or its supplier, and is protected
15  under applicable copyright laws. All rights are reserved. Any use in violation of the
16  foregoing restrictions may subject the user to criminal sanctions under applicable laws,
17 as well as to civil liability for the breach of the terms and conditions of this license.
18 
19 THIS SOFTWARE MUST REMAIN UNMODIFIED. NO WARRANTIES, WHETHER EXPRESS,
20  IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
21  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE
22 IN CASE OF SOURCE CODE CHANGE BY THE CUSTOMER. IN CASE OF SUCH CHANGE, THE
23 COMPANY SHALL NOT BE LIABLE FOR SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
24 OF ANY KIND.
25 ********************************************************************/
26 
27 #ifndef _CLC_FCT_SELECTIRMESSAGE_H_
28 #define _CLC_FCT_SELECTIRMESSAGE_H_
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 #define SELECTORMESSAGE_PROFILEBITS 8
35 
37 typedef enum
38 {
40  SP_None = 0x0000,
50  SP_PreLoad = 0x0010,
52  SP_Relative = 0x0020,
54  SP_Trigger = 0x0040,
61 
64 typedef struct
65 {
70 
76  union
77  {
79  struct
80  {
87 
90  } Discrete;
91  } Profile;
92 
95 
100 
104  CPSELECTORMSG * const pSelectorMessageData);
105 
108 
113  CPSELECTORMSG const * const pSelectorMessageData);
114 
119  CPSELECTORMSG * const pSelectorMessageData,
120  PerformanceMessageSources const source);
121 
126  CPSELECTORMSG const * const pSelectorMessageData);
127 
133  CPSELECTORMSG * const pSelectorMessageData,
134  RelativeMode const mode );
135 
140  CPSELECTORMSG const * const pSelectorMessageData );
141 
146  CPSELECTORMSG * const pSelectorMessageData,
147  CPBOOLEAN const fValue );
148 
153  CPSELECTORMSG const * const pSelectorMessageData );
154 
159  CPSELECTORMSG * const pSelectorMessageData,
160  CPBOOLEAN const fValue );
161 
166  CPSELECTORMSG const * const pSelectorMessageData );
167 
172  CPSELECTORMSG const * const pSelectorMessageData);
173 
179  CPSELECTORMSG * const pSelectorMessageData);
180 
182 
185 
190  CPSELECTORMSG const * const pSelectorMessageData );
191 
197  CPSELECTORMSG * const pSelectorMessageData,
198  CPUINT16 const wIndex );
199 
204  CPSELECTORMSG const * const pSelectorMessageData );
206 
209 
214  CPSELECTORMSG const * const pSelectorMessageData );
215 
221  CPSELECTORMSG * const pSelectorMessageData,
223 
228  CPSELECTORMSG const * const pSelectorMessageData );
229 
235  CPSELECTORMSG * const pSelectorMessageData,
236  CPBOOLEAN const fValue );
237 
242  CPSELECTORMSG const * const pSelectorMessageData );
243 
249  CPSELECTORMSG * const pSelectorMessageData,
250  CPBOOLEAN const fValue );
251 
256  CPSELECTORMSG const * const pSelectorMessageData );
258 
261 
266  CPSELECTORMSG const * const pSelectorMessageData );
267 
273  CPSELECTORMSG * const pSelectorMessageData,
274  CPUINT16 const wValue );
275 
280  CPSELECTORMSG const * const pSelectorMessageData );
282 
285 
290  CPSELECTORMSG const * const pSelectorMessageData );
291 
298  CPSELECTORMSG * const pSelectorMessageData,
299  CPUINT16 const wVoiceID );
300 
305  CPSELECTORMSG const * const pSelectorMessageData );
307 
310 
315  CPSELECTORMSG * const pSelectorMessageData,
316  TransactionModes const mode );
317 
322  CPSELECTORMSG const * const pSelectorMessageData );
323 
325 
327 
328 #ifdef __cplusplus
329 }
330 #endif
331 
332 #endif // _CLC_FCT_SELECTIRMESSAGE_H_
CPUINT16 wAutomation
Definition: CLC_Fct_SelectorMessage.h:83
Voice ID is present in the message.
Definition: CLC_Fct_SelectorMessage.h:42
SelectorProfiles
Selector profiles.
Definition: CLC_Fct_SelectorMessage.h:37
void SelectorMessage_SetIndex(CPSELECTORMSG *const pSelectorMessageData, CPUINT16 const wIndex)
Set index.
The selector value is a one way relative increment.
Definition: CLC_Fct_SelectorMessage.h:59
PerformanceMessageSources SelectorMessage_GetSourceType(CPSELECTORMSG const *const pSelectorMessageData)
Get profile source.
#define CLC_SDK_API
Definition: CLCm_Platform.h:37
CPUINT16 wMorph
Definition: CLC_Fct_SelectorMessage.h:86
CPUINT16 SelectorMessage_GetProfiles(CPSELECTORMSG const *const pSelectorMessageData)
Get selector message profiles.
CPBOOLEAN SelectorMessage_IsIndexAvailable(CPSELECTORMSG const *const pSelectorMessageData)
Is Index available.
CPUINT16 SelectorMessage_GetMorph(CPSELECTORMSG const *const pSelectorMessageData)
Get Morph value.
void SelectorMessage_SetAutomationState(CPSELECTORMSG *const pSelectorMessageData, PerformanceMessageAutomationStates const state)
Set Automation State.
CPUINT16 wProfiles
Profile bits. (see SelectorProfiles enumeration)
Definition: CLC_Fct_SelectorMessage.h:73
RelativeMode
Message value relative modes.
Definition: CLC_Enums.h:1720
CPBOOLEAN SelectorMessage_GetAutomationTouch(CPSELECTORMSG const *const pSelectorMessageData)
Get Automation Touch.
CPUINT16 wNumber
Message number.
Definition: CLC_Fct_SelectorMessage.h:67
PerformanceMessageAutomationStates
Automation states.
Definition: CLC_Enums.h:1660
CPUINT16 wReserved
Definition: CLC_Fct_SelectorMessage.h:93
CPBOOLEAN SelectorMessage_IsVoiceIDAvailable(CPSELECTORMSG const *const pSelectorMessageData)
Is Voice ID available.
Apply the pre-loaded value.
Definition: CLC_Fct_SelectorMessage.h:54
CPUINT16 wSource
Definition: CLC_Fct_SelectorMessage.h:85
void SelectorMessage_SetPreLoad(CPSELECTORMSG *const pSelectorMessageData, CPBOOLEAN const fValue)
Set profile PreLoad.
TransactionModes SelectorMessage_GetTransaction(CPSELECTORMSG const *const pSelectorMessageData)
Get Profile Transaction.
CPBOOLEAN SelectorMessage_GetTrigger(CPSELECTORMSG const *const pSelectorMessageData)
Get profile Trigger.
CPUINT16 wIndex
Definition: CLC_Fct_SelectorMessage.h:84
void SelectorMessage_SetTransaction(CPSELECTORMSG *const pSelectorMessageData, TransactionModes const mode)
Set Profile Transaction.
unsigned short CPUINT16
Word Integer (16 bit unsigned)
Definition: PlatformTypes.h:45
Automation is present in the message.
Definition: CLC_Fct_SelectorMessage.h:44
Morphing data is present in the message.
Definition: CLC_Fct_SelectorMessage.h:48
void SelectorMessage_SetTrigger(CPSELECTORMSG *const pSelectorMessageData, CPBOOLEAN const fValue)
Set profile Trigger.
RelativeMode SelectorMessage_GetRelativeMode(CPSELECTORMSG const *const pSelectorMessageData)
Get profile relative.
CPBOOLEAN SelectorMessage_IsAutomationAvailable(CPSELECTORMSG const *const pSelectorMessageData)
Is Automation available.
CPBOOLEAN SelectorMessage_GetPreLoad(CPSELECTORMSG const *const pSelectorMessageData)
Get profile PreLoad.
CPUINT16 w_Reserved_
Definition: CLC_Fct_SelectorMessage.h:88
Specify that the value is proportional. 0x0000: first item ... 0xFFFF: last item. ...
Definition: CLC_Fct_SelectorMessage.h:57
void SelectorMessage_SetAutomationWTE(CPSELECTORMSG *const pSelectorMessageData, CPBOOLEAN const fValue)
Set Automation WTE.
void SelectorMessage_SetSourceType(CPSELECTORMSG *const pSelectorMessageData, PerformanceMessageSources const source)
Set profile source.
CPUINT16 w_Reserved1_
Definition: CLC_Fct_SelectorMessage.h:89
CPUINT16 SelectorMessage_GetIndex(CPSELECTORMSG const *const pSelectorMessageData)
Get Index.
void SelectorMessage_SetRelativeMode(CPSELECTORMSG *const pSelectorMessageData, RelativeMode const mode)
Specifies if the value is relative or not. If the value is relative, it can be casted as an int16...
The selector value is a relative increment.
Definition: CLC_Fct_SelectorMessage.h:52
void SelectorMessage_SetVoiceID(CPSELECTORMSG *const pSelectorMessageData, CPUINT16 const wVoiceID)
Set Voice ID.
CPBOOLEAN SelectorMessage_GetAutomationWTE(CPSELECTORMSG const *const pSelectorMessageData)
Get Automation WTE.
void SelectorMessage_SetProportionalValue(CPSELECTORMSG *const pSelectorMessageData)
Specify that the value is proportional. 0x0000: first item ... 0xFFFF: last item. ...
void SelectorMessage_SetAutomationTouch(CPSELECTORMSG *const pSelectorMessageData, CPBOOLEAN const fValue)
Set Automation Touch.
This structure stores data from a selector message.
Definition: CLC_Fct_SelectorMessage.h:64
CPUINT16 wTransaction
Definition: CLC_Fct_SelectorMessage.h:81
Pre-load value without committing now.
Definition: CLC_Fct_SelectorMessage.h:50
void SelectorMessage_Clear(CPSELECTORMSG *const pSelectorMessageData)
Clear selector message structure.
No profile.
Definition: CLC_Fct_SelectorMessage.h:40
CPUINT16 wVoiceID
Definition: CLC_Fct_SelectorMessage.h:82
Index is present in the message.
Definition: CLC_Fct_SelectorMessage.h:46
PerformanceMessageSources
Performance message source.
Definition: CLC_Enums.h:1673
CPBOOLEAN SelectorMessage_IsMorphAvailable(CPSELECTORMSG const *const pSelectorMessageData)
Is Morph available.
void SelectorMessage_SetMorph(CPSELECTORMSG *const pSelectorMessageData, CPUINT16 const wValue)
Set Morph.
CPUINT16 SelectorMessage_GetVoiceID(CPSELECTORMSG const *const pSelectorMessageData)
Get Voice ID.
#define SELECTORMESSAGE_PROFILEBITS
Definition: CLC_Fct_SelectorMessage.h:34
PerformanceMessageAutomationStates SelectorMessage_GetAutomationState(CPSELECTORMSG const *const pSelectorMessageData)
Get Automation State.
CPUINT16 wValue
Message value.
Definition: CLC_Fct_SelectorMessage.h:69
TransactionModes
Transaction modes.
Definition: CLC_Enums.h:2318
CPBOOLEAN SelectorMessage_GetProportionalValue(CPSELECTORMSG const *const pSelectorMessageData)
Check if the value is proportional (0x0000 - 0xFFFF)