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