Btmesh Automatic IV update#
This component provides 3 optional functionalities:
periodic IV Update age backup. Restore on reset.
automatic IV Update request, if a sequence number exceeds a threshold.
automatic IV Update request, after a configured time in Normal operation. Turning on this component may increase power consumption. This component is prepared for integration into SOC applications. This is a No-Code component.
Functions#
Function Documentation#
sl_btmesh_iv_update_on_event#
void sl_btmesh_iv_update_on_event (sl_btmesh_msg_t * evt)
Type | Direction | Argument Name | Description |
---|---|---|---|
sl_btmesh_msg_t * | [in] | evt | Pointer to incoming event. |
Handling of mesh iv_update related events.
sl_btmesh_iv_update_age_backup_on_event#
void sl_btmesh_iv_update_age_backup_on_event (sl_btmesh_msg_t * evt)
Type | Direction | Argument Name | Description |
---|---|---|---|
sl_btmesh_msg_t * | [in] | evt | Pointer to incoming event. |
Handling of mesh iv_update_age_backup related events.
sl_btmesh_iv_update_on_node_reset#
void sl_btmesh_iv_update_on_node_reset (void )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Component node reset handler. Clearing component specific nvm content during node reset. This function is called automatically by Universal Configurator after enabling the component.
sl_btmesh_iv_update_by_age_on_event#
void sl_btmesh_iv_update_by_age_on_event (sl_btmesh_msg_t * evt)
Type | Direction | Argument Name | Description |
---|---|---|---|
sl_btmesh_msg_t * | [in] | evt | Pointer to incoming event. |
Handling of mesh iv_update_by_age related events.
get_iv_update_age#
uint32_t get_iv_update_age (void )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Weak function. Implementation should return the current IV Update age. Weak implementation returns zero. It is only called on node init event. iv_update_age_backup implements this function if it is enabled. Returns
IV Update age in seconds
sl_btmesh_iv_update_by_seq_num_on_event#
void sl_btmesh_iv_update_by_seq_num_on_event (sl_btmesh_msg_t * evt)
Type | Direction | Argument Name | Description |
---|---|---|---|
sl_btmesh_msg_t * | [in] | evt | Pointer to incoming event. |
Handling of mesh iv_update_by_seq_num related events.