PebbleOS
Loading...
Searching...
No Matches
Functions
MCU information

Microcontroller identification. More...

Functions

StatusCode mcu_get_serial (void *buf, size_t *buf_sz)
 Read the microcontroller's unique ID.
 

Detailed Description

Microcontroller identification.

Function Documentation

◆ mcu_get_serial()

StatusCode mcu_get_serial ( void *  buf,
size_t *  buf_sz 
)

Read the microcontroller's unique ID.

Parameters
[out]bufBuffer receiving the ID.
[in,out]buf_szSize of buf in bytes; set to the ID length on success.
Return values
S_SUCCESSID read.
E_OUT_OF_MEMORYbuf is too small.