HSPI Namespace Reference
Namespaces | |
| RAM | |
Classes | |
| class | Controller |
| Manages access to SPI hardware. More... | |
| struct | Data |
| Specifies a block incoming or outgoing data. More... | |
| class | Device |
| Manages a specific SPI device instance attached to a controller. More... | |
| struct | IoModeInfo |
| class | MemoryDevice |
| Base class for read/write addressable devices. More... | |
| struct | Request |
| Defines an SPI Request Packet. More... | |
| class | StreamAdapter |
| Helper class for streaming data to/from SPI devices. More... | |
Typedefs | |
| using | IoModes = BitSet< uint8_t, IoMode > |
| using | ByteOrder = uint8_t |
| using | BitOrder = uint8_t |
| typedef void(* | Callback) (Request &request) |
| SPI completion callback routine. More... | |
Enumerations | |
| enum | ClockMode : uint8_t { ClockMode::mode0 = 0x00, ClockMode::mode1 = 0x01, ClockMode::mode2 = 0x10, ClockMode::mode3 = 0x11 } |
| SPI clock polarity (CPOL) and phase (CPHA) More... | |
| enum | IoMode : uint8_t { IoMode::SPI, IoMode::SPIHD, IoMode::DUAL, IoMode::DIO, IoMode::SDI, IoMode::QUAD, IoMode::QIO, IoMode::SQI } |
| Mode of data transfer. More... | |
| enum | PinSet { PinSet::none, PinSet::normal, PinSet::manual, PinSet::overlap } |
| How SPI hardware pins are connected. More... | |
Functions | |
| constexpr IoModes | operator| (IoMode a, IoMode b) |
| const IoModeInfo | getIoModeInfo (IoMode mode) |
| String | toString (IoMode mode) |
| uint16_t | bswap16 (uint16_t value) |
| uint32_t | bswap24 (uint32_t value) |
| uint32_t | bswap32 (uint32_t value) |
Typedef Documentation
◆ BitOrder
| using HSPI::BitOrder = typedef uint8_t |
◆ ByteOrder
| using HSPI::ByteOrder = typedef uint8_t |
◆ IoModes
| using HSPI::IoModes = typedef BitSet<uint8_t, IoMode> |
Enumeration Type Documentation
◆ ClockMode
|
strong |
◆ IoMode
|
strong |
Mode of data transfer.
| Enumerator | |
|---|---|
| SPI | One bit per clock, MISO stage concurrent with MISO (full-duplex) |
| SPIHD | One bit per clock, MISO stage follows MOSI (half-duplex) |
| DUAL | Two bits per clock for Data, 1-bit for Command and Address. |
| DIO | Two bits per clock for Address and Data, 1-bit for Command. |
| SDI | Two bits per clock for Command, Address and Data. |
| QUAD | Four bits per clock for Data, 1-bit for Command and Address. |
| QIO | Four bits per clock for Address and Data, 1-bit for Command. |
| SQI | Four bits per clock for Command, Address and Data. |
◆ PinSet
|
strong |
Function Documentation
◆ bswap16()
◆ bswap24()
|
inline |
◆ bswap32()
|
inline |
◆ getIoModeInfo()
| const IoModeInfo HSPI::getIoModeInfo | ( | IoMode | mode | ) |
1.8.13