Serial Peripheral Interface Reusable Driver v1.1
This project implements SPI reusable driver that can be adapted to various microcontrollers.
Loading...
Searching...
No Matches
SpiConfig_t Struct Reference

#include <spi_cfg.h>

Data Fields

SpiChannel_t Channel
 
SpiMode_t Mode
 
SpiHierarchy_t Hierarchy
 
SpiBaudRate_t BaudRate
 
SpiSlaveSelect_t SlaveSelect
 
SpiFrameFormat_t FrameFormat
 
SpiTypeTransfer_t TypeTransfer
 
SpiDataSize_t DataSize
 

Detailed Description

Defines the Serial Peripheral Interface configuration table's elements that are used by Spi_Init to configure the SPI peripheral.

Field Documentation

◆ BaudRate

SpiBaudRate_t BaudRate

FPCLK2 - Max FPCLK

◆ Channel

SpiChannel_t Channel

The SPI channel

◆ DataSize

SpiDataSize_t DataSize

8 bits and 16 bits

◆ FrameFormat

SpiFrameFormat_t FrameFormat

MSB and LSB

◆ Hierarchy

SpiHierarchy_t Hierarchy

Slave and Master

◆ Mode

SpiMode_t Mode

Mode 0,1,2, and 3

◆ SlaveSelect

SpiSlaveSelect_t SlaveSelect

NSS pin management

◆ TypeTransfer

SpiTypeTransfer_t TypeTransfer

Full duplex and Receive mode


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