|
Z-Wave Protocol Controller Reference
|
UNID mapping functions. More...
Typedefs | |
| typedef char | unid_t[17] |
Functions | |
| void | zwave_unid_from_node_id (zwave_node_id_t node_id, unid_t unid) |
| Form a UNID. More... | |
| sl_status_t | zwave_unid_to_node_id (const unid_t unid, zwave_node_id_t *node_id) |
| Convert a UNID to a node ID. More... | |
| sl_status_t | zwave_unid_to_home_id (const unid_t unid, zwave_home_id_t *home_id) |
| Convert a UNID to a Home ID. More... | |
| void | zwave_unid_set_home_id (zwave_home_id_t home_id) |
| Set the Z-Wave home ID to create UNIDs from. More... | |
UNID mapping functions.
This module provides utility function for constructing and parsing Unique Node IDentifiers(UNID)
| typedef char unid_t[17] |
| void zwave_unid_from_node_id | ( | zwave_node_id_t | node_id, |
| unid_t | unid | ||
| ) |
Form a UNID.
This function creates a UNID from the provided node id and the current home ID.
| node_id | Node ID to form the UNID from |
| unid | The UNID output |
| void zwave_unid_set_home_id | ( | zwave_home_id_t | home_id | ) |
Set the Z-Wave home ID to create UNIDs from.
| home_id | home id |
| sl_status_t zwave_unid_to_home_id | ( | const unid_t | unid, |
| zwave_home_id_t * | home_id | ||
| ) |
Convert a UNID to a Home ID.
Provided a UNID, this function return the detected Home ID.
| unid | UNID to parse |
| home_id | HomeID output, must be a valid pointer. |
| sl_status_t zwave_unid_to_node_id | ( | const unid_t | unid, |
| zwave_node_id_t * | node_id | ||
| ) |
Convert a UNID to a node ID.
Provided a UNID, this function returns the node ID.
| unid | UNID to parse |
| node_id | Node ID output, which must be a valid pointer. |
added for unit test cases, in a normal operation the returned node_id shall not be used.