CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CLC_Fct_EventMessage.h
Go to the documentation of this file.
1 //*********************************************************
2 // File: CLC_Fct_EventMessage.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_EVENTMESSAGE_H_
28 #define _CLC_FCT_EVENTMESSAGE_H_
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 #define EVENTMESSAGE_PROFILEBITS 8
35 
37 typedef enum
38 {
40  EP_None = 0x0000,
46  EP_ToneAvailable = 0x0004,
50  EP_OffsetTone = 0x0010,
54 
57 typedef struct
58 {
62  union
63  {
65  struct
66  {
69 
74 
77  } Discrete;
78  } Profile;
79 
81 }CPEVENTMSG;
82 
87 
91  CPEVENTMSG * const pEventMessageData);
92 
95 
100  CPEVENTMSG const * const pEventMessageData);
101 
106  CPEVENTMSG * const pEventMessageData,
107  EventGateModes const gate);
108 
113  CPEVENTMSG const * const pEventMessageData);
114 
119  CPEVENTMSG * const pEventMessageData,
120  CPBOOLEAN const fValue);
121 
126  CPEVENTMSG const * const pEventMessageData );
128 
131 
136  CPEVENTMSG const * const pEventMessageData);
137 
142  CPEVENTMSG* const pEventMessageData,
143  CPUINT16 const wValue);
144 
149  CPEVENTMSG const * const pEventMessageData);
150 
157  CPEVENTMSG * const pEventMessageData,
158  EventWaveBoundaries const values);
159 
164  CPEVENTMSG const * const pEventMessageData);
165 
172  CPEVENTMSG * const pEventMessageData,
173  CPBOOLEAN const fValue);
174 
179  CPEVENTMSG const * const pEventMessageData);
181 
184 
189  CPEVENTMSG const * const pEventMessageData);
190 
197  CPEVENTMSG * const pEventMessageData,
198  CPUINT16 const wImpulse);
199 
204  CPEVENTMSG const * const pEventMessageData);
206 
209 
214  CPEVENTMSG const * const pEventMessageData);
215 
222  CPEVENTMSG* const pEventMessageData,
223  CPUINT16 const wTone);
224 
229  CPEVENTMSG const * const pEventMessageData);
231 
234 
239  CPEVENTMSG const * const pEventMessageData);
240 
247  CPEVENTMSG * const pEventMessageData,
248  CPUINT16 const wVoiceID);
249 
254  CPEVENTMSG const * const pEventMessageData);
256 
259 
264  CPEVENTMSG* const pEventMessageData,
265  TransactionModes const mode);
266 
271  CPEVENTMSG const * const pEventMessageData);
273 
275 
276 #ifdef __cplusplus
277 }
278 #endif
279 
280 #endif // _CLC_FCT_EVENTMESSAGE_H_
CPUINT16 wWaveSettings
Definition: CLC_Fct_EventMessage.h:73
TransactionModes EventMessage_GetTransaction(CPEVENTMSG const *const pEventMessageData)
Get Profile Transaction.
void EventMessage_SetGate(CPEVENTMSG *const pEventMessageData, EventGateModes const gate)
Set profiles gate.
EventGateModes EventMessage_GetGate(CPEVENTMSG const *const pEventMessageData)
Get profiles gate.
EventProfiles
Event profiles.
Definition: CLC_Fct_EventMessage.h:37
CPBOOLEAN EventMessage_IsVoiceIDAvailable(CPEVENTMSG const *const pEventMessageData)
Is Voice ID available.
#define CLC_SDK_API
Definition: CLCm_Platform.h:37
void EventMessage_SetImpulse(CPEVENTMSG *const pEventMessageData, CPUINT16 const wImpulse)
Set Impulse.
CPBOOLEAN EventMessage_GetOffsetTone(CPEVENTMSG const *const pEventMessageData)
Get profiles offset tone.
#define EVENTMESSAGE_PROFILEBITS
Definition: CLC_Fct_EventMessage.h:34
The tone information is relative.
Definition: CLC_Fct_EventMessage.h:50
Tone is present in the message.
Definition: CLC_Fct_EventMessage.h:46
CPUINT16 wVoiceID
Definition: CLC_Fct_EventMessage.h:68
CPUINT16 wProfiles
Profile bits. (see EventProfiles enumeration)
Definition: CLC_Fct_EventMessage.h:60
CPBOOLEAN EventMessage_IsImpulseAvailable(CPEVENTMSG const *const pEventMessageData)
Is Impulse available.
CPUINT16 wReserved
Definition: CLC_Fct_EventMessage.h:80
This structure stores data from an event message.
Definition: CLC_Fct_EventMessage.h:57
CPUINT16 wGate
Definition: CLC_Fct_EventMessage.h:72
CPUINT16 EventMessage_GetVoiceID(CPEVENTMSG const *const pEventMessageData)
Get Voice ID.
void EventMessage_SetWaveSettingBoundaries(CPEVENTMSG *const pEventMessageData, EventWaveBoundaries const values)
Set Wave Setting Boundaries.
CPUINT16 wTransaction
Definition: CLC_Fct_EventMessage.h:67
CPBOOLEAN EventMessage_IsToneAvailable(CPEVENTMSG const *const pEventMessageData)
Is Tone available.
void EventMessage_SetVoiceID(CPEVENTMSG *const pEventMessageData, CPUINT16 const wVoiceID)
Set Voice ID.
void EventMessage_SetWaveSettingStartPoint(CPEVENTMSG *const pEventMessageData, CPUINT16 const wValue)
Set Wave Setting Start Point.
The event is a Note Off that should be translated in Note On Vel(0) in case of CP->MIDI.
Definition: CLC_Fct_EventMessage.h:52
void EventMessage_SetOffsetTone(CPEVENTMSG *const pEventMessageData, CPBOOLEAN const fValue)
Set profiles offset tone.
void EventMessage_Clear(CPEVENTMSG *const pEventMessageData)
Clear event message structure.
CPUINT16 wImpulse
Definition: CLC_Fct_EventMessage.h:71
EventGateModes
Event message Gate modes.
Definition: CLC_Enums.h:1027
Wave Settings is present in the message.
Definition: CLC_Fct_EventMessage.h:48
unsigned short CPUINT16
Word Integer (16 bit unsigned)
Definition: PlatformTypes.h:45
CPUINT16 w_Reserved_
Definition: CLC_Fct_EventMessage.h:75
CPBOOLEAN EventMessage_GetWaveSettingReset(CPEVENTMSG const *const pEventMessageData)
Get Wave Setting Reset.
void EventMessage_SetTone(CPEVENTMSG *const pEventMessageData, CPUINT16 const wTone)
Set Tone.
CPUINT16 EventMessage_GetTone(CPEVENTMSG const *const pEventMessageData)
Get Tone.
CPUINT16 wTone
Definition: CLC_Fct_EventMessage.h:70
CPBOOLEAN EventMessage_IsWaveSettingAvailable(CPEVENTMSG const *const pEventMessageData)
Is Wave Setting available.
VoiceID is present in the message.
Definition: CLC_Fct_EventMessage.h:42
CPUINT16 EventMessage_GetProfiles(CPEVENTMSG const *const pEventMessageData)
Get event message profiles.
EventWaveBoundaries EventMessage_GetWaveSettingBoundaries(CPEVENTMSG const *const pEventMessageData)
Get Wave Setting Boundaries.
CPUINT16 EventMessage_GetImpulse(CPEVENTMSG const *const pEventMessageData)
Get Impulse.
void EventMessage_SetWaveSettingReset(CPEVENTMSG *const pEventMessageData, CPBOOLEAN const fValue)
Set Wave Setting Reset.
CPUINT16 w_Reserved2_
Definition: CLC_Fct_EventMessage.h:76
Impulse is present in the message.
Definition: CLC_Fct_EventMessage.h:44
CPUINT16 EventMessage_GetWaveSettingStartPoint(CPEVENTMSG const *const pEventMessageData)
Get Wave Setting Start Point.
No profile.
Definition: CLC_Fct_EventMessage.h:40
void EventMessage_SetTransaction(CPEVENTMSG *const pEventMessageData, TransactionModes const mode)
Set Profile Transaction.
EventWaveBoundaries
Event Wave Settings boundaries.
Definition: CLC_Enums.h:1052
TransactionModes
Transaction modes.
Definition: CLC_Enums.h:2318