MG32F157 Standard Peripherals Firmware Library
Data Fields
SPI_InitTypeDef Struct Reference

SPI Init structure definition. More...

#include <mg32f157_spi.h>

Data Fields

uint16_t SPI_Direction
 
uint16_t SPI_Mode
 
uint16_t SPI_DataSize
 
uint16_t SPI_CPOL
 
uint16_t SPI_CPHA
 
uint16_t SPI_NSS
 
uint16_t SPI_BaudRatePrescaler
 
uint16_t SPI_FirstBit
 
uint16_t SPI_CRCPolynomial
 

Detailed Description

SPI Init structure definition.

Field Documentation

◆ SPI_BaudRatePrescaler

uint16_t SPI_BaudRatePrescaler

Specifies the Baud Rate prescaler value which will be used to configure the transmit and receive SCK clock. This parameter can be a value of SPI_BaudRate_Prescaler.

Note
The communication clock is derived from the master clock. The slave clock does not need to be set.

◆ SPI_CPHA

uint16_t SPI_CPHA

Specifies the clock active edge for the bit capture. This parameter can be a value of SPI_Clock_Phase

◆ SPI_CPOL

uint16_t SPI_CPOL

Specifies the serial clock steady state. This parameter can be a value of SPI_Clock_Polarity

◆ SPI_CRCPolynomial

uint16_t SPI_CRCPolynomial

Specifies the polynomial used for the CRC calculation.

◆ SPI_DataSize

uint16_t SPI_DataSize

Specifies the SPI data size. This parameter can be a value of SPI_data_size

◆ SPI_Direction

uint16_t SPI_Direction

Specifies the SPI unidirectional or bidirectional data mode. This parameter can be a value of SPI_data_direction

◆ SPI_FirstBit

uint16_t SPI_FirstBit

Specifies whether data transfers start from MSB or LSB bit. This parameter can be a value of SPI_MSB_LSB_transmission

◆ SPI_Mode

uint16_t SPI_Mode

Specifies the SPI operating mode. This parameter can be a value of SPI_mode

◆ SPI_NSS

uint16_t SPI_NSS

Specifies whether the NSS signal is managed by hardware (NSS pin) or by software using the SSI bit. This parameter can be a value of SPI_Slave_Select_management


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