Loading...
Searching...
No Matches
SPI Struct Reference

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.
 

Detailed Description

Struct definition for SPI interface. Provides the interface for API consumers to interact with the SPI peripheral.

Definition at line 49 of file spi.h.

Field Documentation

◆ send

void(* send) (struct SPI *, uint16_t)

SPI send method.

See also
SPI_send

Definition at line 54 of file spi.h.

◆ receive

void(* receive) (struct SPI *, volatile uint16_t *)

SPI receive method.

See also
SPI_receive

Definition at line 55 of file spi.h.

◆ transmit

uint16_t(* transmit) (struct SPI *, uint16_t)

SPI transmit method.

See also
SPI_transmit

Definition at line 56 of file spi.h.


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