Libtropic API
SDK for the TROPIC01 secure element
Version: v3.1.0
Loading...
Searching...
No Matches
lt_port_wrap.h File Reference

Declarations of wrappers for the port-specific functions. More...

#include <stddef.h>
#include "libtropic_common.h"
Include dependency graph for lt_port_wrap.h:

Functions

lt_ret_t lt_l1_init (lt_l2_state_t *s2)
 Initializes handle and L1.
 
lt_ret_t lt_l1_deinit (lt_l2_state_t *s2)
 Wipes handle and deinitializes L1. This is wrapper for platform defined function.
 
lt_ret_t lt_l1_spi_csn_low (lt_l2_state_t *s2)
 Sets chip select pin low. This is wrapper for platform defined function.
 
lt_ret_t lt_l1_spi_csn_high (lt_l2_state_t *s2)
 Sets chip select pin high. This is wrapper for platform defined function.
 
lt_ret_t lt_l1_spi_transfer (lt_l2_state_t *s2, uint8_t offset, uint16_t tx_len, uint32_t timeout_ms)
 Does L1 transfer. This is wrapper for platform defined function.
 
lt_ret_t lt_l1_delay (lt_l2_state_t *s2, uint32_t ms)
 Platform's definition for delay, specifies what host platform should do when libtropic's functions need some delay. This is wrapper for platform defined function.
 
lt_ret_t lt_l1_delay_on_int (lt_l2_state_t *s2, uint32_t ms)
 Specifies what platform should do when waiting for signal from interrupt pin.
 
lt_ret_t lt_random_bytes (lt_handle_t *h, void *buff, size_t count)
 Generate count random bytes using host's random number generator. This is a wrapper for platform defined function.
 

Detailed Description

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