libtropic
C library for TROPIC01 chip

◆ lt_port_spi_transfer()

lt_ret_t lt_port_spi_transfer ( lt_l2_state_t s2,
uint8_t  offset,
uint16_t  tx_len,
uint32_t  timeout_ms 
)
Parameters
s2Structure holding l2 state
tx_lenThe length of data to be transferred
offsetOffset in handle's internal buffer where incomming bytes should be stored into
timeout_msTimeout
Return values
LT_OKFunction executed successfully
LT_FAILFunction did not execute successully