CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CLC_Fct_ModifierMessage.h
Go to the documentation of this file.
1 //*********************************************************
2 // File: CLC_Fct_ModifierMessage.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_MODIFIERMESSAGE_H_
28 #define _CLC_FCT_MODIFIERMESSAGE_H_
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 #define MODIFIERMESSAGE_PROFILEBITS 8
35 
37 typedef enum
38 {
40  MP_None = 0x0000,
50  MP_PreLoad = 0x0010,
52  MP_Relative = 0x0020,
54  MP_Trigger = 0x0040,
58 
61 typedef struct
62 {
67 
73  union
74  {
76 
79  struct
80  {
87 
90  } Discrete;
91  } Profile;
93 
98 
102  CPMODIFIERMSG * const pModifierMessageData);
103 
106 
111  CPMODIFIERMSG const * const pModifierMessageData);
112 
118  CPMODIFIERMSG * const pModifierMessageData,
119  PerformanceMessageSources const source);
120 
126  CPMODIFIERMSG const * const pModifierMessageData);
127 
134  CPMODIFIERMSG * const pModifierMessageData,
135  RelativeMode const mode);
136 
141  CPMODIFIERMSG const * const pModifierMessageData);
142 
147  CPMODIFIERMSG * const pModifierMessageData,
148  CPBOOLEAN const fValue);
149 
154  CPMODIFIERMSG const * const pModifierMessageData);
155 
160  CPMODIFIERMSG * const pModifierMessageData,
161  CPBOOLEAN const fValue);
162 
167  CPMODIFIERMSG const * const pModifierMessageData);
169 
172 
177  CPMODIFIERMSG const * const pModifierMessageData);
178 
184  CPMODIFIERMSG * const pModifierMessageData,
185  CPUINT16 const wIndex);
186 
191  CPMODIFIERMSG const * const pModifierMessageData);
193 
196 
201  CPMODIFIERMSG const * const pModifierMessageData);
202 
208  CPMODIFIERMSG* const pModifierMessageData,
210 
215  CPMODIFIERMSG const * const pModifierMessageData);
216 
222  CPMODIFIERMSG* const pModifierMessageData,
223  CPBOOLEAN const fValue);
224 
229  CPMODIFIERMSG const * const pModifierMessageData);
230 
236  CPMODIFIERMSG * const pModifierMessageData,
237  CPBOOLEAN const fValue);
238 
243  CPMODIFIERMSG const * const pModifierMessageData);
245 
248 
253  CPMODIFIERMSG const * const pModifierMessageData);
254 
260  CPMODIFIERMSG * const pModifierMessageData,
261  CPUINT16 const wValue);
262 
267  CPMODIFIERMSG const * const pModifierMessageData);
269 
272 
277  CPMODIFIERMSG const * const pModifierMessageData);
278 
285  CPMODIFIERMSG * const pModifierMessageData,
286  CPUINT16 const wVoiceID);
287 
292  CPMODIFIERMSG const * const pModifierMessageData);
294 
297 
302  CPMODIFIERMSG * const pModifierMessageData,
303  TransactionModes const mode);
304 
309  CPMODIFIERMSG const * const pModifierMessageData);
310 
312 
314 
315 #ifdef __cplusplus
316 }
317 #endif
318 
319 #endif // _CLC_FCT_MODIFIERMESSAGE_H_
CPUINT16 wProfiles
Profile bits. (see ModifierProfiles enumeration)
Definition: CLC_Fct_ModifierMessage.h:70
void ModifierMessage_SetVoiceID(CPMODIFIERMSG *const pModifierMessageData, CPUINT16 const wVoiceID)
Set Voice ID.
CPBOOLEAN ModifierMessage_IsIndexAvailable(CPMODIFIERMSG const *const pModifierMessageData)
Is Index available.
CPUINT16 wSource
Definition: CLC_Fct_ModifierMessage.h:85
Voice ID is present in the message.
Definition: CLC_Fct_ModifierMessage.h:42
ModifierProfiles
Modifier profiles.
Definition: CLC_Fct_ModifierMessage.h:37
void ModifierMessage_Clear(CPMODIFIERMSG *const pModifierMessageData)
Clear modifier message structure.
#define CLC_SDK_API
Definition: CLCm_Platform.h:37
Pre-load value without committing now.
Definition: CLC_Fct_ModifierMessage.h:50
PerformanceMessageAutomationStates ModifierMessage_GetAutomationState(CPMODIFIERMSG const *const pModifierMessageData)
Get Automation State.
Index is present in the message.
Definition: CLC_Fct_ModifierMessage.h:46
CPUINT16 ModifierMessage_GetProfiles(CPMODIFIERMSG const *const pModifierMessageData)
Get modifier message profiles.
#define MODIFIERMESSAGE_PROFILEBITS
Definition: CLC_Fct_ModifierMessage.h:34
void ModifierMessage_SetSourceType(CPMODIFIERMSG *const pModifierMessageData, PerformanceMessageSources const source)
Set the Source type Tells about the message's kind of source.
void ModifierMessage_SetPreLoad(CPMODIFIERMSG *const pModifierMessageData, CPBOOLEAN const fValue)
Set profile PreLoad.
RelativeMode
Message value relative modes.
Definition: CLC_Enums.h:1720
CPBOOLEAN ModifierMessage_IsMorphAvailable(CPMODIFIERMSG const *const pModifierMessageData)
Is Morph available.
CPBOOLEAN ModifierMessage_GetTrigger(CPMODIFIERMSG const *const pModifierMessageData)
Get profile Trigger.
CPUINT16 wTransaction
Definition: CLC_Fct_ModifierMessage.h:81
CPUINT16 wVoiceID
Definition: CLC_Fct_ModifierMessage.h:82
void ModifierMessage_SetRelativeMode(CPMODIFIERMSG *const pModifierMessageData, RelativeMode const mode)
Specifies if the value is relative or not. If the value is relative, it can be casted as an int16...
The modifier value is a relative increment.
Definition: CLC_Fct_ModifierMessage.h:52
CPBOOLEAN ModifierMessage_IsVoiceIDAvailable(CPMODIFIERMSG const *const pModifierMessageData)
Is Voice ID available.
PerformanceMessageAutomationStates
Automation states.
Definition: CLC_Enums.h:1660
void ModifierMessage_SetAutomationTouch(CPMODIFIERMSG *const pModifierMessageData, CPBOOLEAN const fValue)
Set Automation Touch.
This structure stores data from a modifier message.
Definition: CLC_Fct_ModifierMessage.h:61
void ModifierMessage_SetIndex(CPMODIFIERMSG *const pModifierMessageData, CPUINT16 const wIndex)
Set index.
void ModifierMessage_SetAutomationWTE(CPMODIFIERMSG *const pModifierMessageData, CPBOOLEAN const fValue)
Set Automation WTE.
CPBOOLEAN ModifierMessage_GetAutomationWTE(CPMODIFIERMSG const *const pModifierMessageData)
Get Automation WTE.
unsigned short CPUINT16
Word Integer (16 bit unsigned)
Definition: PlatformTypes.h:45
TransactionModes ModifierMessage_GetTransaction(CPMODIFIERMSG const *const pModifierMessageData)
Get Profile Transaction.
The modifier value is a one way relative increment.
Definition: CLC_Fct_ModifierMessage.h:56
void ModifierMessage_SetTransaction(CPMODIFIERMSG *const pModifierMessageData, TransactionModes const mode)
Set Profile Transaction.
Morphing data is present in the message.
Definition: CLC_Fct_ModifierMessage.h:48
void ModifierMessage_SetMorph(CPMODIFIERMSG *const pModifierMessageData, CPUINT16 const wValue)
Set Morph.
CPUINT16 wIndex
Definition: CLC_Fct_ModifierMessage.h:84
void ModifierMessage_SetAutomationState(CPMODIFIERMSG *const pModifierMessageData, PerformanceMessageAutomationStates const state)
Set Automation State.
CPBOOLEAN ModifierMessage_GetPreLoad(CPMODIFIERMSG const *const pModifierMessageData)
Get profile PreLoad.
CPBOOLEAN ModifierMessage_IsAutomationAvailable(CPMODIFIERMSG const *const pModifierMessageData)
Is Automation available.
CPUINT16 wNumber
Message number.
Definition: CLC_Fct_ModifierMessage.h:64
CPUINT16 wMorph
Definition: CLC_Fct_ModifierMessage.h:86
CPVALUE Value
Message value.
Definition: CLC_Fct_ModifierMessage.h:66
RelativeMode ModifierMessage_GetRelativeMode(CPMODIFIERMSG const *const pModifierMessageData)
Get profile relative.
CPUINT16 ModifierMessage_GetVoiceID(CPMODIFIERMSG const *const pModifierMessageData)
Get Voice ID.
No profile.
Definition: CLC_Fct_ModifierMessage.h:40
Apply the pre-loaded value.
Definition: CLC_Fct_ModifierMessage.h:54
The container structure for Value. Use CPValue Functions CPVALUE_xxx functions to handle this structu...
Definition: CLC_Types.h:117
CPUINT16 wAutomation
Definition: CLC_Fct_ModifierMessage.h:83
CPUINT16 ModifierMessage_GetIndex(CPMODIFIERMSG const *const pModifierMessageData)
Get Index.
PerformanceMessageSources
Performance message source.
Definition: CLC_Enums.h:1673
PerformanceMessageSources ModifierMessage_GetSourceType(CPMODIFIERMSG const *const pModifierMessageData)
Get the Source type Tells about the message's kind of source.
Automation is present in the message.
Definition: CLC_Fct_ModifierMessage.h:44
CPUINT16 w_Reserved1_
Definition: CLC_Fct_ModifierMessage.h:89
void ModifierMessage_SetTrigger(CPMODIFIERMSG *const pModifierMessageData, CPBOOLEAN const fValue)
Set profile Trigger.
CPBOOLEAN ModifierMessage_GetAutomationTouch(CPMODIFIERMSG const *const pModifierMessageData)
Get Automation Touch.
CPUINT16 ModifierMessage_GetMorph(CPMODIFIERMSG const *const pModifierMessageData)
Get Morph value.
TransactionModes
Transaction modes.
Definition: CLC_Enums.h:2318
CPUINT16 w_Reserved_
Definition: CLC_Fct_ModifierMessage.h:88