|
Serial Peripheral Interface Reusable Driver v1.1
This project implements SPI reusable driver that can be adapted to various microcontrollers.
|
#include <spi_cfg.h>
Defines the Serial Peripheral Interface configuration table's elements that are used by Spi_Init to configure the SPI peripheral.
| SpiBaudRate_t BaudRate |
FPCLK2 - Max FPCLK
| SpiChannel_t Channel |
The SPI channel
| SpiDataSize_t DataSize |
8 bits and 16 bits
| SpiFrameFormat_t FrameFormat |
MSB and LSB
| SpiHierarchy_t Hierarchy |
Slave and Master
| SpiMode_t Mode |
Mode 0,1,2, and 3
| SpiSlaveSelect_t SlaveSelect |
NSS pin management
| SpiTypeTransfer_t TypeTransfer |
Full duplex and Receive mode