Z-Wave Protocol Controller Reference
Zwave_command_class_crc16

CRC16 Encap support. More...

Functions

bool zwave_command_class_crc16_is_supported (attribute_store_node_t endpoint_node)
 Check if the CRC16 command class is supported by a given node and endpoint. More...
 
void zwave_command_class_crc16_clear_expect_crc16_response (zwave_node_id_t node_id, zwave_endpoint_id_t endpoint_id)
 Clear the CRC16 expecting response flag for a given node and endpoint. More...
 
void zwave_command_class_crc16_set_expect_crc16_response (zwave_node_id_t node_id, zwave_endpoint_id_t endpoint_id)
 Mark the given node_id and endpoint_id as expecting a CRC16 response. More...
 
bool zwave_command_class_crc16_is_expecting_crc16_response (zwave_node_id_t node_id, zwave_endpoint_id_t endpoint_id)
 Check if the given node_id and endpoint_id is expecting a CRC16 response. More...
 
sl_status_t zwave_command_class_crc16_init ()
 

Detailed Description

CRC16 Encap support.

Provides utility functions for CRC16 Encap support.

You can check if endpoint node actually supports CRC16 Encap. Also you can flag a node and endpoint as expecting a CRC16 response to make sure that you use the same encapsulation as the sender.

Function Documentation

◆ zwave_command_class_crc16_clear_expect_crc16_response()

void zwave_command_class_crc16_clear_expect_crc16_response ( zwave_node_id_t  node_id,
zwave_endpoint_id_t  endpoint_id 
)

Clear the CRC16 expecting response flag for a given node and endpoint.

Note
Nothing happens if the flag is not set.
Parameters
node_idNode ID
endpoint_idEndpoint ID
Here is the caller graph for this function:

◆ zwave_command_class_crc16_init()

sl_status_t zwave_command_class_crc16_init ( )
Here is the caller graph for this function:

◆ zwave_command_class_crc16_is_expecting_crc16_response()

bool zwave_command_class_crc16_is_expecting_crc16_response ( zwave_node_id_t  node_id,
zwave_endpoint_id_t  endpoint_id 
)

Check if the given node_id and endpoint_id is expecting a CRC16 response.

Parameters
node_idNode ID
endpoint_idEndpoint ID
Returns
true if the node_id and endpoint_id is expecting a CRC16 response, false otherwise.
Here is the caller graph for this function:

◆ zwave_command_class_crc16_is_supported()

bool zwave_command_class_crc16_is_supported ( attribute_store_node_t  endpoint_node)

Check if the CRC16 command class is supported by a given node and endpoint.

Parameters
endpoint_nodeEndpoint node
Returns
false if the node is still in interviewing state
false if the node does not support CRC16
false if the node explicitly does not want to send crc16 frame
true if the node supports CRC16
Here is the caller graph for this function:

◆ zwave_command_class_crc16_set_expect_crc16_response()

void zwave_command_class_crc16_set_expect_crc16_response ( zwave_node_id_t  node_id,
zwave_endpoint_id_t  endpoint_id 
)

Mark the given node_id and endpoint_id as expecting a CRC16 response.

Note
You can call this multiple times on the same node_id and endpoint_id to have multiples CRC16 responses
Parameters
node_idNode ID
endpoint_idEndpoint ID