CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CLC_Fct_RemoteDevice.h
Go to the documentation of this file.
1 //*********************************************************
2 // File: CLC_Fct_RemoteDevice.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_REMOTEDEVICE_H_
28 #define _CLC_FCT_REMOTEDEVICE_H_
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 #if defined(ENABLE_REMOTE_DEVICE)
35 
44 
52  CPHOOKEDOBJECT const hRemoteDevice,
53  CPREMOTEDEVICEINFO * const pInfo);
54 
61  CPHOOKEDOBJECT const hRemoteDevice,
62  CPBOOLEAN * const pfIsValid);
63 
75  CPHOOKEDOBJECT const hRemoteDevice,
76  CPCHAR8 const * const utf8CustomName,
77  CPUINT32 const dwDuplicateNumber,
78  DuplicateModes const duplicateMode,
79  CPUINT32 const dwGroups);
81 
84 
94  CPHOOKEDOBJECT const hRemoteDevice,
95  DeviceNameFormats const format,
96  CPUINT32 const dwClientContextData,
97  CPHASYNC * const phAsync);
98 
109  CPHOOKEDOBJECT const hRemoteDevice,
110  ExplorationCommands const ec,
111  DeviceProperties const propertyID,
112  CPUINT32 const dwClientContextData,
113  CPHASYNC * const phAsync);
115 
118 
126  CPHOOKEDOBJECT const hRemoteDevice,
127  CPBOOLEAN const fRecursive);
128 
136  CPHOOKEDOBJECT const hRemoteDevice,
137  CPUINT16 const wOutputID);
138 
151  CPHOOKEDOBJECT const hRemoteDevice,
152  CPUINT16 const wOutputID_or_ControllerID,
153  CPUINT16 const wDestinationIndex,
154  CPUINT32 const dwClientContextData,
155  CPHASYNC * const phAsync);
156 
169  CPHOOKEDOBJECT const hRemoteDevice,
170  CPUINT16 const wOutputID_or_ControllerID,
171  CPUINT16 const wDestinationIndex,
172  CPUINT32 const dwClientContextData,
173  CPHASYNC * const phAsync);
174 
183  CPHOOKEDOBJECT const hRemoteDevice,
184  CPUINT16 const wOutputID,
185  CPENDPOINT const * const pDestination);
186 
196  CPHOOKEDOBJECT const hRemoteDevice,
197  CPUINT16 const wOutputID,
198  CPENDPOINT const * const pPrevDestination,
199  CPENDPOINT const * const pNewDestination);
200 
208  CPHOOKEDOBJECT const hRemoteDevice,
209  CPUINT16 const wOutputID,
210  CPENDPOINT const * const pDestination);
211 
221  CPHOOKEDOBJECT const hRemoteDevice,
222  CPUINT16 const wOutputID_or_ControllerID,
223  CPUINT32 const dwClientContextData,
224  CPHASYNC * const phAsync);
225 
234  CPHOOKEDOBJECT const hRemoteDevice,
235  CPBOOLEAN const fIncludingSubDevices,
236  CPUINT32 const dwClientContextData,
237  CPHASYNC * const phAsync);
238 
240 
243 
253  CPHOOKEDOBJECT const hRemoteDevice,
254  ExplorationCommands const ec,
255  CPUINT16 const wInputID,
256  CPUINT32 const dwClientContextData,
257  CPHASYNC * const phAsync);
258 
268  CPHOOKEDOBJECT const hRemoteDevice,
269  ExplorationCommands const ec,
270  CPUINT16 const wOutputID,
271  CPUINT32 const dwClientContextData,
272  CPHASYNC * const phAsync);
273 
283  CPHOOKEDOBJECT const hRemoteDevice,
284  ExplorationCommands const ec,
285  CPUINT16 const wControllerID,
286  CPUINT32 const dwClientContextData,
287  CPHASYNC * const phAsync);
288 
300  CPHOOKEDOBJECT const hRemoteDevice,
301  ExplorationCommands const ec,
302  CPSECTIONID const * const pSectionID,
303  CPUINT16 const wFilterInputID,
304  CPPARAMETERID const * const pParamID,
305  CPUINT32 const dwClientContextData,
306  CPHASYNC * const phAsync);
307 
318  CPHOOKEDOBJECT const hRemoteDevice,
319  ExplorationCommands const ec,
320  CPPARAMETERID const * const pParamID,
321  DataTypes const dataType,
322  CPUINT32 const dwClientContextData,
323  CPHASYNC * const phAsync);
324 
335  CPHOOKEDOBJECT const hRemoteDevice,
336  CPHOOKEDOBJECT const hSelectorItemListID,
337  CPUINT16 const wItemIndex,
338  CPBOOLEAN const fRequestMultipleValues,
339  CPUINT32 const dwClientContextData,
340  CPHASYNC * const phAsync);
341 
352  CPHOOKEDOBJECT const hRemoteDevice,
353  CPHOOKEDOBJECT const hIndexListID,
354  CPUINT16 const wIndex,
355  CPBOOLEAN const fRequestMultipleValues,
356  CPUINT32 const dwClientContextData,
357  CPHASYNC * const phAsync);
358 
360 
363 
371  CPHOOKEDOBJECT const hRemoteDevice,
372  CPUINT16 const wControllerID,
373  CPCONTROLLERASSIGNMENT const * const pControllerAssignment);
374 
375 
382  CPHOOKEDOBJECT const hRemoteDevice,
383  CPUINT16 const wControllerID);
384 
391  CPHOOKEDOBJECT const hRemoteDevice,
392  CPBOOLEAN const fRecursive);
393 
395 
398 
405 // It will be downgraded through the network depending on transport/hardware capabilities, so the
406 // returned block might be smaller than this value.
412  CPHOOKEDOBJECT const hRemoteDevice,
413  SnapshotTypes const snapshotType,
414  CPUINT32 const dwOffset,
415  CPUINT32 const dwContextData,
416  CPUINT16 const wMaxBlockSize,
417  CPUINT32 const dwClientContextData,
418  CPHASYNC * const phAsync);
419 
433  CPHOOKEDOBJECT const hRemoteDevice,
434  SnapshotTypes const snapshotType,
435  CPUINT32 const dwOffset,
436  CPUINT32 const dwContextData,
437  CPUINT16 const wBlockSize,
438  CPBOOLEAN const fLastBlock,
439  CPBYTE const * const pBlockData ,
440  CPUINT32 const dwClientContextData,
441  CPHASYNC * const phAsync);
443 
446 
454  CPHOOKEDOBJECT const hRemoteDevice,
455  CPBOOLEAN const fActivate,
456  CPUINT16 const wControllerID);
457 
459 
462 
474  CPHOOKEDOBJECT const hRemoteDevice,
475  CPUINT16 const wArraySize,
476  CPDEVICEID const * const arSourceDeviceIDs,
477  CPUINT32 const dwClientContextData,
478  CPHASYNC * const phAsync);
479 
481 
483 
484 #endif // defined(ENABLE_REMOTE_DEVICE)
485 
486 #ifdef __cplusplus
487 }
488 #endif
489 
490 #endif // _CLC_FCT_REMOTEDEVICE_H_
CLC_ErrorCode RemoteDevice_GetParameterInfo_Async(CPHOOKEDOBJECT const hRemoteDevice, ExplorationCommands const ec, CPSECTIONID const *const pSectionID, CPUINT16 const wFilterInputID, CPPARAMETERID const *const pParamID, CPUINT32 const dwClientContextData, CPHASYNC *const phAsync)
Get parameter description.
CLC_ErrorCode RemoteDevice_RemoveDestination(CPHOOKEDOBJECT const hRemoteDevice, CPUINT16 const wOutputID, CPENDPOINT const *const pDestination)
Remove a destination from an Output.
CLC_ErrorCode RemoteDevice_ResetController(CPHOOKEDOBJECT const hRemoteDevice, CPUINT16 const wControllerID)
Reset default controller assignment.
#define CLC_SDK_API
Definition: CLCm_Platform.h:37
CPUINT32 CPHOOKEDOBJECT
Handle on Hooked Object.
Definition: CLCm_Types.h:58
Container structure for Section ID Each Input is associated to a SectionID giving information about i...
Definition: CLC_Types.h:67
CLC_ErrorCode RemoteDevice_AssignController(CPHOOKEDOBJECT const hRemoteDevice, CPUINT16 const wControllerID, CPCONTROLLERASSIGNMENT const *const pControllerAssignment)
Assign a controller to a message.
DataTypes
CopperLan Data types Data Types are used to identify numeric value format.
Definition: CLC_Enums.h:389
CLC_ErrorCode RemoteDevice_CollectSnapshotData_Async(CPHOOKEDOBJECT const hRemoteDevice, SnapshotTypes const snapshotType, CPUINT32 const dwOffset, CPUINT32 const dwContextData, CPUINT16 const wMaxBlockSize, CPUINT32 const dwClientContextData, CPHASYNC *const phAsync)
Collect Snapshot data.
CLC_ErrorCode
Error code Enumeration. Error codes from 0x01 to 0xFF are related to a CopperLan functions return cod...
Definition: CLCm_Defines.h:469
DuplicateModes
Duplicate resolution modes.
Definition: CLC_Enums.h:906
This structure contains information for a specific remote device.
Definition: CLC_Types.h:179
CLC_ErrorCode RemoteDevice_GetInfo(CPHOOKEDOBJECT const hRemoteDevice, CPREMOTEDEVICEINFO *const pInfo)
Get Remote Device informations.
char CPCHAR8
Character Type (8 bit signed)
Definition: PlatformTypes.h:66
CLC_ErrorCode RemoteDevice_GetControllerInfo_Async(CPHOOKEDOBJECT const hRemoteDevice, ExplorationCommands const ec, CPUINT16 const wControllerID, CPUINT32 const dwClientContextData, CPHASYNC *const phAsync)
Get controller description.
CLC_ErrorCode RemoteDevice_GetModifierDataTypeInfo_Async(CPHOOKEDOBJECT const hRemoteDevice, ExplorationCommands const ec, CPPARAMETERID const *const pParamID, DataTypes const dataType, CPUINT32 const dwClientContextData, CPHASYNC *const phAsync)
Get Modifier parameter value range for a specific data type.
CLC_ErrorCode RemoteDevice_ClearAllDestinations(CPHOOKEDOBJECT const hRemoteDevice, CPBOOLEAN const fRecursive)
Clear all destinations on all Outputs.
CLC_ErrorCode RemoteDevice_ChangeDestination(CPHOOKEDOBJECT const hRemoteDevice, CPUINT16 const wOutputID, CPENDPOINT const *const pPrevDestination, CPENDPOINT const *const pNewDestination)
Change a destination on an Output.
CPUINT32 CPHASYNC
Handle on Async handler.
Definition: CLCm_Types.h:59
CLC_ErrorCode RemoteDevice_GetSelectorParameterValueText_Async(CPHOOKEDOBJECT const hRemoteDevice, CPHOOKEDOBJECT const hSelectorItemListID, CPUINT16 const wItemIndex, CPBOOLEAN const fRequestMultipleValues, CPUINT32 const dwClientContextData, CPHASYNC *const phAsync)
Get Selector parameter item description.
CLC_ErrorCode RemoteDevice_Learn(CPHOOKEDOBJECT const hRemoteDevice, CPBOOLEAN const fActivate, CPUINT16 const wControllerID)
Set the remote device in learning mode.
CLC_ErrorCode RemoteDevice_AddDestination(CPHOOKEDOBJECT const hRemoteDevice, CPUINT16 const wOutputID, CPENDPOINT const *const pDestination)
Add a destination to an Output.
CLC_ErrorCode RemoteDevice_SmartConnectStart_Async(CPHOOKEDOBJECT const hRemoteDevice, CPUINT16 const wArraySize, CPDEVICEID const *const arSourceDeviceIDs, CPUINT32 const dwClientContextData, CPHASYNC *const phAsync)
Initiate a SmartConnect session. Call this method from the RemoteDevice related to the target...
CLC_ErrorCode RemoteDevice_ClearDestinations(CPHOOKEDOBJECT const hRemoteDevice, CPUINT16 const wOutputID)
Clear all destinations for the specified Output.
CLC_ErrorCode RemoteDevice_GetProperty_Async(CPHOOKEDOBJECT const hRemoteDevice, ExplorationCommands const ec, DeviceProperties const propertyID, CPUINT32 const dwClientContextData, CPHASYNC *const phAsync)
Get a device property.
CLC_ErrorCode RemoteDevice_GetIndexListItem_Async(CPHOOKEDOBJECT const hRemoteDevice, CPHOOKEDOBJECT const hIndexListID, CPUINT16 const wIndex, CPBOOLEAN const fRequestMultipleValues, CPUINT32 const dwClientContextData, CPHASYNC *const phAsync)
Get Index display text.
CLC_ErrorCode RemoteDevice_GetOutputInformation_Async(CPHOOKEDOBJECT const hRemoteDevice, ExplorationCommands const ec, CPUINT16 const wOutputID, CPUINT32 const dwClientContextData, CPHASYNC *const phAsync)
Get output information.
CLC_ErrorCode RemoteDevice_GetInputInformation_Async(CPHOOKEDOBJECT const hRemoteDevice, ExplorationCommands const ec, CPUINT16 const wInputID, CPUINT32 const dwClientContextData, CPHASYNC *const phAsync)
Get input information.
CLC_ErrorCode RemoteDevice_GetDetailedDestination_Async(CPHOOKEDOBJECT const hRemoteDevice, CPUINT16 const wOutputID_or_ControllerID, CPUINT16 const wDestinationIndex, CPUINT32 const dwClientContextData, CPHASYNC *const phAsync)
Get a destination with more details (path, machine name...) This method can be used to enumerate the ...
CLC_ErrorCode RemoteDevice_RestoreSnapshotData_Async(CPHOOKEDOBJECT const hRemoteDevice, SnapshotTypes const snapshotType, CPUINT32 const dwOffset, CPUINT32 const dwContextData, CPUINT16 const wBlockSize, CPBOOLEAN const fLastBlock, CPBYTE const *const pBlockData, CPUINT32 const dwClientContextData, CPHASYNC *const phAsync)
Restore a Snapshot data block to the remote device.
unsigned short CPUINT16
Word Integer (16 bit unsigned)
Definition: PlatformTypes.h:45
CLC_ErrorCode RemoteDevice_GetStatus(CPHOOKEDOBJECT const hRemoteDevice, CPBOOLEAN *const pfIsValid)
Get Remote Device Object status.
unsigned long CPUINT32
Double Word Integer (32 bit unsigned)
Definition: PlatformTypes.h:48
DeviceProperties
Device properties.
Definition: CLC_Enums.h:827
CLC_ErrorCode RemoteDevice_ResetAllControllers(CPHOOKEDOBJECT const hRemoteDevice, CPBOOLEAN const fRecursive)
Reset all controllers.
Container structure for Parameter ID. Knowing a ParameterID and its owning Device gives enough inform...
Definition: CLC_Types.h:76
CLC_ErrorCode RemoteDevice_GetName_Async(CPHOOKEDOBJECT const hRemoteDevice, DeviceNameFormats const format, CPUINT32 const dwClientContextData, CPHASYNC *const phAsync)
Get the device name.
Container structure for Endpoint.
Definition: CLC_Types.h:48
CLC_ErrorCode RemoteDevice_GetDestination_Async(CPHOOKEDOBJECT const hRemoteDevice, CPUINT16 const wOutputID_or_ControllerID, CPUINT16 const wDestinationIndex, CPUINT32 const dwClientContextData, CPHASYNC *const phAsync)
Get a destination This method can be used to enumerate the current destinations related to the specif...
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 RemoteDevice_GetDestinationCount_Async(CPHOOKEDOBJECT const hRemoteDevice, CPUINT16 const wOutputID_or_ControllerID, CPUINT32 const dwClientContextData, CPHASYNC *const phAsync)
Get the number of destination.
Controller assignment structure.
Definition: CLC_Types.h:85
ExplorationCommands
Exploration commands.
Definition: CLC_Enums.h:1071
CLC_ErrorCode RemoteDevice_GenericChange(CPHOOKEDOBJECT const hRemoteDevice, CPCHAR8 const *const utf8CustomName, CPUINT32 const dwDuplicateNumber, DuplicateModes const duplicateMode, CPUINT32 const dwGroups)
Apply generic changes.
SnapshotTypes
Snapshot block types.
Definition: CLC_Enums.h:2139
CLC_ErrorCode RemoteDevice_GetConnectedDevices_Async(CPHOOKEDOBJECT const hRemoteDevice, CPBOOLEAN const fIncludingSubDevices, CPUINT32 const dwClientContextData, CPHASYNC *const phAsync)
Get the list of connected devices.