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
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.
bool spi_submit(struct spi_periph *p, struct spi_transaction *t)
Submit SPI transaction.
#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
bool spi_lock(struct spi_periph *p, uint8_t slave)
spi_lock() function
void spi_slave_unselect(uint8_t slave)
spi_slave_unselect() function
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
bool spi_resume(struct spi_periph *p, uint8_t slave)
spi_resume() function
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
struct spi_transaction max1168_read_trans
enum SPITransactionStatus status