![]() |
Core2 for AWS IoT EduKit BSP 1.5.1
|
Functions for the ATECC608 Trust&GO secure element. More...
#include "stdio.h"Go to the source code of this file.
Macros | |
| #define | ATECC608_I2C_PORT I2C_NUM_1 |
| I2C port the ATECC608 uses to communicate with the ESP32-D0WD main MCU. More... | |
Functions | |
| ATCA_STATUS | Atecc608_Init () |
| Initializes the ATECC608 Trust&GO on the I2C bus. More... | |
| ATCA_STATUS | Atecc608_GetSerialString (char *sn) |
| Retrieves the unique serial number from the ATECC608. More... | |
Functions for the ATECC608 Trust&GO secure element.
| #define ATECC608_I2C_PORT I2C_NUM_1 |
I2C port the ATECC608 uses to communicate with the ESP32-D0WD main MCU.
| ATCA_STATUS Atecc608_Init | ( | ) |
Initializes the ATECC608 Trust&GO on the I2C bus.
| ATCA_STATUS Atecc608_GetSerialString | ( | char * | sn | ) |
Retrieves the unique serial number from the ATECC608.
The serial number of the ATECC608 is stored as a uint8 with the length defined in the macro ATCA_SERIAL_NUM_SIZE. It might take a little time to wake the secure element and retrieve the serial number.
Example:
Create a variable named clientId with enough dynamically allocated memory to store the ATECC608 serial number.
| [out] | sn | The unique serial number of the chip. |