|
PebbleOS v4.47.0-512-g5285d4236
|
Microcontroller identification. More...
Functions | |
| int | mcu_get_serial (void *buf, size_t *buf_sz) |
| Read the microcontroller's unique ID. | |
Microcontroller identification.
| int mcu_get_serial | ( | void * | buf, |
| size_t * | buf_sz | ||
| ) |
Read the microcontroller's unique ID.
| [out] | buf | Buffer receiving the ID. |
| [in,out] | buf_sz | Size of buf in bytes; set to the ID length on success. |
| 0 | ID read. |
| -ENOSPC | buf is too small. |
| -errno | Other errors. |