SPI Namespace Reference

yasimavr: SPI Namespace Reference
yasimavr
Loading...
Searching...
No Matches

Generic Serial Peripheral Interface definitions. More...

Classes

class  EndPoint
 An endpoint connected to a SPI bus. Represents a device connected to a SPI bus model and acting as a host or client. This is primarily intended to help simulate peripherals connected to the MCU model. Note that this class only implements the logic require to shift bytes across the SPI bus in all modes or bit orders. More...
 

Enumerations

enum  SerialMode { Mode0 = 0 , Mode1 , Mode2 , Mode3 }
 
enum  BitOrder { MSBFirst , LSBFirst }
 
enum  Line { Clock = 0 , MISO , MOSI , Select }
 

Detailed Description

Generic Serial Peripheral Interface definitions.

Definition of enumerations, configuration structures and signal Ids used for Serial Peripheral Interface models, common to all architectures.

See also
https://en.wikipedia.org/wiki/Serial_Peripheral_Interface

Enumeration Type Documentation

◆ BitOrder

Enum definition for the shifting bit orders

Enumerator
MSBFirst 
LSBFirst 

◆ Line

enum SPI::Line

Enum definition for the wires used for a SPI bus

Enumerator
Clock 
MISO 
MOSI 
Select 

◆ SerialMode

Enum definition for the shifting modes

Enumerator
Mode0 
Mode1 
Mode2 
Mode3