Module atsam4_hal::spi
source · [−]Expand description
SPI Implementation
Modules
Serial Peripheral Interface
Structs
SPI Chip Select Settings
8-bit fixed mode 8-bit data storage Any SPI settings must be done using the registers See section: 33.7.3.6 https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-11100-32-bit%20Cortex-M4-Microcontroller-SAM4S_Datasheet.pdf
SPI Master
u8 that can convert back and forth with u16 Needed for some of the register bit fields
u16 that can convert back and forth with u8 Needed for some of the register bit fields
Variable mode 8-16 bit transfer sizes Can do per data word setting adjustments using the DMA stream 32-bits store:
Enums
Transfer Width NOTE: Transfer Widths larger than 8-bits require using 16-bit with send/read
Chip Select Active Settings This enum controls: CNSAAT -> Chip Select Not Active After Transfer CSAAT -> Chip Select Active After Transfer
SPI Error
Peripheral Select Mode
Traits
Type Definitions
Alias for hertz rate (u32
backing storage)