27 #ifndef _CLC_FCT_BASELOCALDEVICE_H_
28 #define _CLC_FCT_BASELOCALDEVICE_H_
68 CPBOOLEAN
const fHidden,
70 CPCHAR8 const *
const utf8ModelName,
77 #if !defined(NO_DEVICE_ENABLED)
93 #endif // !defined(NO_DEVICE_ENABLED)
95 #if defined(ENABLE_SNAPSHOT)
111 #endif // defined(ENABLE_SNAPSHOT)
113 #ifdef ENABLE_SMARTCONNECT_TARGET
131 #endif // ENABLE_SMARTCONNECT_TARGET
133 #if defined(ENABLE_SIGNAL)
149 #endif // defined(ENABLE_SIGNAL)
174 CPCHAR8 const *
const utf8CustomName);
186 CPCHAR8 const **
const putf8Name);
196 CPCHAR8 const **
const putf8Name);
205 CPBOOLEAN
const fHidden);
215 CPBOOLEAN
const fAutoDelete);
226 CPCHAR8 const *
const utf8Name);
237 CPCHAR8 const **
const putf8Name);
248 CPCHAR8 const *
const utf8Value);
285 CPCHAR8 const *
const utf8OutputName,
337 CPCHAR8 const *
const utf8Name,
343 CPUINT32 const dwControllerUserData,
361 CPBOOLEAN
const fAlsoForChildren);
387 CPCHAR8 const *
const utf8InputName,
419 CPBOOLEAN
const fSuspend);
438 CPBOOLEAN
const fSynapse,
480 CPBOOLEAN *
const pfActive);
617 CPCHAR8 const *
const utf8OptionalData,
624 #if defined(ENABLE_SNAPSHOT)
637 CPBOOLEAN
const fDisabled,
638 CPBOOLEAN
const fAlsoForChildren);
659 CPUINT32 const dwSnapshotContextData,
661 CPBOOLEAN
const fLastBlock,
662 CPBYTE
const *
const pBlockData);
677 CPUINT32 const dwSnapshotContextData);
689 #endif // defined(ENABLE_SNAPSHOT)
698 #endif // _CLC_FCT_BASELOCALDEVICE_H_
CLC_ErrorCode LocalDevice_ClearOutputs(CPHOBJECT const hLocalDevice)
Remove all outputs and associated data (controller definition)
CLC_ErrorCode LocalDevice_UnregisterSmartConnectTargetNotificationHandler(CPHOBJECT const hLocalDevice)
Unregister Local Device notification handler for Smart Connect, Target side.
CLC_ErrorCode LocalDevice_AddInput(CPHOBJECT const hLocalDevice, InOutCapabilities const inCaps, CPCHAR8 const *const utf8InputName, CPSECTIONID const *const pSectionID, CPUINT32 const dwInputUserData, CPHOBJECT *const phInput, CPUINT16 *const pwInputID)
Add an Input.
CLC_ErrorCode LocalDevice_SetVisibility(CPHOBJECT const hLocalDevice, CPBOOLEAN const fHidden)
Change device visibility.
CLC_ErrorCode LocalDevice_UnregisterNotificationHandler(CPHOBJECT const hLocalDevice)
Unregister notification handler for a local device (or sub type).
CLC_ErrorCode LocalDevice_GetSectionName(CPHOBJECT const hLocalDevice, CPSECTIONID const *const pSectionID, CPCHAR8 const **const putf8Name)
Get the custom name for the specified section type.
Container structure for Section ID Each Input is associated to a SectionID giving information about i...
Definition: CLC_Types.h:67
CLC_ErrorCode LocalDevice_SCT_SectionListReply_GetSCSectionItem(CPUINT16 const wIndex, CPSMARTCONNECTSECTIONITEM *const pSectionItem)
Get the SmartConnect Section Item at index wIndex. This function can only be called during a NH_LOCAL...
CLC_ErrorCode LocalDevice_Signal(CPHOBJECT const hLocalDevice, CPDEVICEID const *pDevID, 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 signal (broadcast or directed to the specified device)
SnapshotBlockPriorities
Snapshot block priorities.
Definition: CLC_Enums.h:2120
SmartConnect Section Item structure.
Definition: CLC_Types.h:98
CLC_ErrorCode LocalDevice_RegisterSnapshotNotificationHandler(CPHOBJECT const hLocalDevice)
Register snapshot notification handler for a local device (or sub type).
CLC_ErrorCode LocalDevice_SetSectionName(CPHOBJECT const hLocalDevice, CPSECTIONID const *const pSectionID, CPCHAR8 const *const utf8Name)
Set a custom name for the specified section.
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 LocalDevice_AddOutput(CPHOBJECT const hLocalDevice, InOutCapabilities const outCaps, CPCHAR8 const *const utf8OutputName, CPSECTIONID const *const pSectionID, CPUINT32 const dwOutputUserData, CPHOBJECT *const phOutput, CPUINT16 *const pwOutputID)
Add an Output.
CLC_ErrorCode LocalDevice_Reply_RequestCollectSnapshotData(CPHOBJECT const hLocalDevice, CPUINT16 const wRequestID, SnapshotBlockPriorities const priority, CPUINT32 const dwSnapshotContextData, CPUINT16 const wBlockSize, CPBOOLEAN const fLastBlock, CPBYTE const *const pBlockData)
Reply to a snapshot data collect request.
CLC_ErrorCode LocalDevice_GetInfo(CPHOBJECT const hLocalDevice, CPLOCALDEVICEINFO *const pInfo)
Get local device (or sub type) informations (see CPLOCALDEVICEINFO structure for details).
CLC_ErrorCode LocalDevice_SCT_RequestControllerList(CPHOBJECT const hLocalDevice, CPUINT16 const wSessionID, CPDEVICEID const *const pDevID, CPSECTIONID const *const pSectionID)
Query the SmartConnect source side to reply the controller list related to the specified section inst...
CLC_ErrorCode LocalDevice_AddController(CPHOBJECT const hLocalDevice, CPCHAR8 const *const utf8Name, ControllerTypes const types, MessageTypes const preferredMsgType, CPUINT16 const wPreferredMsgNum, CPUINT16 const wGroup, CPSECTIONID const *const pSectionID, CPUINT32 const dwControllerUserData, CPHOBJECT *const phController, CPUINT16 *const pwControllerID)
Add a Controller.
SmartConnect Controller Item structure.
Definition: CLC_Types.h:106
CLC_ErrorCode LocalDevice_ClearInputs(CPHOBJECT const hLocalDevice)
Remove all inputs and associated data (parameter definition)
ControllerTypes
Controller types It is composed of the supported message types and the physical controller descriptio...
Definition: CLC_Enums.h:210
CLC_ErrorCode LocalDevice_SCT_ControllerListReply_GetSCControllerItem(CPUINT16 const wIndex, CPSMARTCONNECTCONTROLLERITEM *const pControllerItem)
Get the SmartConnect Controller Item at index wIndex. This function can only be called during a NH_LO...
CLC_ErrorCode LocalDevice_SCT_Finished(CPHOBJECT const hLocalDevice, CPUINT16 const wSessionID, Errors const errCode)
Close the SmartConnect session To be called from the SmartConnect target side.
CLC_ErrorCode LocalDevice_GetInputFromID(CPHOBJECT const hLocalDevice, CPUINT16 const wInputID, CPHOBJECT *const phInput)
Get the specified Input.
ObjectTypes
Object types.
Definition: CLC_Enums.h:1521
CLC_ErrorCode LocalDevice_UnassignAllControllers(CPHOBJECT const hLocalDevice, CPBOOLEAN const fAlsoForChildren)
Unassign all controllers and clear connections.
CLC_ErrorCode LocalDevice_AddSubDevice(ObjectTypes deviceType, CPHOBJECT const hLocalDevice, CPUINT16 const wModuleID, CPBOOLEAN const fHidden, ExtendedDeviceCapabilities const extendedCapabilities, CPCHAR8 const *const utf8ModelName, CPUINT32 const dwNewDeviceUserData, CPHOBJECT *const phNewDevice)
Add a sub-device.
InOutCapabilities
Input & Output capabilities.
Definition: CLC_Enums.h:1145
CLC_ErrorCode LocalDevice_GetPath(CPHOBJECT const hLocalDevice, CPCHAR8 const **const putf8Name)
Get the path.
CLC_ErrorCode LocalDevice_SCT_AssignOutput(CPHOBJECT const hLocalDevice, CPUINT16 const wSessionID, CPDEVICEID const *const pDevID, CPSECTIONID const *const pSectionID, CPENDPOINT const *const pTargetEndpoint)
Assign the specified source section to a target input. To be called from the SmartConnect target stat...
Errors
CHAI Error codes Used with CLC_ErrorCode for value from 0 to 0xFF.
Definition: CLC_Enums.h:923
CLC_ErrorCode LocalDevice_RegisterSmartConnectTargetNotificationHandler(CPHOBJECT const hLocalDevice)
Register Local Device notification handler for Smart Connect, Target side. This notification handler ...
CLC_ErrorCode LocalDevice_SetStringProperty(CPHOBJECT const hLocalDevice, CPUINT16 const wPropertyNum, CPCHAR8 const *const utf8Value)
Set a text device property.
This structure contains information for a specific local device.
Definition: CLC_Types.h:194
CLC_ErrorCode LocalDevice_SetNumericProperty(CPHOBJECT const hLocalDevice, CPUINT16 const wPropertyNum, CPUINT64 const qwValue)
Set a numeric device property.
CLC_ErrorCode LocalDevice_UnregisterSnapshotNotificationHandler(CPHOBJECT const hLocalDevice)
Unregister snapshot notification handler for a local device (or sub type).
CLC_ErrorCode LocalDevice_RegisterSignalNotificationHandler(CPHOBJECT const hLocalDevice)
Register signal notification handler for a local device (or sub type).
CLC_ErrorCode LocalDevice_UnregisterSignalNotificationHandler(CPHOBJECT const hLocalDevice)
Unregister signal notification handler for a local device (or sub type).
CLC_ErrorCode LocalDevice_Reply_RequestRestoreSnapshotData(CPHOBJECT const hLocalDevice, CPUINT16 const wRequestID, Errors const returnCode, CPUINT32 const dwSnapshotContextData)
Reply to a snapshot data restore request.
CLC_ErrorCode LocalDevice_SCT_UnassignAndRequestSectionList(CPHOBJECT const hLocalDevice, CPUINT16 const wSessionID, CPDEVICEID const *const pDevID)
Query the SmartConnect source side to clear its controller assignments and to reply the consolidated ...
Container structure for Endpoint.
Definition: CLC_Types.h:48
CLC_ErrorCode LocalDevice_GetName(CPHOBJECT const hLocalDevice, DeviceNameFormats format, CPCHAR8 const **const putf8Name)
Get the specified name.
CLC_ErrorCode LocalDevice_Reply_InvalidRequest(CPHOBJECT const hLocalDevice, CPUINT16 const wRequestID)
Reply Invalid Request.
CLC_ErrorCode LocalDevice_SetDisabledInternalSnapshot(CPHOBJECT const hLocalDevice, CPBOOLEAN const fDisabled, CPBOOLEAN const fAlsoForChildren)
Enable/disable the internal snapshot capability for this device and optionally its descendants By def...
CLC_ErrorCode LocalDevice_RegisterNotificationHandler(CPHOBJECT const hLocalDevice)
Register notification handler for a local device (or sub type).
DeviceNameFormats
Device name formats. Used during a LocalDevice_GetName or RemoteDevice_GetName_Async call to specify ...
Definition: CLC_Enums.h:803
Container structure for Device ID.
Definition: CLC_Types.h:39
CLC_ErrorCode LocalDevice_SetDisabledDestinationAutoDelete(CPHOBJECT const hLocalDevice, CPBOOLEAN const fAutoDelete)
Enable/disable the automatic deletion of disabled destination after 60 seconds. Default status is OFF...
CLC_ErrorCode LocalDevice_Flush(CPHOBJECT const hLocalDevice)
Flush all outputs.
CLC_ErrorCode LocalDevice_GetOutputFromID(CPHOBJECT const hLocalDevice, CPUINT16 const wOutputID, CPHOBJECT *const phOutput)
Get the specified Output.
CLC_ErrorCode LocalDevice_AddPipe(CPHOBJECT const hLocalDevice, CPBOOLEAN const fSynapse, CPUINT32 const dwPipeUserData, CPHOBJECT *const phPipe, CPUINT16 *const pwPipeID)
Add a Pipe.
CLC_ErrorCode LocalDevice_SetCustomName(CPHOBJECT const hLocalDevice, CPCHAR8 const *const utf8CustomName)
Set the Custom name.
CLC_ErrorCode LocalDevice_ClearPipes(CPHOBJECT const hLocalDevice)
Remove all pipes.
CLC_ErrorCode LocalDevice_GetPipeFromID(CPHOBJECT const hLocalDevice, CPUINT16 const wPipeID, CPHOBJECT *const phPipe)
Get the specified Pipe.
MessageTypes
Message types.
Definition: CLC_Enums.h:147
Controller assignment structure.
Definition: CLC_Types.h:85
CLC_ErrorCode LocalDevice_IsLearningModeActive(CPHOBJECT const hLocalDevice, CPBOOLEAN *const pfActive)
Check if learning mode is active for one of this Device's Controllers.
CLC_ErrorCode LocalDevice_ClearControllers(CPHOBJECT const hLocalDevice)
Remove all controllers.
CLC_ErrorCode LocalDevice_LeaveLearningMode(CPHOBJECT const hLocalDevice)
Leave learning mode if one of this Device's Controller is currently learning. On success, the notification handler NH_CHAI_NOTIFICATION is called signaling CNT_GlobalLearningModeLeaved.
CPUINT32 CPHOBJECT
Handle on Object.
Definition: CLCm_Types.h:57
CLC_ErrorCode LocalDevice_FlowControl(CPHOBJECT const hLocalDevice, CPBOOLEAN const fSuspend)
This can be used to notify connected Output that they should suspend or resume sending.
CLC_ErrorCode LocalDevice_SCT_AssignController(CPHOBJECT const hLocalDevice, CPUINT16 const wSessionID, CPDEVICEID const *const pDevID, CPUINT16 const wControllerID, CPCONTROLLERASSIGNMENT const *const pAssignment)
Assign the specified controller to a target parameter. To be called from the SmartConnect target stat...
ExtendedDeviceCapabilities
Extended device capabilities It can not be used for device enumeration filtering. ...
Definition: CLC_Enums.h:531
CLC_ErrorCode LocalDevice_SCT_Started_GetDeviceID(CPUINT16 const wIndex, CPDEVICEID *const pDevID)
Get the DeviceID at index wIndex. This function can only be called during a NH_LOCALDEVICE_SCT_STARTE...