libtropic
C library for TROPIC01 chip

◆ lt_l1_spi_transfer()

lt_ret_t lt_l1_spi_transfer ( lt_l2_state_t s2,
uint8_t  offset,
uint16_t  tx_len,
uint32_t  timeout_ms 
)
Parameters
s2Structure holding l2 state
offsetOffset in handle's internal buffer where incomming bytes should be stored into
tx_lenThe length of data to be transferred
timeout_msTimeout
Returns
LT_OK if success, otherwise returns other error code.