libtropic
C library for TROPIC01 chip
|
Defined for each supported platform. More...
Files | |
file | libtropic_port.h |
Header file with layer 1 interfaces which are defined based on host platform. | |
Macros | |
#define | DEVICE_PATH_MAX_LEN 256 |
Max length of a path to a device in the device tree. | |
Functions | |
lt_ret_t | lt_port_init (lt_l2_state_t *s2) |
Platform defined init function. Init resources and set pins as needed. More... | |
lt_ret_t | lt_port_deinit (lt_l2_state_t *s2) |
Platform defined deinit function. Deinit resources and clear pins as needed. More... | |
lt_ret_t | lt_port_spi_csn_low (lt_l2_state_t *s2) |
Sets chip select pin low, platform defined function. More... | |
lt_ret_t | lt_port_spi_csn_high (lt_l2_state_t *s2) |
Sets chip select pin high, platform defined function. More... | |
lt_ret_t | lt_port_spi_transfer (lt_l2_state_t *s2, uint8_t offset, uint16_t tx_len, uint32_t timeout_ms) |
Does L1 transfer, platform defined function. More... | |
lt_ret_t | lt_port_delay (lt_l2_state_t *s2, uint32_t ms) |
Platform defined function for delay, specifies what host platform should do when libtropic's functions need some delay. More... | |
lt_ret_t | lt_port_delay_on_int (lt_l2_state_t *s2, uint32_t ms) |
Platform defined function used to specify reading of an interrupt pin, used as a signal that chip has a response. More... | |
lt_ret_t | lt_port_random_bytes (lt_l2_state_t *s2, void *buff, size_t count) |
Fill buffer with random bytes, platform defined function. More... | |
Function used by host platform during l1 operations. Check 'hal/port/' folder to see what is supported. All of these functions have to be impemented by the port for libtropic to work.