Various conversion functions and macros for ZPC.
More...
|
| #define | DSK_STR_LEN (sizeof("xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx") + 1) |
| |
Various conversion functions and macros for ZPC.
◆ DSK_STR_LEN
| #define DSK_STR_LEN (sizeof("xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx") + 1) |
◆ zpc_converters_dsk_str_to_internal()
Convert DSK string to uint8_t array representation.
- Parameters
-
| src | DSK string formatted as "xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx" it doesn't need to 5 characters per entry, i.e., "1-12345-33-23423-0-1-3-4" is supported MUST BE ZERO TERMINATED |
| dst | destination buffer to store zwave_dsk_t in |
- Returns
- sl_status_t SL_STATUS_OK if success
◆ zpc_converters_dsk_to_str()
Convert a zwave_dsk_t to a String representation.
String representation in format "xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx" as decimal numbers
- Parameters
-
| src | DSK to write to string |
| dst | Buffer to store string representation in |
| dst_max_len | Size of the dst buffer to prevent overflow, shall be >= DSK_STR_LEN |
- Returns
- SL_STATUS_OK for success
-
SL_STATUS_WOULD_OVERFLOW if char buffer is too small