libtropic
C library for TROPIC01 chip
lt_l1_port_wrap.h File Reference

Layer 1 functions declarations. More...

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

Functions

lt_ret_t lt_l1_init (lt_l2_state_t *s2)
 Initializes handle and L1. More...
 
lt_ret_t lt_l1_deinit (lt_l2_state_t *s2)
 Wipes handle and deinitializes L1. This is wrapper for platform defined function. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 

Detailed Description

Author
Tropic Square s.r.o.
License
For the license see file LICENSE.txt file in the root directory of this source tree.