SpiMsg

Overview

Related Modules:

SPI

Description:

Defines the custom SPI transfer message.

Since:

1.0

Summary

Data Fields

Variable Name

Description

wbuf

uint8_t  

rbuf

uint8_t  

len

uint32_t 

speed

uint32_t 

delayUs

uint16_t 

csChange

uint8_t 

Details

Field Documentation

csChange

  1. uint8_t SpiMsg::csChange

Description:

Whether to switch off the CS before the next transfer when the current transfer has been completed. 1 indicates to switch off the CS; 0 indicates to switch on the CS.

delayUs

  1. uint16_t SpiMsg::delayUs

Description:

Delay (in microseconds) before starting the next transfer. The value 0 indicates there is no delay between transfers.

len

  1. uint32_t SpiMsg::len

Description:

Length of the read and write buffers. The read buffer and the write buffer have the same length.

rbuf

  1. uint8_t* SpiMsg::rbuf

Description:

Address of the read buffer

speed

  1. uint32_t SpiMsg::speed

Description:

Current message transfer speed

wbuf

  1. uint8_t* SpiMsg::wbuf

Description:

Address of the write buffer