27 #ifndef _CLC_FCT_CHAI_H_
28 #define _CLC_FCT_CHAI_H_
57 CPCHAR8 const **
const ppVersionString);
67 CPCHAR8 const *
const utf8Name);
156 CPCHAR8 const *
const *
const arutf8Names,
178 CPCHAR8 const *
const *
const arutf8Names,
192 CPCHAR8 const *
const *
const arutf8Names);
236 CPBOOLEAN
const fHidden,
238 CPCHAR8 const *
const utf8ModelName,
268 CPCHAR8 const *
const utf8BrandName,
269 CPCHAR8 const *
const utf8ContactInfo);
281 CPBOOLEAN *
const pfConnected);
303 #if defined(ENABLE_NETWORK_SEARCH)
334 CPUINT32 const dwDuplicateNumberFrom,
367 #if defined(ENABLE_GLOBAL_TIMER)
396 CPCHAR8 const *
const utf8Title,
397 CPCHAR8 const *
const utf8Content);
404 #if defined(ENABLE_SIGNAL)
416 #endif // defined(ENABLE_SIGNAL)
437 CPCHAR8 const *
const utf8OptionalData,
444 #if defined(ENABLE_REMOTE_DEVICE)
467 #endif // defined(ENABLE_REMOTE_DEVICE)
497 #endif // _CLC_FCT_CHAI_H_
CLC_ErrorCode CHAI_UnregisterSignalNotificationHandler(void)
Unregister the Signal notification handler for the CHAI.
CLC_ErrorCode CHAI_Connect(CPUINT16 const wBrandID, CPCHAR8 const *const utf8BrandName, CPCHAR8 const *const utf8ContactInfo)
Get connected to the network. If this method is called when the CHAI is already connected, a redeclare of devices is performed and parameters are ignored.
FindDeviceOptions
Device finding flags, can be combined.
Definition: CLC_Enums.h:1092
CLC_ErrorCode CHAI_EnterSnapshotSavingMode(void)
Enter in Snapshot saving mode. The CHAI will maintain the network in snapshot saving mode sending reg...
CLC_ErrorCode CHAI_GetCurrentSnapshotMode(SnapshotModes *const pSnapshotMode)
Check if a Snapshot mode is running.
CLC_ErrorCode CHAI_GetCHAIGroups(CPUINT32 *const pdwGroups)
Get the CHAI groups.
CLC_ErrorCode CHAI_SetFlowControlIncomingCapacity(CPUINT32 const dwCapacity)
Set the flow control incoming capacity.
WarningCodes
Warning codes.
Definition: CLC_Enums.h:2359
CLC_ErrorCode CHAI_AddLocalDevice(ObjectTypes deviceType, CPUINT16 const wModelID, CPUINT32 const dwDuplicateNumber, DuplicateModes const duplicateMode, CPBOOLEAN const fHidden, ExtendedDeviceCapabilities const extendedCapabilities, CPCHAR8 const *const utf8ModelName, CPUINT32 const dwDeviceUserData, CPHOBJECT *const phDevice)
Add a new root device to the CHAI.
GlobalTimerNotificationFlags
Flags for CHAI's global timer notification handler. Used by the CHAI's global timer notification hand...
Definition: CLC_Enums.h:1111
CPUINT32 CPHOOKEDOBJECT
Handle on Hooked Object.
Definition: CLCm_Types.h:58
CLC_ErrorCode CHAI_Signal(CPDEVICEID const *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)
CLC_ErrorCode CHAI_RemoteDevice_FindFirst_Async(FindDeviceOptions const options, CPDEVICEID const *const pParentDevID, DeviceCapabilities const includeDeviceCapabilities, DeviceCapabilities const excludeDeviceCapabilities, InOutCapabilities const includeInputCapabilities, InOutCapabilities const excludeInputCapabilities, InOutCapabilities const includeOutputCapabilities, InOutCapabilities const excludeOutputCapabilities, CPUINT16 const wBrandID, CPUINT16 const wModelID, CPUINT32 const dwDuplicateNumberFrom, CPUINT32 const dwDuplicateNumberTo, CPUINT16 const wModuleIDFrom, CPUINT16 const wModuleIDTo, CPUINT32 const dwClientContextData, CPHASYNC *const phAsync)
Find the first device according the specified filtering arguments.
CLC_ErrorCode CHAI_UnregisterNotificationHandler(void)
Unregister CHAI notification handler.
CLC_ErrorCode CHAI_GetGlobalSynchronizedTime(SystemTime *const pSystemTime)
Get the current global synchronized time.
CLC_ErrorCode CHAI_CreateRemoteDevice(CPDEVICEID const *const pDevID, CPHOOKEDOBJECT *const phRemoteDevice)
Create a new Remote Device object from a DeviceID.
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
WarningDomains
Warning domains.
Definition: CLC_Enums.h:2331
CPUINT32 CPHASYNC
Handle on Async handler.
Definition: CLCm_Types.h:59
CPUINT64 SystemTime
System Time definition as unsigned 64 bit integer.
Definition: CLCm_Types.h:62
CLC_ErrorCode CHAI_EnterSnapshotRestoreMode(void)
Enter in Snapshot restore mode. The CHAI will maintain the network in pSnapshotMode restore mode send...
CLC_ErrorCode CHAI_RemoteDevice_FindPrev_Async(CPHOOKEDOBJECT const hDeviceEnumContext, CPUINT32 const dwClientContextData, CPHASYNC *const phAsync)
Find the previous device according the specified enumeration context.
CLC_ErrorCode CHAI_RemoveSelectorItemList(CPHOBJECT const hSelectorItemList)
Remove a Selector Item List.
CLC_ErrorCode CHAI_RegisterNotificationHandler(void)
Register CHAI notification handler.
ObjectTypes
Object types.
Definition: CLC_Enums.h:1521
InOutCapabilities
Input & Output capabilities.
Definition: CLC_Enums.h:1145
CLC_ErrorCode CHAI_RegisterSignalNotificationHandler(void)
Register the Signal notification handler for the CHAI.
CLC_ErrorCode CHAI_IsConnected(CPBOOLEAN *const pfConnected)
Check if the CHAI is connected.
CLC_ErrorCode CHAI_RegisterGlobalTimer(GlobalTimerNotificationFlags const flags)
Register global timer notification handler for specified events.
CLC_ErrorCode CHAI_RemoveIndexList(CPHOBJECT const hIndexList)
Remove an Index List.
CLC_ErrorCode CHAI_AddSelectorItemList(CPUINT16 const wSize, CPUINT16 const *const arValues, CPCHAR8 const *const *const arutf8Names, CPHOBJECT *const phSelectorItemList)
Add a Selector Item List.
CLC_ErrorCode CHAI_Warning_Send(CPENDPOINT const *const pOptionalSource, WarningCodes const code, WarningDomains const domain, CPCHAR8 const *const utf8Title, CPCHAR8 const *const utf8Content)
Broadcast an warning message.
CLC_ErrorCode CHAI_RedeclareAllDevices(void)
Redeclare all devices.
CLC_ErrorCode CHAI_AddIndexList(CPUINT16 const wSize, CPCHAR8 const *const *const arutf8Names, CPHOBJECT *const phIndexList)
Add an Index List for use with parameter creation.
CLC_ErrorCode CHAI_SetCHAIGroups(CPUINT32 const dwGroups)
Set the CHAI groups (31 bits - one per group - ; MSB = super-group).
Container structure for Endpoint.
Definition: CLC_Types.h:48
CLC_ErrorCode CHAI_LeaveSnapshotMode(void)
Quit the Snapshot mode if this is managed by the local CHAI!
DeviceCapabilities
Device capabilities It can be used for device filtering during enumeration. This combination of value...
Definition: CLC_Enums.h:483
SnapshotModes
Currently running Snapshot modes.
Definition: CLC_Enums.h:1997
CLC_ErrorCode CHAI_SetApplicationName(CPCHAR8 const *const utf8Name)
Set the application name.
CLC_ErrorCode CHAI_CreateRemoteDeviceFromLocalDevice(CPHOBJECT const hLocalDevice, CPHOOKEDOBJECT *const phRemoteDevice)
Create a new Remote Device object from a local device.
Container structure for Device ID.
Definition: CLC_Types.h:39
CLC_ErrorCode CHAI_UpdateSelectorItemList(CPHOBJECT const hSelectorItemList, CPUINT16 const wSize, CPUINT16 const *const arValues, CPCHAR8 const *const *const arutf8Names)
Update a Selector Item List.
CLC_ErrorCode CHAI_GetVersion(CPUINT32 *const pdwVersion, CPCHAR8 const **const ppVersionString)
Get the current CHAI and VNM versions.
CLC_ErrorCode CHAI_CreateDataTransferMessage(CPUINT16 const wNumber, CPHOOKEDOBJECT *const phMsg)
Create a new Data Transfer Message object.
CPUINT32 CPHOBJECT
Handle on Object.
Definition: CLCm_Types.h:57
CLC_ErrorCode CHAI_RemoveLocalDevice(CPHOBJECT const LocalDeviceHandle)
Remove a local device.
CLC_ErrorCode CHAI_RemoteDevice_FindNext_Async(CPHOOKEDOBJECT const hDeviceEnumContext, CPUINT32 const dwClientContextData, CPHASYNC *const phAsync)
Find the next device according the specified enumeration context.
CLC_ErrorCode CHAI_IsGlobalSynchronizedTimeReference(CPBOOLEAN *const pfTimeReference)
Check if this machine is the current global synchronized time reference.
ExtendedDeviceCapabilities
Extended device capabilities It can not be used for device enumeration filtering. ...
Definition: CLC_Enums.h:531
CLC_ErrorCode CHAI_Disconnect(void)
Disconnect from the network.