|
K-FSW v1.2.1-59-gcaca356
KFSW: modular flight software on Zephyr, for small satellites
|
Macros | |
| #define | KFSW_HARDWARE_ID_MAX_BYTES 16U |
| #define | KFSW_HARDWARE_ID_TEXT_SIZE ((KFSW_HARDWARE_ID_MAX_BYTES * 2U) + 1U) |
Functions | |
| int | kfsw_platform_get_hardware_id (char *text, size_t size) |
| #define KFSW_HARDWARE_ID_MAX_BYTES 16U |
#include <hardware.h>
Longest identifier read, in bytes.
The Kinetis family reports 128 bits.
| #define KFSW_HARDWARE_ID_TEXT_SIZE ((KFSW_HARDWARE_ID_MAX_BYTES * 2U) + 1U) |
#include <hardware.h>
Buffer size that always holds a formatted identifier and its terminator.
| int kfsw_platform_get_hardware_id | ( | char * | text, |
| size_t | size | ||
| ) |
#include <hardware.h>
Read the chip's unique ID as lowercase hex, most significant byte first.
| [out] | text | Buffer receiving the NUL-terminated identifier. |
| size | Bytes available in text; KFSW_HARDWARE_ID_TEXT_SIZE is always enough. |
| 0 | The identifier was read and formatted. |
| -EINVAL | text is NULL. |
| -ENOSPC | size is too small for this SoC's identifier. Nothing is written. |
| -ENOTSUP | This SoC does not report one. |