CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CLC_Fct_Input.h
Go to the documentation of this file.
1 //*********************************************************
2 // File: CLC_Fct_Input.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_INPUT_H_
28 #define _CLC_FCT_INPUT_H_
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 #if defined(ENABLE_INPUT)
35 
44 
52  CPHOBJECT const hInput);
53 
59  CPHOBJECT const hInput);
60 
61 #if defined(ENABLE_CLOCK)
69  CPHOBJECT const hInput);
70 
76  CPHOBJECT const hInput);
77 #endif // defined(ENABLE_CLOCK)
78 
79 #if defined(ENABLE_PARAMETER)
87  CPHOBJECT const hInput);
88 
94  CPHOBJECT const hInput);
95 #endif // defined(ENABLE_PARAMETER)
96 
105  CPHOBJECT const hInput,
106  CPBOOLEAN const fTimestamp);
107 #endif // defined(ENABLE_INPUT)
108 
112 
120  CPHOBJECT const hInput,
121  CPINPUTINFO * const pInputInfo);
122 
130  CPHOBJECT const hInput,
131  CPCHAR8 const ** const putf8Name);
132 
139  CPHOBJECT const hInput,
140  CPCHAR8 const * const utf8Name);
141 
149  CPHOBJECT const hInput,
150  CPCHAR8 const ** const putf8Path);
151 
158  CPHOBJECT const hInput,
159  CPSECTIONID const * const pSectionID);
160 
167  CPHOBJECT const hInput,
168  InOutCapabilities const inputCaps);
169 
175  InOutCapabilities const inputCaps,
176  InOutCapabilities const outputCaps );
177 
179 
182 
191  CPHOBJECT const hInput,
192  CPENDPOINT const * const pSource);
193 
201  CPHOBJECT const hInput,
202  CPUINT16 const wSourceIndex,
203  CPENDPOINT * const pEndpoint);
204 
206 
207 
210 
231  CPHOBJECT const hInput,
232  CPCHAR8 const * const utf8Name,
233  CPUINT16 const wMsgNum,
234  CPHOBJECT const hIndexList,
235  CPUINT16 const wMidPointValue,
236  CPCHAR8 const * const utf8LabelMin,
237  CPCHAR8 const * const utf8LabelMidPoint,
238  CPCHAR8 const * const utf8LabelMax,
239  DataTypes const preferredDataType,
240  CPUINT16 const wGroup,
241  ModifierInformationProfiles const informationProfiles,
242  ControllerTypes const preferredControllerType,
243  CPUINT32 const dwParameterUserData,
244  CPHOBJECT * const phParameter);
245 
262  CPHOBJECT const hInput,
263  CPCHAR8 const * const utf8Name,
264  CPUINT16 const wMsgNum,
265  CPHOBJECT const hIndexList,
266  CPHOBJECT const hSelectorItemList,
267  CPUINT16 const wGroup,
268  SelectorInformationProfiles const informationProfiles,
269  ControllerTypes const preferredControllerType,
270  CPUINT32 const dwParameterUserData,
271  CPHOBJECT * const phParameter);
272 
288  CPHOBJECT const hInput,
289  CPCHAR8 const * const utf8Name,
290  CPUINT16 const wMsgNum,
291  CPHOBJECT const hIndexList,
292  CPUINT16 const wGroup,
293  TextInformationProfiles const informationProfiles,
294  ControllerTypes const preferredControllerType,
295  CPUINT32 const dwParameterUserData,
296  CPHOBJECT * const phParameter);
297 
306  CPHOBJECT const hInput,
307  CPCHAR8 const * const utf8Text,
308  CPUINT16 const wGroup);
309 
317  CPHOBJECT const hInput);
318 
326  CPHOBJECT const hInput);
327 
342  CPHOBJECT const hParameter,
343  CPUINT16 const wIndex,
344  CPVALUE const * const pValue,
345  CPCHAR8 const * const utf8ValueText,
346  RefreshValueAttributes const attributes);
347 
362  CPHOBJECT const hParameter,
363  CPUINT16 const wIndex,
364  CPUINT16 const wValue,
365  RefreshValueAttributes const attributes);
366 
378  CPHOBJECT const hParameter,
379  CPUINT16 const wIndex,
380  CPCHAR8 const * const utf8ValueText,
381  RefreshValueAttributes const attributes);
382 
395  CPHOBJECT const hParameter,
396  CPUINT16 const wIndex,
397  CPUINT16 const wRawValue);
398 
408  CPHOBJECT const hParameter,
409  DataTypes const dataType,
410  CPVALUE const * const pMinValue,
411  CPVALUE const * const pMidValue,
412  CPVALUE const * const pMaxValue);
413 
415 
418 
433  CPHOBJECT const hInput,
434  CPUINT16 const wSignalNumber,
435  CPUINT16 const wOptionalData0,
436  CPUINT16 const wOptionalData1,
437  CPUINT16 const wOptionalData2,
438  CPUINT16 const wOptionalData3,
439  CPCHAR8 const * const utf8OptionalData,
440  CPENDPOINT const * const pOptionalEndPoint);
441 
448  CPHOBJECT const hInput);
449 
450 
452 
455 
463  CPHOBJECT const hInput,
464  CPUINT8 const bCPQNMultiplier);
465 
467 
469 
470 #ifdef __cplusplus
471 }
472 #endif
473 
474 #endif // _CLC_FCT_INPUT_H_
CLC_ErrorCode Input_ActivateMessageTimestamp(CPHOBJECT const hInput, CPBOOLEAN const fTimestamp)
Activate or deactivate timestamps in the message reception additional message informations (See notif...
ModifierInformationProfiles
Modifier information profiles.
Definition: CLC_Enums.h:1473
CLC_ErrorCode Input_GetSource(CPHOBJECT const hInput, CPUINT16 const wSourceIndex, CPENDPOINT *const pEndpoint)
Get a source.
CLC_ErrorCode Input_ClearParameterDefinition(CPHOBJECT const hInput)
Clear the whole set of parameters related to this Input.
CLC_ErrorCode Parameter_RefreshCurrentSelectorParameterValue(CPHOBJECT const hParameter, CPUINT16 const wIndex, CPUINT16 const wValue, RefreshValueAttributes const attributes)
Notify the connected Outputs & Controllers about a Selector parameter change. This causes an immediat...
CLC_ErrorCode Input_UnregisterClockListenerControlNotificationHandler(CPHOBJECT const hInput)
Unregister Clock Listener Control notification handler for the specified input.
#define CLC_SDK_API
Definition: CLCm_Platform.h:37
Container structure for Section ID Each Input is associated to a SectionID giving information about i...
Definition: CLC_Types.h:67
DataTypes
CopperLan Data types Data Types are used to identify numeric value format.
Definition: CLC_Enums.h:389
CLC_ErrorCode Input_AddSelectorParameter(CPHOBJECT const hInput, CPCHAR8 const *const utf8Name, CPUINT16 const wMsgNum, CPHOBJECT const hIndexList, CPHOBJECT const hSelectorItemList, CPUINT16 const wGroup, SelectorInformationProfiles const informationProfiles, ControllerTypes const preferredControllerType, CPUINT32 const dwParameterUserData, CPHOBJECT *const phParameter)
Add a Selector parameter.
CLC_ErrorCode
Error code Enumeration. Error codes from 0x01 to 0xFF are related to a CopperLan functions return cod...
Definition: CLCm_Defines.h:469
CLC_ErrorCode Input_AddModifierParameter(CPHOBJECT const hInput, CPCHAR8 const *const utf8Name, CPUINT16 const wMsgNum, CPHOBJECT const hIndexList, CPUINT16 const wMidPointValue, CPCHAR8 const *const utf8LabelMin, CPCHAR8 const *const utf8LabelMidPoint, CPCHAR8 const *const utf8LabelMax, DataTypes const preferredDataType, CPUINT16 const wGroup, ModifierInformationProfiles const informationProfiles, ControllerTypes const preferredControllerType, CPUINT32 const dwParameterUserData, CPHOBJECT *const phParameter)
Add a Modifier parameter.
TextInformationProfiles
Text information profiles.
Definition: CLC_Enums.h:2265
CLC_ErrorCode Input_RegisterClockListenerControlNotificationHandler(CPHOBJECT const hInput)
Register Clock Listener Control notification handler for the specified input.
char CPCHAR8
Character Type (8 bit signed)
Definition: PlatformTypes.h:66
unsigned char CPUINT8
Byte Integer (8 bit unsigned)
Definition: PlatformTypes.h:42
CLC_ErrorCode Input_Signal(CPHOBJECT const hInput, CPUINT16 const wSignalNumber, CPUINT16 const wOptionalData0, CPUINT16 const wOptionalData1, CPUINT16 const wOptionalData2, CPUINT16 const wOptionalData3, CPCHAR8 const *const utf8OptionalData, CPENDPOINT const *const pOptionalEndPoint)
Send a multicast signal directed to all devices present in the source set.
SelectorInformationProfiles
Selector information profiles This combination of values can be handled by CPNS::CombinedSelectorInfo...
Definition: CLC_Enums.h:1962
ControllerTypes
Controller types It is composed of the supported message types and the physical controller descriptio...
Definition: CLC_Enums.h:210
CLC_ErrorCode Input_GetInfo(CPHOBJECT const hInput, CPINPUTINFO *const pInputInfo)
Get Input Informations.
CLC_ErrorCode Input_RefreshParameterDefinition(CPHOBJECT const hInput)
Send a notification to all connected Outputs that the parameter definition changed. Calling this makes NH_OUTPUT_REFRESHPARAMETERDEFINITION to be called on connected outputs.
InOutCapabilities
Input & Output capabilities.
Definition: CLC_Enums.h:1145
CLC_ErrorCode Input_DataConsumed(CPHOBJECT const hInput)
Tells the sources that incoming SysEx or DataTransfer message has been processed. If this command is ...
CLC_ErrorCode Parameter_AddModifierSupportedDataType(CPHOBJECT const hParameter, DataTypes const dataType, CPVALUE const *const pMinValue, CPVALUE const *const pMidValue, CPVALUE const *const pMaxValue)
Declare a supported data type and its value range information.
CLC_ErrorCode Input_GetPath(CPHOBJECT const hInput, CPCHAR8 const **const putf8Path)
Get the input path.
unsigned short CPUINT16
Word Integer (16 bit unsigned)
Definition: PlatformTypes.h:45
CLC_ErrorCode Input_SetCapabilities(CPHOBJECT const hInput, InOutCapabilities const inputCaps)
Set the input capabilities.
CLC_ErrorCode Input_AddTextParameter(CPHOBJECT const hInput, CPCHAR8 const *const utf8Name, CPUINT16 const wMsgNum, CPHOBJECT const hIndexList, CPUINT16 const wGroup, TextInformationProfiles const informationProfiles, ControllerTypes const preferredControllerType, CPUINT32 const dwParameterUserData, CPHOBJECT *const phParameter)
Add a Text parameter.
unsigned long CPUINT32
Double Word Integer (32 bit unsigned)
Definition: PlatformTypes.h:48
CLC_ErrorCode Input_UnregisterParameterNotificationHandler(CPHOBJECT const hInput)
Unregister a Parameter notification handler.
CPBOOLEAN InputOutput_IsCompatibleWith(InOutCapabilities const inputCaps, InOutCapabilities const outputCaps)
Check if the input is compatible with the specified output caps.
CLC_ErrorCode Parameter_DeclareParameterChanged(CPHOBJECT const hParameter, CPUINT16 const wIndex, CPUINT16 const wRawValue)
This can be used to declare a parameter value change without sending immediately the feedback...
Container structure for Endpoint.
Definition: CLC_Types.h:48
CLC_ErrorCode Parameter_RefreshCurrentTextParameterValue(CPHOBJECT const hParameter, CPUINT16 const wIndex, CPCHAR8 const *const utf8ValueText, RefreshValueAttributes const attributes)
Notify the connected Outputs & Controllers about a Text parameter change. This causes an immediate se...
CLC_ErrorCode Input_GetName(CPHOBJECT const hInput, CPCHAR8 const **const putf8Name)
Get the input name.
CLC_ErrorCode Input_UnregisterNotificationHandler(CPHOBJECT const hInput)
Unregister notification handler for the specified input.
CLC_ErrorCode Input_Clock_Set(CPHOBJECT const hInput, CPUINT8 const bCPQNMultiplier)
Set expected clock description.
The container structure for Value. Use CPValue Functions CPVALUE_xxx functions to handle this structu...
Definition: CLC_Types.h:117
CLC_ErrorCode Parameter_RefreshCurrentModifierParameterValue(CPHOBJECT const hParameter, CPUINT16 const wIndex, CPVALUE const *const pValue, CPCHAR8 const *const utf8ValueText, RefreshValueAttributes const attributes)
Notify the connected Outputs & Controllers about a Modifier parameter change. This causes an immediat...
CLC_ErrorCode Input_AddTitleParameter(CPHOBJECT const hInput, CPCHAR8 const *const utf8Text, CPUINT16 const wGroup)
Add a title in the parameter list.
CLC_ErrorCode Input_RegisterParameterNotificationHandler(CPHOBJECT const hInput)
Register a Parameter notification handler.
CLC_ErrorCode Input_SetSectionID(CPHOBJECT const hInput, CPSECTIONID const *const pSectionID)
Set the input Section ID.
RefreshValueAttributes
Refresh current value attributes.
Definition: CLC_Enums.h:1692
CPUINT32 CPHOBJECT
Handle on Object.
Definition: CLCm_Types.h:57
CLC_ErrorCode Input_RemoveSource(CPHOBJECT const hInput, CPENDPOINT const *const pSource)
Remove a source.
CLC_ErrorCode Input_RegisterNotificationHandler(CPHOBJECT const hInput)
Register notification handler for the specified input.
CLC_ErrorCode Input_SetName(CPHOBJECT const hInput, CPCHAR8 const *const utf8Name)
Set the input name.
This structure contains information for a specific input.
Definition: CLC_Types.h:139