distortos  v0.3.0
Advanced real-time operating system for deeply embedded targets
Device drivers

Device drivers provided by distortos. More...

Classes

class  distortos::devices::Rs485
 
class  distortos::devices::SerialPort
 
class  distortos::devices::SpiDevice
 
class  distortos::devices::SpiMaster
 
class  distortos::devices::SpiMasterBase
 
class  distortos::devices::SpiMasterErrorSet
 
class  distortos::devices::SpiMasterLowLevel
 
class  distortos::devices::SpiMasterOperation
 
class  distortos::devices::UartBase
 
class  distortos::devices::UartLowLevel
 
class  distortos::devices::InputPin
 
class  distortos::devices::OutputPin
 
class  distortos::devices::SpiEeprom
 
class  distortos::chip::ChipInputPin
 
class  distortos::chip::ChipOutputPin
 

Typedefs

using distortos::devices::SpiMasterOperationRange = estd::ContiguousRange< SpiMasterOperation >
 

Enumerations

enum  distortos::devices::SpiMode : uint8_t {
  distortos::devices::SpiMode::_0 = (0 << 0) | (0 << 1), distortos::devices::SpiMode::_1 = (0 << 0) | (1 << 1), distortos::devices::SpiMode::_2 = (1 << 0) | (0 << 1), distortos::devices::SpiMode::_3 = (1 << 0) | (1 << 1),
  distortos::devices::SpiMode::cpol0cpha0 = _0, distortos::devices::SpiMode::cpol0cpha1 = _1, distortos::devices::SpiMode::cpol1cpha0 = _2, distortos::devices::SpiMode::cpol1cpha1 = _3
}
 
enum  distortos::devices::UartParity : uint8_t { distortos::devices::UartParity::none, distortos::devices::UartParity::even, distortos::devices::UartParity::odd }
 

Detailed Description

Device drivers provided by distortos.

Typedef Documentation

§ SpiMasterOperationRange

SpiMasterOperationRange is an alias for ContiguousRange of SpiMasterOperation elements

Enumeration Type Documentation

§ SpiMode

enum distortos::devices::SpiMode : uint8_t
strong

SPI mode

Enumerator
_0 

mode 0 - CPOL == 0, CPHA == 0

_1 

mode 1 - CPOL == 0, CPHA == 1

_2 

mode 2 - CPOL == 1, CPHA == 0

_3 

mode 3 - CPOL == 1, CPHA == 1

cpol0cpha0 

alias of mode 0 - CPOL == 0, CPHA == 0

cpol0cpha1 

alias of mode 1 - CPOL == 0, CPHA == 1

cpol1cpha0 

alias of mode 2 - CPOL == 1, CPHA == 0

cpol1cpha1 

alias of mode 3 - CPOL == 1, CPHA == 1

§ UartParity

enum distortos::devices::UartParity : uint8_t
strong

UART parity

Enumerator
none 

parity control is disabled

even 

even parity control is enabled

odd 

odd parity control is enabled