modm API documentation
Inheritance diagram for modm::Spi:
modm::SpiMaster modm::platform::BitBangSpiMaster< Sck, Mosi, Miso > modm::platform::SpiMaster1 modm::platform::SpiMaster2 modm::platform::SpiMaster3 modm::platform::SpiMaster4 modm::platform::SpiMaster5 modm::platform::SpiMaster6 modm::platform::UartSpiMaster1 modm::platform::UartSpiMaster2 modm::platform::UartSpiMaster3 modm::platform::UartSpiMaster6 modm_test::platform::SpiMaster

Public Typedefs

using ConfigurationHandler = void (*)()
 The signature of the configuration function.
 

Public Types

enum  DataMode : uint8_t { DataMode::Mode0 = 0b00, DataMode::Mode1 = 0b01, DataMode::Mode2 = 0b10, DataMode::Mode3 = 0b11 }
 Spi Data Mode, Mode0 is the most common mode. More...
 
enum  DataOrder : uint8_t { MsbFirst = 0b0, LsbFirst = 0b1 }
 Spi Data Order, MsbFirst is the most common mode.
 

Member Enumeration Documentation

enum modm::Spi::DataMode : uint8_t
strong

Spi Data Mode, Mode0 is the most common mode.

Enum ValuesDocumentation
Mode0 

clock normal, sample on rising edge

Mode1 

clock normal, sample on falling edge

Mode2 

clock inverted, sample on falling edge

Mode3 

clock inverted, sample on rising edge


The documentation for this struct was generated from the following file: