8API规范
8.1 导入类型
8.2 类型定义
8.2.1 Spi_ConfigType
8.2.2 Spi_StatusType
8.2.3 Spi_JobResultType
8.2.4 Spi_SeqResultType
8.2.5 Spi_DataType
8.2.6 Spi_NumberOfDataType
8.2.7 Spi_ChannelType
8.2.8 Spi_JobType
8.2.9 Spi_SequenceType
8.2.10 Spi_HWUnitType
8.2.11 Spi_AsyncModeType
8.3 函数定义
8.3.1 Spi_Init
8.3.2 Spi_DeInit
8.3.3 Spi_WriteIB
8.3.4 Spi_AsyncTransmit
8.3.5 Spi_ReadIB
8.3.6 Spi_SetupEB
8.3.7 Spi_GetStatus
8.3.8 Spi_GetJobResult
8.3.9 Spi_GetSequenceResult
8.3.10 Spi_GetVersionInfo
8.3.11 Spi_SyncTransmit
8.3.12 Spi_GetHWUnitStatus
8.3.13 Spi_Cancel
8.3.14 Spi_SetAsyncMode
8.4 回调通知
8.5 Scheduled functions
8.5.1 Spi_MainFunction_Handling
8.6 预期的接口
8.6.1 Mandatory Interfaces
8.6.2 Optional Interfaces
8.6.3 Configurable interfaces
8.6.3.1 Spi_JobEndNotification
8.6.3.2 Spi_SeqEndNotification
9 队列图
9.1初始化
9.2 模式转换
9.3 写/ 异步 /读(IB)
9.3.1 One Channel, one Job then one Sequence
9.3.2 Many Channels, one Job then one Sequence
9.3.3 Many Channels, many Jobs and one Sequence
9.3.4 Many Channels, many Jobs and many Sequences
9.4 Setup/AsyncTransmit (EB)
9.4.1 Variable Number of Data / Constant Number of Data
[SPI077]要传输可变数量的数据,必须在每次Spi_AsyncTransmit函数调用之前调用Spi_SetupEB函数在SPI处理程序/驱动程序中存储新参数。
[SPI078]要传输常数的数据,只必须在第一次Spi_AsyncTransmit函数调用之前调用Spi_SetupEB函数在SPI处理程序/驱动程序中存储参数。
9.4.2 One Channel, one Job then one Sequence
下面的序列图显示了一个Spi SetupEB / Spi AsyncTransmit调用序列传输的例子,只有一个作业由一个通道组成。写或读访问是“用户依赖的”,当Job只是分别读取或写入时可以跳过。
示例:通道ID 2属于序列ID 0的作业ID 1
9.4.3 Many Channels, one Job then one Sequence
9.4.4 Many Channels, many Jobs and one Sequence
9.4.5 Many Channels, many Jobs and many Sequences
9.5混合工作传输
9.6 LEVEL 0同步传输图
9.6.1 Write/SyncTransmit/Read (IB): Many Channels, many Jobs and one Sequence
9.6.2 Setup/SyncTransmit (EB): Many Channels, many Jobs and one Sequence