Functions defined for each supported platform.
More...
|
| file | libtropic_port.h |
| | Header file with layer 1 interfaces which are defined based on host platform.
|
| |
|
|
#define | LT_DEVICE_PATH_MAX_LEN 256 |
| | Max length of a path to a device in the device tree.
|
| |
|
| lt_ret_t | lt_port_init (lt_l2_state_t *s2) |
| | Platform defined init function. Init resources and set pins as needed.
|
| |
| lt_ret_t | lt_port_deinit (lt_l2_state_t *s2) |
| | Platform defined deinit function. Deinit resources and clear pins as needed.
|
| |
| lt_ret_t | lt_port_spi_csn_low (lt_l2_state_t *s2) |
| | Sets chip select pin low, platform defined function.
|
| |
| lt_ret_t | lt_port_spi_csn_high (lt_l2_state_t *s2) |
| | Sets chip select pin high, platform defined function.
|
| |
| 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.
|
| |
| 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.
|
| |
| 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.
|
| |
| 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.
|
| |
Function used by host platform during l1 operations. Check 'hal/' folder to see what is supported. All of these functions have to be impemented by the port for libtropic to work.