Libtropic API
SDK for the TROPIC01 secure element
Version: v4.0.0
Loading...
Searching...
No Matches
lt_l1.h File Reference

Layer 1 functions declarations. More...

#include "libtropic_common.h"
Include dependency graph for lt_l1.h:

Macros

#define TR01_L1_CHIP_MODE_READY_bit   0x01
 
#define TR01_L1_CHIP_MODE_ALARM_bit   0x02
 
#define TR01_L1_CHIP_MODE_STARTUP_bit   0x04
 
#define LT_L1_READ_MAX_TRIES   50
 Max number of Get_Response requests when chip is not answering.
 
#define LT_L1_READ_RETRY_DELAY_MS   25
 Time to wait in ms between each Get_Response request.
 
#define LT_L1_SPI_TIMEOUT_MS   70
 Timeout when waiting for activity on SPI bus.
 
#define LT_L1_INT_TIMEOUT_MS   200
 Timeout when waiting for interrupt from TROPIC01's GPO pin.
 
#define TR01_L1_GET_RESPONSE_REQ_ID   0xAA
 

Functions

lt_ret_t lt_l1_read (lt_l2_state_t *s2, const uint32_t max_len, const uint32_t timeout_ms)
 Reads data from TROPIC01 into host platform.
 
lt_ret_t lt_l1_write (lt_l2_state_t *s2, const uint16_t len, const uint32_t timeout_ms)
 Writes data from host platform into TROPIC01.
 
lt_ret_t lt_l1_retrieve_alarm_log (lt_l2_state_t *s2, const uint32_t timeout_ms)
 Retrieves alarm log from TROPIC01.
 

Detailed Description

License
For the license see LICENSE.md in the root directory of this source tree.