Zigbee Protocol Controller 1.6.0
Attribute Store validation

Attribute Store validation utility. More...

Functions

bool is_write_operation_valid (attribute_store_type_t node_type, const uint8_t *value, uint8_t value_size)
 Verifies if a write operation respects the registered type storage. More...
 
bool is_node_addition_valid (attribute_store_type_t node_type, attribute_store_type_t parent_type)
 Verifies if a node addition in the attribute store is allowed. More...
 

Detailed Description

Attribute Store validation utility.

Helper functions that validate valid operations in the attribute store.

Function Documentation

◆ is_node_addition_valid()

bool is_node_addition_valid ( attribute_store_type_t  node_type,
attribute_store_type_t  parent_type 
)

Verifies if a node addition in the attribute store is allowed.

Parameters
node_typeNode type of the node to add
parent_typeNode type of the parent node
Returns
true is the nodde addition is valid and should be allowed, false otherwise

◆ is_write_operation_valid()

bool is_write_operation_valid ( attribute_store_type_t  node_type,
const uint8_t *  value,
uint8_t  value_size 
)

Verifies if a write operation respects the registered type storage.

Parameters
node_typeAttribute Store Node type on which the write will be done.
valueattribute_store_set_node_attribute_value
value_sizeattribute_store_set_node_attribute_value
Returns
true is the write operation is valid and should be allowed, false otherwise