CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CLC_Fct_TextMessage.h
Go to the documentation of this file.
1 //*********************************************************
2 // File: CLC_Fct_TextMessage.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_TEXTMESSAGE_H_
28 #define _CLC_FCT_TEXTMESSAGE_H_
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 #define TEXTMESSAGE_PROFILEBITS 8
35 
37 typedef enum
38 {
40  TP_None = 0x0000,
48  TP_PreLoad = 0x0010,
50  TP_Trigger = 0x0040
51 }TextProfiles;
52 
55 typedef struct
56 {
59 
63 
68 
71  union
72  {
74  struct
77  {
82 
87  } Discrete;
88  } Profile;
89 } CPTEXTMSG;
90 
95 
99  CPTEXTMSG * const pTextMessageData );
100 
103 
108  CPTEXTMSG const * const pTextMessageData );
110 
113 
118  CPTEXTMSG const * const pTextMessageData );
119 
125  CPTEXTMSG * const pTextMessageData,
126  CPUINT16 const wIndex );
127 
132  CPTEXTMSG const * const pTextMessageData );
134 
137 
142  CPTEXTMSG const * const pTextMessageData );
143 
149  CPTEXTMSG* const pTextMessageData,
150  PerformanceMessageAutomationStates const eValue );
151 
156  CPTEXTMSG const * const pTextMessageData );
157 
163  CPTEXTMSG* const pTextMessageData,
164  CPBOOLEAN const fValue );
165 
170  CPTEXTMSG const * const pTextMessageData );
171 
177  CPTEXTMSG* const pTextMessageData,
178  CPBOOLEAN const fValue );
179 
184  CPTEXTMSG const * const pTextMessageData );
186 
189 
194  CPTEXTMSG const * const pTextMessageData );
195 
202  CPTEXTMSG* const pTextMessageData,
203  CPUINT16 const wVoiceID );
204 
209  CPTEXTMSG const * const pTextMessageData );
211 
214 
219  CPTEXTMSG* const pTextMessageData,
220  TransactionModes const eMode );
221 
226  CPTEXTMSG const * const pTextMessageData );
227 
232  CPTEXTMSG* const pTextMessageData,
233  CPBOOLEAN const fValue );
234 
239  CPTEXTMSG const * const pTextMessageData );
240 
245  CPTEXTMSG* const pTextMessageData,
246  CPBOOLEAN const fValue );
247 
252  CPTEXTMSG const * const pTextMessageData );
253 
255 
257 
258 #ifdef __cplusplus
259 }
260 #endif
261 
262 #endif // _CLC_FCT_TEXTMESSAGE_H_
CPUINT16 wNumber
Message number.
Definition: CLC_Fct_TextMessage.h:58
CPUINT16 wIndex
Definition: CLC_Fct_TextMessage.h:81
Apply the pre-loaded value.
Definition: CLC_Fct_TextMessage.h:50
TextProfiles
Text profiles.
Definition: CLC_Fct_TextMessage.h:37
#define CLC_SDK_API
Definition: CLCm_Platform.h:37
CPBOOLEAN TextMessage_IsVoiceIDAvailable(CPTEXTMSG const *const pTextMessageData)
Is Voice ID available.
Pre-load value without committing now.
Definition: CLC_Fct_TextMessage.h:48
CPBOOLEAN TextMessage_GetAutomationTouch(CPTEXTMSG const *const pTextMessageData)
Get Automation Touch.
CPUINT16 wTransaction
Definition: CLC_Fct_TextMessage.h:78
CPUINT16 TextMessage_GetIndex(CPTEXTMSG const *const pTextMessageData)
Get Index.
PerformanceMessageAutomationStates TextMessage_GetAutomationState(CPTEXTMSG const *const pTextMessageData)
Get Automation State.
void TextMessage_SetPreLoad(CPTEXTMSG *const pTextMessageData, CPBOOLEAN const fValue)
Set profile PreLoad.
void TextMessage_SetAutomationWTE(CPTEXTMSG *const pTextMessageData, CPBOOLEAN const fValue)
Set Automation WTE.
This structure stores data from a text message.
Definition: CLC_Fct_TextMessage.h:55
CPUINT16 wVoiceID
Definition: CLC_Fct_TextMessage.h:79
CPUINT16 wProfiles
Profile bits.
Definition: CLC_Fct_TextMessage.h:62
CPUINT16 w_Reserved3_
Definition: CLC_Fct_TextMessage.h:86
CPUINT16 wAutomation
Definition: CLC_Fct_TextMessage.h:80
char CPCHAR8
Character Type (8 bit signed)
Definition: PlatformTypes.h:66
PerformanceMessageAutomationStates
Automation states.
Definition: CLC_Enums.h:1660
void TextMessage_Clear(CPTEXTMSG *const pTextMessageData)
Clear text message structure.
void TextMessage_SetVoiceID(CPTEXTMSG *const pTextMessageData, CPUINT16 const wVoiceID)
Set Voice ID.
No profile.
Definition: CLC_Fct_TextMessage.h:40
CPBOOLEAN TextMessage_IsIndexAvailable(CPTEXTMSG const *const pTextMessageData)
Is Index available.
unsigned short CPUINT16
Word Integer (16 bit unsigned)
Definition: PlatformTypes.h:45
CPBOOLEAN TextMessage_IsAutomationAvailable(CPTEXTMSG const *const pTextMessageData)
Is Automation available.
CPUINT16 w_Reserved2_
Definition: CLC_Fct_TextMessage.h:85
CPUINT16 w_Reserved_
Definition: CLC_Fct_TextMessage.h:83
Automation is present in the message.
Definition: CLC_Fct_TextMessage.h:44
#define TEXTMESSAGE_PROFILEBITS
Definition: CLC_Fct_TextMessage.h:34
CPUINT16 w_Reserved1_
Definition: CLC_Fct_TextMessage.h:84
CPUINT16 TextMessage_GetProfiles(CPTEXTMSG const *const pTextMessageData)
Get text message profiles.
void TextMessage_SetTransaction(CPTEXTMSG *const pTextMessageData, TransactionModes const eMode)
Set Profile Transaction.
CPBOOLEAN TextMessage_GetAutomationWTE(CPTEXTMSG const *const pTextMessageData)
Get Automation WTE.
void TextMessage_SetAutomationTouch(CPTEXTMSG *const pTextMessageData, CPBOOLEAN const fValue)
Set Automation Touch.
CPCHAR8 * utf8Value
Message value.
Definition: CLC_Fct_TextMessage.h:67
CPBOOLEAN TextMessage_GetPreLoad(CPTEXTMSG const *const pTextMessageData)
Get profile PreLoad.
void TextMessage_SetTrigger(CPTEXTMSG *const pTextMessageData, CPBOOLEAN const fValue)
Set profile Trigger.
CPBOOLEAN TextMessage_GetTrigger(CPTEXTMSG const *const pTextMessageData)
Get profile Trigger.
Voice ID is present in the message.
Definition: CLC_Fct_TextMessage.h:42
TransactionModes TextMessage_GetTransaction(CPTEXTMSG const *const pTextMessageData)
Get Profile Transaction.
Index is present in the message.
Definition: CLC_Fct_TextMessage.h:46
CPUINT16 TextMessage_GetVoiceID(CPTEXTMSG const *const pTextMessageData)
Get Voice ID.
void TextMessage_SetIndex(CPTEXTMSG *const pTextMessageData, CPUINT16 const wIndex)
Set index.
void TextMessage_SetAutomationState(CPTEXTMSG *const pTextMessageData, PerformanceMessageAutomationStates const eValue)
Set Automation State.
TransactionModes
Transaction modes.
Definition: CLC_Enums.h:2318