enum SPIClockPolarity cpol
clock polarity control
enum SPIClockPhase cpha
clock phase control
enum SPISlaveSelect select
slave selection behavior
SPICallback after_cb
NULL or function called after the transaction.
enum SPIDataSizeSelect dss
data transfer word size
volatile uint8_t * output_buf
pointer to transmit buffer for DMA
uint16_t input_length
number of data words to read
enum SPIClockDiv cdiv
prescaler of main clock to use as SPI clock
volatile uint8_t * input_buf
pointer to receive buffer for DMA
uint8_t slave_idx
slave id: SPI_SLAVE0 to SPI_SLAVE4
enum SPIBitOrder bitorder
MSB/LSB order.
uint16_t output_length
number of data words to write
enum SPITransactionStatus status
bool spi_submit(struct spi_periph *p, struct spi_transaction *t)
Submit SPI transaction.
bool spi_lock(struct spi_periph *p, uint8_t slave)
spi_lock() function
void spi_slave_unselect(uint8_t slave)
spi_slave_unselect() function
bool spi_resume(struct spi_periph *p, uint8_t slave)
spi_resume() function
@ SPICpolIdleLow
CPOL = 0.
@ SPISelect
slave is selected before transaction but not unselected
@ SPIUnselect
slave is not selected but unselected after transaction
SPI transaction structure.
arch independent LED (Light Emitting Diodes) API
volatile uint8_t max1168_status
void max1168_lock_cb(struct spi_transaction *t)
struct spi_transaction max1168_req_trans
uint16_t max1168_conv_req
struct spi_transaction max1168_read_trans
uint16_t max1168_values[MAX1168_NB_CHAN]
#define MAX1168_DATA_AVAILABLE
#define MAX1168_READING_RES
#define MAX1168_SLAVE_IDX
#define MAX1168_SENDING_REQ
void max1168_arch_init(void)
Architecture independent SPI (Serial Peripheral Interface) API.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.