Internal types and definitions for the Firmware Update Command Class.
More...
Internal types and definitions for the Firmware Update Command Class.
◆ zwave_firmware_transfer_state_t
Firmware transfer state value.
◆ zwave_firmware_transfer_status_t
Firmware transfer last status/error.
◆ zwave_firmware_transfer_state
Firmware transfer state value.
| Enumerator |
|---|
| IDLE | |
| ONGOING | |
| WAITING_FOR_ACTIVATION | |
| WAITING_FOR_REBOOT | |
◆ zwave_firmware_transfer_status
Firmware transfer last status/error.
| Enumerator |
|---|
| SUCCESS | |
| ABORTED | |
| NOT_AUTHORIZED | |
| INVALID_IMAGE | |
| REQUIRE_MORE_IMAGE | |
| NOT_SUPPORTED | |
◆ firmware_transfer_get_theoretical_max_fragment_size()
| uint16_t firmware_transfer_get_theoretical_max_fragment_size |
( |
attribute_store_node_t |
endpoint_node | ) |
|
Gets the theoretical max fragment size with a node/endpoint.
It will use the Security Class, inclusion protocol and RF Region configuration to calculate the maximum amount of data that can be passed in each frame.
If the ep>0, we also account for Multi Channel Encapsulation.
- Parameters
-
| endpoint_node | Attribute Store node for the Endpoint. |
- Returns
- sl_status_t code.
◆ is_firmware_target_valid()
| bool is_firmware_target_valid |
( |
attribute_store_node_t |
endpoint_node, |
|
|
uint32_t |
firmware_target |
|
) |
| |
Verifies if a Firmware Target value is valid for an endpoint.
- Parameters
-
| endpoint_node | Attribute Store node for the Endpoint ID |
| firmware_target | Firmware target to look for. |
- Returns
- true if the firmware target is valid, false otherwise
◆ is_firmware_update_ongoing()
| bool is_firmware_update_ongoing |
( |
attribute_store_node_t |
endpoint_node | ) |
|
Verifies if a Firmware Update is ongoing for an endpoint.
- Parameters
-
| endpoint_node | Attribute Store node for the Endpoint ID |
- Returns
- true if a firmware update is ongoing, false otherwise
◆ node_supports_cc()
| bool node_supports_cc |
( |
attribute_store_node_t |
endpoint_node | ) |
|
Verifies if a node supports Firmware CC, which indicates if the supporting node’s Command Classes functionality will continue to function normally during Firmware Update transfer.
- Parameters
-
| endpoint_node | Attribute Store node for the Endpoint ID |
- Returns
- true if supported, false otherwise
◆ node_supports_firmware_activation()
| bool node_supports_firmware_activation |
( |
attribute_store_node_t |
endpoint_node | ) |
|
Verifies if a node supports Firmware Activation.
- Parameters
-
| endpoint_node | Attribute Store node for the Endpoint ID |
- Returns
- true if supported, false otherwise
◆ postpone_firmware_update_expiry()
| sl_status_t postpone_firmware_update_expiry |
( |
attribute_store_node_t |
endpoint_node | ) |
|
Postpones the Firmware Update expiry for an Endpoint.
- Parameters
-
| endpoint_node | Attribute Store node for the Endpoint ID |
- Returns
- SL_STATUS_OK if it was postponed successfully.
◆ set_firmware_transfer_file()
| sl_status_t set_firmware_transfer_file |
( |
attribute_store_node_t |
firmware_transfer_node, |
|
|
const char * |
file_name |
|
) |
| |
Sets the Firmware data file for a Firmware Update.
It will configure the Firmware transfer to use this file
- Parameters
-
| firmware_transfer_node | Attribute Store node under which the Firmware Target must be set. |
| file_name | String that indicates the path of a file on the file-system |
- Returns
- sl_status_t code.
◆ set_firmware_transfer_fragment_size()
| sl_status_t set_firmware_transfer_fragment_size |
( |
attribute_store_node_t |
firmware_transfer_node | ) |
|
Sets the Firmware transfer fragment size for a Firmware Update.
It will find the information from the Firmware Update capabilities and lock it for that firmware transfer.
- Parameters
-
| firmware_transfer_node | Attribute Store node under which the Firmware Target must be set. |
- Returns
- sl_status_t code.
◆ set_firmware_transfer_last_status()
Sets the Firmware transfer last status for a Firmware Update.
- Parameters
-
| firmware_transfer_node | Attribute Store node under which the Firmware Target must be set. |
| status | zwave_firmware_transfer_status_t to set |
- Returns
- sl_status_t code.
◆ set_transfer_offset()
| sl_status_t set_transfer_offset |
( |
attribute_store_node_t |
firmware_transfer_node, |
|
|
uint32_t |
transfer_offset |
|
) |
| |
Sets the current offset for a Firmware Transfer.
- Parameters
-
| firmware_transfer_node | Attribute Store node under which the Firmware Target must be set. |
| transfer_offset | The value of the current offset |
- Returns
- sl_status_t code.