8051-ELL库  beta 1.1.6
8051-ELL library API Document Center
SPIInit_Type结构体 参考

SPI初始化枚举体,需要你定义它,并用它的地址来传参给初始化函数。 更多...

#include <STC8x_SPI.h>

成员变量

SPIType_Type Type
 
SPIClkSrc_Type ClkSrc
 
SPIMode_Type Mode
 
SPITran_Type Tran
 
BOOL Run
 

详细描述

SPI初始化枚举体,需要你定义它,并用它的地址来传参给初始化函数。

SPI initializes the enumeration body, you need to define it and use its address to pass parameters to the initialization function.

结构体成员变量说明

◆ ClkSrc

SPI时钟源。SPI clock source.

◆ Mode

SPI工作模式。SPI working mode.

◆ Run

BOOL Run

SPI运行控制位。SPI operation control bit.

◆ Tran

SPI传输类型。SPI transmission type.

◆ Type

SPI工作类型。SPI working type.