MAX32665 SDK Documentation  0.2
Software Development Kit Overview and API Documentation
spi_req_t Struct Reference

Structure type representing a SPI Master Transaction request.

Data Fields

uint8_t ssel
 Slave select line to use. More...
 
uint8_t deass
 Non-zero to de-assert slave select after transaction. More...
 
spi17y_sspol_t ssel_pol
 Slave select line polarity. More...
 
const void * tx_data
 Pointer to a buffer to transmit data from. More...
 
void * rx_data
 Pointer to a buffer to store data received. More...
 
spi17y_width_t width
 Number of data lines to use, see spi17y_width_t. More...
 
unsigned len
 Number of transfer units to send from the tx_data buffer. More...
 
unsigned bits
 Number of bits in transfer unit (e.g. More...
 
unsigned rx_num
 Number of bytes actually read into the rx_data buffer. More...
 
unsigned tx_num
 Number of bytes actually sent from the tx_data buffer.
 
spi_callback_fn callback
 Callback function if desired, NULL otherwise.
 

Field Documentation

◆ ssel

uint8_t spi_req_t::ssel

(Master only)

◆ deass

uint8_t spi_req_t::deass

(Master only)

◆ ssel_pol

spi17y_sspol_t spi_req_t::ssel_pol

◆ tx_data

const void* spi_req_t::tx_data

NULL if undesired.

◆ rx_data

void* spi_req_t::rx_data

NULL if undesired.

◆ width

spi17y_width_t spi_req_t::width

◆ len

unsigned spi_req_t::len

◆ bits

unsigned spi_req_t::bits

8 for byte, 16 for short)

◆ rx_num

unsigned spi_req_t::rx_num

The documentation for this struct was generated from the following file: