dsm-api-v2
Typedefs | Functions
Zone

This group of API calls addresses zones and their properties. More...

Typedefs

typedef void(* ZoneCount_request_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId)
 Returns the number of configured zones on the dSM.
typedef void(* ZoneCount_response_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint8_t ZoneCount)
 Returns the number of configured zones on the dSM.
typedef void(* ZoneDeviceCount_all_request_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId)
 Returns the number of devices in a zone.
typedef void(* ZoneDeviceCount_all_response_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t NumberOfDevices)
 Returns the number of devices in a zone.
typedef void(* ZoneDeviceCount_only_active_request_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId)
 Returns the number of active devices in a zone.
typedef void(* ZoneDeviceCount_only_active_response_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t NumberOfDevices)
 Returns the number of active devices in a zone.
typedef void(* ZoneDeviceCount_only_inactive_request_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId)
 Returns the number of inactive devices in a zone.
typedef void(* ZoneDeviceCount_only_inactive_response_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t NumberOfDevices)
 Returns the number of inactive devices in a zone.
typedef void(* ZoneInfo_by_id_request_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneIdReq)
 Get info about a zone.
typedef void(* ZoneInfo_by_id_response_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId, uint8_t VirtualZoneId, uint8_t NumberOfGroups, const uint8_t *Name)
 Get info about a zone.
typedef void(* ZoneInfo_by_index_request_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint8_t ZoneIndex)
 Get info about a zone.
typedef void(* ZoneInfo_by_index_response_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId, uint8_t VirtualZoneId, uint8_t NumberOfGroups, const uint8_t *Name)
 Get info about a zone.
typedef void(* ZoneModify_add_request_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId)
 Create a new zone with the given zone ID.
typedef void(* ZoneModify_add_response_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId)
 Create a new zone with the given zone ID.
typedef void(* ZoneModify_change_id_request_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId, uint16_t NewZoneId)
 Change the zone ID of the zone.
typedef void(* ZoneModify_change_id_response_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId)
 Change the zone ID of the zone.
typedef void(* ZoneModify_remove_request_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId)
 Remove zone with given zone ID.
typedef void(* ZoneModify_remove_response_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId)
 Remove zone with given zone ID.
typedef void(* ZoneProperties_get_scene_history_request_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId)
 Returns the most recently called scenes in this zone in descending order (e.g.
typedef void(* ZoneProperties_get_scene_history_response_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint8_t HistorySize, uint8_t GroupId_0, uint8_t Scene_0, uint8_t GroupId_1, uint8_t Scene_1, uint8_t GroupId_2, uint8_t Scene_2, uint8_t GroupId_3, uint8_t Scene_3, uint8_t GroupId_4, uint8_t Scene_4, uint8_t GroupId_5, uint8_t Scene_5, uint8_t GroupId_6, uint8_t Scene_6)
 Returns the most recently called scenes in this zone in descending order (e.g.
typedef void(* ZoneProperties_set_name_request_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId, const uint8_t *Name)
 Set the name of the zone.
typedef void(* ZoneProperties_set_name_response_callback_t )(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId)
 Set the name of the zone.

Functions

int ZoneCount (DsmApiHandle_t handle, dsid_t dSMdSID, uint8_t *ZoneCount)
 Returns the number of configured zones on the dSM.
int ZoneDeviceCount_all (DsmApiHandle_t handle, dsid_t dSMdSID, uint16_t ZoneId, uint16_t *NumberOfDevices)
 Returns the number of devices in a zone.
int ZoneDeviceCount_only_active (DsmApiHandle_t handle, dsid_t dSMdSID, uint16_t ZoneId, uint16_t *NumberOfDevices)
 Returns the number of active devices in a zone.
int ZoneDeviceCount_only_inactive (DsmApiHandle_t handle, dsid_t dSMdSID, uint16_t ZoneId, uint16_t *NumberOfDevices)
 Returns the number of inactive devices in a zone.
int ZoneInfo_by_id (DsmApiHandle_t handle, dsid_t dSMdSID, uint16_t ZoneIdReq, uint16_t *ZoneId, uint8_t *VirtualZoneId, uint8_t *NumberOfGroups, uint8_t *Name)
 Get info about a zone.
int ZoneInfo_by_index (DsmApiHandle_t handle, dsid_t dSMdSID, uint8_t ZoneIndex, uint16_t *ZoneId, uint8_t *VirtualZoneId, uint8_t *NumberOfGroups, uint8_t *Name)
 Get info about a zone.
int ZoneModify_add (DsmApiHandle_t handle, dsid_t dSMdSID, uint16_t ZoneId)
 Create a new zone with the given zone ID.
int ZoneModify_change_id (DsmApiHandle_t handle, dsid_t dSMdSID, uint16_t ZoneId, uint16_t NewZoneId)
 Change the zone ID of the zone.
int ZoneModify_remove (DsmApiHandle_t handle, dsid_t dSMdSID, uint16_t ZoneId)
 Remove zone with given zone ID.
int ZoneProperties_get_scene_history (DsmApiHandle_t handle, dsid_t dSMdSID, uint16_t ZoneId, uint8_t *HistorySize, uint8_t *GroupId_0, uint8_t *Scene_0, uint8_t *GroupId_1, uint8_t *Scene_1, uint8_t *GroupId_2, uint8_t *Scene_2, uint8_t *GroupId_3, uint8_t *Scene_3, uint8_t *GroupId_4, uint8_t *Scene_4, uint8_t *GroupId_5, uint8_t *Scene_5, uint8_t *GroupId_6, uint8_t *Scene_6)
 Returns the most recently called scenes in this zone in descending order (e.g.
int ZoneProperties_set_name (DsmApiHandle_t handle, dsid_t dSMdSID, uint16_t ZoneId, const uint8_t *Name)
 Set the name of the zone.

Detailed Description

This group of API calls addresses zones and their properties.


Typedef Documentation

typedef void(* ZoneCount_request_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId)

Returns the number of configured zones on the dSM.

Request callback function prototype for call ZoneCount.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_REQUEST, MessageId = ZONE_COUNT and ModifierId = #0

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
typedef void(* ZoneCount_response_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint8_t ZoneCount)

Returns the number of configured zones on the dSM.

Response callback function prototype for call ZoneCount.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_RESPONSE, MessageId = ZONE_COUNT and ModifierId = #0

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
[in]ZoneCountNumber of configured zones
typedef void(* ZoneDeviceCount_all_request_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId)

Returns the number of devices in a zone.

Request callback function prototype for call ZoneDeviceCount_all.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_REQUEST, MessageId = ZONE_DEVICE_COUNT and ModifierId = ZONE_DEVICE_COUNT_ALL

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
[in]ZoneIdZone ID.
typedef void(* ZoneDeviceCount_all_response_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t NumberOfDevices)

Returns the number of devices in a zone.

Response callback function prototype for call ZoneDeviceCount_all.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_RESPONSE, MessageId = ZONE_DEVICE_COUNT and ModifierId = ZONE_DEVICE_COUNT_ALL

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
[in]NumberOfDevicesNumber of devices that are part of this zone.
typedef void(* ZoneDeviceCount_only_active_request_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId)

Returns the number of active devices in a zone.

Request callback function prototype for call ZoneDeviceCount_only_active.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_REQUEST, MessageId = ZONE_DEVICE_COUNT and ModifierId = ZONE_DEVICE_COUNT_ONLY_ACTIVE

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
[in]ZoneIdZone ID.
typedef void(* ZoneDeviceCount_only_active_response_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t NumberOfDevices)

Returns the number of active devices in a zone.

Response callback function prototype for call ZoneDeviceCount_only_active.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_RESPONSE, MessageId = ZONE_DEVICE_COUNT and ModifierId = ZONE_DEVICE_COUNT_ONLY_ACTIVE

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
[in]NumberOfDevicesNumber of devices that are part of this zone.
typedef void(* ZoneDeviceCount_only_inactive_request_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId)

Returns the number of inactive devices in a zone.

Request callback function prototype for call ZoneDeviceCount_only_inactive.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_REQUEST, MessageId = ZONE_DEVICE_COUNT and ModifierId = ZONE_DEVICE_COUNT_ONLY_INACTIVE

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
[in]ZoneIdZone ID.
typedef void(* ZoneDeviceCount_only_inactive_response_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t NumberOfDevices)

Returns the number of inactive devices in a zone.

Response callback function prototype for call ZoneDeviceCount_only_inactive.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_RESPONSE, MessageId = ZONE_DEVICE_COUNT and ModifierId = ZONE_DEVICE_COUNT_ONLY_INACTIVE

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
[in]NumberOfDevicesNumber of devices that are part of this zone.
typedef void(* ZoneInfo_by_id_request_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneIdReq)

Get info about a zone.

Select the zone by its zone ID.

Request callback function prototype for call ZoneInfo_by_id.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_REQUEST, MessageId = ZONE_INFO and ModifierId = ZONE_INFO_BY_ID

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
[in]ZoneIdReqZone ID.
typedef void(* ZoneInfo_by_id_response_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId, uint8_t VirtualZoneId, uint8_t NumberOfGroups, const uint8_t *Name)

Get info about a zone.

Select the zone by its zone ID.

Response callback function prototype for call ZoneInfo_by_id.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_RESPONSE, MessageId = ZONE_INFO and ModifierId = ZONE_INFO_BY_ID

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
[in]ZoneIdGlobal zone ID.
[in]VirtualZoneIdLocal zone ID (VSK, local to the dSM).
[in]NumberOfGroupsNumber of groups configured in the zone.
[in]NameName of the zone (21 character, zero terminated string).
typedef void(* ZoneInfo_by_index_request_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint8_t ZoneIndex)

Get info about a zone.

Select the zone by sequential index (0 based).

Request callback function prototype for call ZoneInfo_by_index.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_REQUEST, MessageId = ZONE_INFO and ModifierId = ZONE_INFO_BY_INDEX

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
[in]ZoneIndexIndex of the zone (0-15).
typedef void(* ZoneInfo_by_index_response_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId, uint8_t VirtualZoneId, uint8_t NumberOfGroups, const uint8_t *Name)

Get info about a zone.

Select the zone by sequential index (0 based).

Response callback function prototype for call ZoneInfo_by_index.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_RESPONSE, MessageId = ZONE_INFO and ModifierId = ZONE_INFO_BY_INDEX

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
[in]ZoneIdGlobal zone ID.
[in]VirtualZoneIdLocal zone ID (VSK, local to the dSM).
[in]NumberOfGroupsNumber of groups configured in the zone.
[in]NameName of the zone (21 character, zero terminated string).
typedef void(* ZoneModify_add_request_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId)

Create a new zone with the given zone ID.

Request callback function prototype for call ZoneModify_add.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_REQUEST, MessageId = ZONE_MODIFY and ModifierId = ZONE_MODIFY_ADD

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
[in]ZoneIdZone ID.
typedef void(* ZoneModify_add_response_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId)

Create a new zone with the given zone ID.

Response callback function prototype for call ZoneModify_add.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_RESPONSE, MessageId = ZONE_MODIFY and ModifierId = ZONE_MODIFY_ADD

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
typedef void(* ZoneModify_change_id_request_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId, uint16_t NewZoneId)

Change the zone ID of the zone.

Request callback function prototype for call ZoneModify_change_id.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_REQUEST, MessageId = ZONE_MODIFY and ModifierId = ZONE_MODIFY_CHANGE_ID

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
[in]ZoneIdZone ID.
[in]NewZoneIdNew zone ID.
typedef void(* ZoneModify_change_id_response_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId)

Change the zone ID of the zone.

Response callback function prototype for call ZoneModify_change_id.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_RESPONSE, MessageId = ZONE_MODIFY and ModifierId = ZONE_MODIFY_CHANGE_ID

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
typedef void(* ZoneModify_remove_request_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId)

Remove zone with given zone ID.

Removing a zone is only possible if no devices are currently part of the zone.

Request callback function prototype for call ZoneModify_remove.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_REQUEST, MessageId = ZONE_MODIFY and ModifierId = ZONE_MODIFY_REMOVE

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
[in]ZoneIdZone ID.
typedef void(* ZoneModify_remove_response_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId)

Remove zone with given zone ID.

Removing a zone is only possible if no devices are currently part of the zone.

Response callback function prototype for call ZoneModify_remove.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_RESPONSE, MessageId = ZONE_MODIFY and ModifierId = ZONE_MODIFY_REMOVE

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
typedef void(* ZoneProperties_get_scene_history_request_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId)

Returns the most recently called scenes in this zone in descending order (e.g.

Scene_0 is newest, Scene_6 is oldest).

Request callback function prototype for call ZoneProperties_get_scene_history.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_REQUEST, MessageId = ZONE_PROPERTIES and ModifierId = ZONE_PROPERTIES_GET_SCENE_HISTORY

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
[in]ZoneIdZone ID.
typedef void(* ZoneProperties_get_scene_history_response_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint8_t HistorySize, uint8_t GroupId_0, uint8_t Scene_0, uint8_t GroupId_1, uint8_t Scene_1, uint8_t GroupId_2, uint8_t Scene_2, uint8_t GroupId_3, uint8_t Scene_3, uint8_t GroupId_4, uint8_t Scene_4, uint8_t GroupId_5, uint8_t Scene_5, uint8_t GroupId_6, uint8_t Scene_6)

Returns the most recently called scenes in this zone in descending order (e.g.

Scene_0 is newest, Scene_6 is oldest).

Response callback function prototype for call ZoneProperties_get_scene_history.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_RESPONSE, MessageId = ZONE_PROPERTIES and ModifierId = ZONE_PROPERTIES_GET_SCENE_HISTORY

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
[in]HistorySizeNumber of valid history steps (0-7).
[in]GroupId_0Bits 0-5: Group ID of the scene call, Bit 6: Set if call was 'Force_call_scene', Bit 7: Set if call was 'undo_scene_number'.
[in]Scene_0Scene ID of the scene call.
[in]GroupId_1See GroupId_0.
[in]Scene_1See Scene_0.
[in]GroupId_2See GroupId_0.
[in]Scene_2See Scene_0.
[in]GroupId_3See GroupId_0.
[in]Scene_3See Scene_0.
[in]GroupId_4See GroupId_0.
[in]Scene_4See Scene_0.
[in]GroupId_5See GroupId_0.
[in]Scene_5See Scene_0.
[in]GroupId_6See GroupId_0.
[in]Scene_6See Scene_0.
typedef void(* ZoneProperties_set_name_request_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId, uint16_t ZoneId, const uint8_t *Name)

Set the name of the zone.

Request callback function prototype for call ZoneProperties_set_name.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_REQUEST, MessageId = ZONE_PROPERTIES and ModifierId = ZONE_PROPERTIES_SET_NAME

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call
[in]ZoneIdZone ID.
[in]NameName of the zone (21 character, zero terminated string).
typedef void(* ZoneProperties_set_name_response_callback_t)(uint8_t error_code, void *arg, dsid_t sourceId, dsid_t destinationId)

Set the name of the zone.

Response callback function prototype for call ZoneProperties_set_name.

To register this callback function, call the DsmApiSetCallback function with MessageType = DS485_CONTAINER_RESPONSE, MessageId = ZONE_PROPERTIES and ModifierId = ZONE_PROPERTIES_SET_NAME

Parameters:
[in]errorError result of the (potential) previous call.
[in]argUser data
[in]sourceIdSource address of the call
[in]destinationIdDestination address of the call

Function Documentation

int ZoneCount ( DsmApiHandle_t  handle,
dsid_t  dSMdSID,
uint8_t *  ZoneCount 
)

Returns the number of configured zones on the dSM.

This call has a timeout of 5 seconds.

To receive asynchronous responses to this call (e.g. when addressing broadcast) register the ZoneCount_response_callback_t callback. To receive this request from other bus members register the ZoneCount_request_callback_t callback.

Parameters:
[in]handleHandle to the library instance
[in]dSMdSIDDestination dSM of the call
[out]ZoneCountNumber of configured zones
Returns:
0: success (return parameters are valid); <0: Library error; >0: dSM error code
int ZoneDeviceCount_all ( DsmApiHandle_t  handle,
dsid_t  dSMdSID,
uint16_t  ZoneId,
uint16_t *  NumberOfDevices 
)

Returns the number of devices in a zone.

This call has a timeout of 5 seconds.

To receive asynchronous responses to this call (e.g. when addressing broadcast) register the ZoneDeviceCount_all_response_callback_t callback. To receive this request from other bus members register the ZoneDeviceCount_all_request_callback_t callback.

Parameters:
[in]handleHandle to the library instance
[in]dSMdSIDDestination dSM of the call
[in]ZoneIdZone ID.
[out]NumberOfDevicesNumber of devices that are part of this zone.
Returns:
0: success (return parameters are valid); <0: Library error; >0: dSM error code
int ZoneDeviceCount_only_active ( DsmApiHandle_t  handle,
dsid_t  dSMdSID,
uint16_t  ZoneId,
uint16_t *  NumberOfDevices 
)

Returns the number of active devices in a zone.

This call has a timeout of 5 seconds.

To receive asynchronous responses to this call (e.g. when addressing broadcast) register the ZoneDeviceCount_only_active_response_callback_t callback. To receive this request from other bus members register the ZoneDeviceCount_only_active_request_callback_t callback.

Parameters:
[in]handleHandle to the library instance
[in]dSMdSIDDestination dSM of the call
[in]ZoneIdZone ID.
[out]NumberOfDevicesNumber of devices that are part of this zone.
Returns:
0: success (return parameters are valid); <0: Library error; >0: dSM error code
int ZoneDeviceCount_only_inactive ( DsmApiHandle_t  handle,
dsid_t  dSMdSID,
uint16_t  ZoneId,
uint16_t *  NumberOfDevices 
)

Returns the number of inactive devices in a zone.

This call has a timeout of 5 seconds.

To receive asynchronous responses to this call (e.g. when addressing broadcast) register the ZoneDeviceCount_only_inactive_response_callback_t callback. To receive this request from other bus members register the ZoneDeviceCount_only_inactive_request_callback_t callback.

Parameters:
[in]handleHandle to the library instance
[in]dSMdSIDDestination dSM of the call
[in]ZoneIdZone ID.
[out]NumberOfDevicesNumber of devices that are part of this zone.
Returns:
0: success (return parameters are valid); <0: Library error; >0: dSM error code
int ZoneInfo_by_id ( DsmApiHandle_t  handle,
dsid_t  dSMdSID,
uint16_t  ZoneIdReq,
uint16_t *  ZoneId,
uint8_t *  VirtualZoneId,
uint8_t *  NumberOfGroups,
uint8_t *  Name 
)

Get info about a zone.

Select the zone by its zone ID.

This call has a timeout of 5 seconds.

To receive asynchronous responses to this call (e.g. when addressing broadcast) register the ZoneInfo_by_id_response_callback_t callback. To receive this request from other bus members register the ZoneInfo_by_id_request_callback_t callback.

Parameters:
[in]handleHandle to the library instance
[in]dSMdSIDDestination dSM of the call
[in]ZoneIdReqZone ID.
[out]ZoneIdGlobal zone ID.
[out]VirtualZoneIdLocal zone ID (VSK, local to the dSM).
[out]NumberOfGroupsNumber of groups configured in the zone.
[out]NameName of the zone (21 character, zero terminated string). (pass a reference to a preallocated buffer of at least 21 bytes.)
Returns:
0: success (return parameters are valid); <0: Library error; >0: dSM error code
int ZoneInfo_by_index ( DsmApiHandle_t  handle,
dsid_t  dSMdSID,
uint8_t  ZoneIndex,
uint16_t *  ZoneId,
uint8_t *  VirtualZoneId,
uint8_t *  NumberOfGroups,
uint8_t *  Name 
)

Get info about a zone.

Select the zone by sequential index (0 based).

This call has a timeout of 5 seconds.

To receive asynchronous responses to this call (e.g. when addressing broadcast) register the ZoneInfo_by_index_response_callback_t callback. To receive this request from other bus members register the ZoneInfo_by_index_request_callback_t callback.

Parameters:
[in]handleHandle to the library instance
[in]dSMdSIDDestination dSM of the call
[in]ZoneIndexIndex of the zone (0-15).
[out]ZoneIdGlobal zone ID.
[out]VirtualZoneIdLocal zone ID (VSK, local to the dSM).
[out]NumberOfGroupsNumber of groups configured in the zone.
[out]NameName of the zone (21 character, zero terminated string). (pass a reference to a preallocated buffer of at least 21 bytes.)
Returns:
0: success (return parameters are valid); <0: Library error; >0: dSM error code
int ZoneModify_add ( DsmApiHandle_t  handle,
dsid_t  dSMdSID,
uint16_t  ZoneId 
)

Create a new zone with the given zone ID.

This call has a timeout of 5 seconds.

To receive asynchronous responses to this call (e.g. when addressing broadcast) register the ZoneModify_add_response_callback_t callback. To receive this request from other bus members register the ZoneModify_add_request_callback_t callback.

Parameters:
[in]handleHandle to the library instance
[in]dSMdSIDDestination dSM of the call
[in]ZoneIdZone ID.
Returns:
0: success (return parameters are valid); <0: Library error; >0: dSM error code
int ZoneModify_change_id ( DsmApiHandle_t  handle,
dsid_t  dSMdSID,
uint16_t  ZoneId,
uint16_t  NewZoneId 
)

Change the zone ID of the zone.

This call has a timeout of 5 seconds.

To receive asynchronous responses to this call (e.g. when addressing broadcast) register the ZoneModify_change_id_response_callback_t callback. To receive this request from other bus members register the ZoneModify_change_id_request_callback_t callback.

Parameters:
[in]handleHandle to the library instance
[in]dSMdSIDDestination dSM of the call
[in]ZoneIdZone ID.
[in]NewZoneIdNew zone ID.
Returns:
0: success (return parameters are valid); <0: Library error; >0: dSM error code
int ZoneModify_remove ( DsmApiHandle_t  handle,
dsid_t  dSMdSID,
uint16_t  ZoneId 
)

Remove zone with given zone ID.

Removing a zone is only possible if no devices are currently part of the zone.

This call has a timeout of 5 seconds.

To receive asynchronous responses to this call (e.g. when addressing broadcast) register the ZoneModify_remove_response_callback_t callback. To receive this request from other bus members register the ZoneModify_remove_request_callback_t callback.

Parameters:
[in]handleHandle to the library instance
[in]dSMdSIDDestination dSM of the call
[in]ZoneIdZone ID.
Returns:
0: success (return parameters are valid); <0: Library error; >0: dSM error code
int ZoneProperties_get_scene_history ( DsmApiHandle_t  handle,
dsid_t  dSMdSID,
uint16_t  ZoneId,
uint8_t *  HistorySize,
uint8_t *  GroupId_0,
uint8_t *  Scene_0,
uint8_t *  GroupId_1,
uint8_t *  Scene_1,
uint8_t *  GroupId_2,
uint8_t *  Scene_2,
uint8_t *  GroupId_3,
uint8_t *  Scene_3,
uint8_t *  GroupId_4,
uint8_t *  Scene_4,
uint8_t *  GroupId_5,
uint8_t *  Scene_5,
uint8_t *  GroupId_6,
uint8_t *  Scene_6 
)

Returns the most recently called scenes in this zone in descending order (e.g.

Scene_0 is newest, Scene_6 is oldest).

This call has a timeout of 5 seconds.

To receive asynchronous responses to this call (e.g. when addressing broadcast) register the ZoneProperties_get_scene_history_response_callback_t callback. To receive this request from other bus members register the ZoneProperties_get_scene_history_request_callback_t callback.

Parameters:
[in]handleHandle to the library instance
[in]dSMdSIDDestination dSM of the call
[in]ZoneIdZone ID.
[out]HistorySizeNumber of valid history steps (0-7).
[out]GroupId_0Bits 0-5: Group ID of the scene call, Bit 6: Set if call was 'Force_call_scene', Bit 7: Set if call was 'undo_scene_number'.
[out]Scene_0Scene ID of the scene call.
[out]GroupId_1See GroupId_0.
[out]Scene_1See Scene_0.
[out]GroupId_2See GroupId_0.
[out]Scene_2See Scene_0.
[out]GroupId_3See GroupId_0.
[out]Scene_3See Scene_0.
[out]GroupId_4See GroupId_0.
[out]Scene_4See Scene_0.
[out]GroupId_5See GroupId_0.
[out]Scene_5See Scene_0.
[out]GroupId_6See GroupId_0.
[out]Scene_6See Scene_0.
Returns:
0: success (return parameters are valid); <0: Library error; >0: dSM error code
int ZoneProperties_set_name ( DsmApiHandle_t  handle,
dsid_t  dSMdSID,
uint16_t  ZoneId,
const uint8_t *  Name 
)

Set the name of the zone.

This call has a timeout of 5 seconds.

To receive asynchronous responses to this call (e.g. when addressing broadcast) register the ZoneProperties_set_name_response_callback_t callback. To receive this request from other bus members register the ZoneProperties_set_name_request_callback_t callback.

Parameters:
[in]handleHandle to the library instance
[in]dSMdSIDDestination dSM of the call
[in]ZoneIdZone ID.
[in]NameName of the zone (21 character, zero terminated string).
Returns:
0: success (return parameters are valid); <0: Library error; >0: dSM error code
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines