Tizen Native API
5.0
|
The simple descriptor.
#include <zigbee.h>
The simple descriptor ties everything together on an endpoint, and an endpoint defines an application. The simple descriptor contains many of the fields: an endpoint ID, a profile ID, cluster IDs and a device ID.
Functions | |
int | zb_simple_desc_create (zb_zdo_simple_desc_h *handle) |
Creates a simple descriptor. | |
int | zb_simple_desc_clone (zb_zdo_simple_desc_h src, zb_zdo_simple_desc_h *dst) |
Clones a simple descriptor. | |
int | zb_simple_desc_destroy (zb_zdo_simple_desc_h handle) |
Destroys a simple a descriptor handle. | |
int | zb_simple_desc_get_ep (zb_zdo_simple_desc_h handle, zb_end_point *ep) |
Gets active endpoint number from a simple descriptor handle. | |
int | zb_simple_desc_set_ep (zb_zdo_simple_desc_h handle, zb_end_point ep) |
Sets active endpoint number to a simple descriptor handle. | |
int | zb_simple_desc_get_profile_id (zb_zdo_simple_desc_h handle, zb_profile_id *profileid) |
Gets profile id from a simple descriptor handle. | |
int | zb_simple_desc_set_profile_id (zb_zdo_simple_desc_h handle, zb_profile_id profileid) |
Sets profile id to a simple descriptor handle. | |
int | zb_simple_desc_get_device_id (zb_zdo_simple_desc_h handle, zb_device_id *deviceid) |
Gets device id from a simple descriptor handle. | |
int | zb_simple_desc_set_device_id (zb_zdo_simple_desc_h handle, zb_device_id deviceid) |
Sets device id to a simple descriptor handle. | |
int | zb_simple_desc_get_device_ver (zb_zdo_simple_desc_h handle, unsigned short *device_ver) |
Gets device version from a simple descriptor handle. | |
int | zb_simple_desc_set_device_ver (zb_zdo_simple_desc_h handle, unsigned short device_ver) |
Sets device version to a simple descriptor handle. | |
int | zb_simple_desc_get_num_of_in_clusters (zb_zdo_simple_desc_h handle, unsigned char *num_of_in_clusters) |
Gets the number of items in input clusters from a simple descriptor handle. | |
int | zb_simple_desc_set_num_of_in_clusters (zb_zdo_simple_desc_h handle, unsigned char num_of_in_clusters) |
Sets the number of input clusters to a simple descriptor handle. | |
int | zb_simple_desc_get_num_of_out_clusters (zb_zdo_simple_desc_h handle, unsigned char *num_of_out_clusters) |
Gets number of output clusters from a simple descriptor handle. | |
int | zb_simple_desc_set_num_of_out_clusters (zb_zdo_simple_desc_h handle, unsigned char num_of_out_clusters) |
Sets number of output clusters to a simple descriptor handle. | |
int | zb_simple_desc_get_in_clusters (zb_zdo_simple_desc_h handle, zb_cluster_id **in_clusters) |
Gets input cluster list from a simple descriptor handle. | |
int | zb_simple_desc_set_in_clusters (zb_zdo_simple_desc_h handle, zb_cluster_id *in_clusters, int num) |
Sets input cluster list to a simple descriptor handle. | |
int | zb_simple_desc_get_out_clusters (zb_zdo_simple_desc_h handle, zb_cluster_id **out_clusters) |
Gets output cluster list from a simple descriptor handle. | |
int | zb_simple_desc_set_out_clusters (zb_zdo_simple_desc_h handle, zb_cluster_id *out_clusters, int num) |
Sets output cluster list to a simple descriptor handle. |
int zb_simple_desc_clone | ( | zb_zdo_simple_desc_h | src, |
zb_zdo_simple_desc_h * | dst | ||
) |
Clones a simple descriptor.
[in] | src | handle of a source simple descriptor |
[in] | dst | handle of a destination simple descriptor |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_simple_desc_create | ( | zb_zdo_simple_desc_h * | handle | ) |
Creates a simple descriptor.
[out] | handle | The handle of a simple descriptor |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_OUT_OF_MEMORY | Out-of-memory |
ZIGBEE_ERROR_PERMISSION_DENIED | Permission denied |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_simple_desc_destroy | ( | zb_zdo_simple_desc_h | handle | ) |
Destroys a simple a descriptor handle.
[in] | handle | The handle of a simple descriptor |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_simple_desc_get_device_id | ( | zb_zdo_simple_desc_h | handle, |
zb_device_id * | deviceid | ||
) |
Gets device id from a simple descriptor handle.
[in] | handle | The handle of a simple descriptor |
[out] | deviceid | 16-bit device identifier |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_simple_desc_get_device_ver | ( | zb_zdo_simple_desc_h | handle, |
unsigned short * | device_ver | ||
) |
Gets device version from a simple descriptor handle.
[in] | handle | The handle of a simple descriptor |
[out] | device_ver | device version |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_simple_desc_get_ep | ( | zb_zdo_simple_desc_h | handle, |
zb_end_point * | ep | ||
) |
Gets active endpoint number from a simple descriptor handle.
[in] | handle | The handle of a simple descriptor |
[out] | ep | endpoint number |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_simple_desc_get_in_clusters | ( | zb_zdo_simple_desc_h | handle, |
zb_cluster_id ** | in_clusters | ||
) |
Gets input cluster list from a simple descriptor handle.
[in] | handle | The handle of simple descriptor |
[out] | in_clusters | input clusters |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_simple_desc_get_num_of_in_clusters | ( | zb_zdo_simple_desc_h | handle, |
unsigned char * | num_of_in_clusters | ||
) |
Gets the number of items in input clusters from a simple descriptor handle.
[in] | handle | Handle of a simple descriptor |
[out] | num_of_in_clusters | The number of input clusters |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_simple_desc_get_num_of_out_clusters | ( | zb_zdo_simple_desc_h | handle, |
unsigned char * | num_of_out_clusters | ||
) |
Gets number of output clusters from a simple descriptor handle.
[in] | handle | The handle of a simple descriptor |
[out] | num_of_out_clusters | number of output clusters |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_simple_desc_get_out_clusters | ( | zb_zdo_simple_desc_h | handle, |
zb_cluster_id ** | out_clusters | ||
) |
Gets output cluster list from a simple descriptor handle.
[in] | handle | The handle of a simple descriptor |
[out] | out_clusters | output clusters |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_simple_desc_get_profile_id | ( | zb_zdo_simple_desc_h | handle, |
zb_profile_id * | profileid | ||
) |
Gets profile id from a simple descriptor handle.
[in] | handle | The handle of a simple descriptor |
[out] | profileid | profile id |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_simple_desc_set_device_id | ( | zb_zdo_simple_desc_h | handle, |
zb_device_id | deviceid | ||
) |
Sets device id to a simple descriptor handle.
[in] | handle | The handle of a simple descriptor |
[in] | deviceid | 16-bit device identifier |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_simple_desc_set_device_ver | ( | zb_zdo_simple_desc_h | handle, |
unsigned short | device_ver | ||
) |
Sets device version to a simple descriptor handle.
[in] | handle | The handle of a simple descriptor |
[in] | device_ver | device version |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_simple_desc_set_ep | ( | zb_zdo_simple_desc_h | handle, |
zb_end_point | ep | ||
) |
Sets active endpoint number to a simple descriptor handle.
[in] | handle | The handle of a simple descriptor |
[in] | ep | endpoint number |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_simple_desc_set_in_clusters | ( | zb_zdo_simple_desc_h | handle, |
zb_cluster_id * | in_clusters, | ||
int | num | ||
) |
Sets input cluster list to a simple descriptor handle.
[in] | handle | The handle of a simple descriptor |
[in] | in_clusters | input clusters |
[in] | num | number of input clusters |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_simple_desc_set_num_of_in_clusters | ( | zb_zdo_simple_desc_h | handle, |
unsigned char | num_of_in_clusters | ||
) |
Sets the number of input clusters to a simple descriptor handle.
[in] | handle | The handle of a simple descriptor |
[in] | num_of_in_clusters | number of input clusters |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_simple_desc_set_num_of_out_clusters | ( | zb_zdo_simple_desc_h | handle, |
unsigned char | num_of_out_clusters | ||
) |
Sets number of output clusters to a simple descriptor handle.
[in] | handle | The handle of a simple descriptor |
[in] | num_of_out_clusters | number of output clusters |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_simple_desc_set_out_clusters | ( | zb_zdo_simple_desc_h | handle, |
zb_cluster_id * | out_clusters, | ||
int | num | ||
) |
Sets output cluster list to a simple descriptor handle.
[in] | handle | The handle of a simple descriptor |
[in] | out_clusters | output clusters |
[in] | num | number of output clusters |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_simple_desc_set_profile_id | ( | zb_zdo_simple_desc_h | handle, |
zb_profile_id | profileid | ||
) |
Sets profile id to a simple descriptor handle.
[in] | handle | The handle of a simple descriptor |
[in] | profileid | profile id |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |