Struct definition for SPI interface. Provides the interface for API consumers to interact with the SPI peripheral. More...
#include <spi.h>
Inherited by A3G4250D, BMP581, Flash, KX134_1211, and LoRa.
Data Fields | |
DeviceType | device |
Enum specifier for device type. | |
SPI_TypeDef * | interface |
Pointer to SPI interface struct. | |
GPIO_TypeDef * | port |
Pointer to GPIO port struct. | |
unsigned long | cs |
Device chip select address. | |
void(* | send )(struct SPI *, uint16_t) |
SPI send method. | |
void(* | receive )(struct SPI *, volatile uint16_t *) |
SPI receive method. | |
uint16_t(* | transmit )(struct SPI *, uint16_t) |
SPI transmit method. | |
Struct definition for SPI interface. Provides the interface for API consumers to interact with the SPI peripheral.
void(* send) (struct SPI *, uint16_t) |
void(* receive) (struct SPI *, volatile uint16_t *) |
uint16_t(* transmit) (struct SPI *, uint16_t) |