Macros | Functions
drv_spi.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SPI_0_28125MHZ_CLOCK_DIVIDER   256
 
#define SPI_0_5625MHZ_CLOCK_DIVIDER   128
 
#define SPI_18MHZ_CLOCK_DIVIDER   2
 
#define SPI_9MHZ_CLOCK_DIVIDER   4
 

Functions

bool spiInit (SPI_TypeDef *instance)
 
bool spiIsBusBusy (SPI_TypeDef *instance)
 
void spiSetDivisor (SPI_TypeDef *instance, uint16_t divisor)
 
void spiTransfer (SPI_TypeDef *instance, uint8_t *out, const uint8_t *in, int len)
 
uint8_t spiTransferByte (SPI_TypeDef *instance, uint8_t in)
 

Macro Definition Documentation

#define SPI_0_28125MHZ_CLOCK_DIVIDER   256

Definition at line 20 of file drv_spi.h.

#define SPI_0_5625MHZ_CLOCK_DIVIDER   128

Definition at line 21 of file drv_spi.h.

#define SPI_18MHZ_CLOCK_DIVIDER   2

Definition at line 22 of file drv_spi.h.

#define SPI_9MHZ_CLOCK_DIVIDER   4

Definition at line 23 of file drv_spi.h.

Function Documentation

bool spiInit ( SPI_TypeDef instance)

Definition at line 372 of file drv_spi.c.

bool spiIsBusBusy ( SPI_TypeDef instance)

Return true if the bus is currently in the middle of a transmission.

Definition at line 425 of file drv_spi.c.

void spiSetDivisor ( SPI_TypeDef instance,
uint16_t  divisor 
)

Definition at line 460 of file drv_spi.c.

void spiTransfer ( SPI_TypeDef instance,
uint8_t *  out,
const uint8_t *  in,
int  len 
)

Definition at line 430 of file drv_spi.c.

uint8_t spiTransferByte ( SPI_TypeDef instance,
uint8_t  in 
)

Definition at line 399 of file drv_spi.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Apr 15 2021 05:07:50