Public Member Functions |
Public Attributes |
Protected Member Functions |
Protected Attributes |
List of all members
HSPI::Device Class Referenceabstract
Manages a specific SPI device instance attached to a controller. More...
#include <Device.h>
Inheritance diagram for HSPI::Device:
Collaboration diagram for HSPI::Device:
Public Member Functions | |
Device (Controller &controller) | |
virtual | ~Device () |
bool | begin (PinSet pinSet, uint8_t chipSelect) |
void | end () |
bool | isReady () const |
Determine if the device is initialised. More... | |
PinSet | getPinSet () const |
uint8_t | getChipSelect () const |
void | setSpeed (uint32_t frequency) |
Set maximum operating speed for device. More... | |
uint32_t | getSpeed () |
void | setBitOrder (BitOrder bitOrder) |
BitOrder | getBitOrder () |
void | setClockMode (ClockMode mode) |
ClockMode | getClockMode () const |
virtual IoModes | getSupportedIoModes () const =0 |
bool | isSupported (IoMode mode) const |
virtual bool | setIoMode (IoMode mode) |
IoMode | getIoMode () const |
size_t | getBitsPerClock () const |
void | execute (Request &request) |
Public Attributes | |
Controller & | controller |
Protected Member Functions | |
void | transferComplete (Request &request) |
Protected Attributes | |
friend | Controller |
Detailed Description
Manages a specific SPI device instance attached to a controller.
Constructor & Destructor Documentation
◆ Device()
|
inline |
◆ ~Device()
|
inlinevirtual |
Member Function Documentation
◆ begin()
◆ end()
|
inline |
◆ execute()
|
inline |
◆ getBitOrder()
|
inline |
◆ getBitsPerClock()
|
inline |
◆ getChipSelect()
|
inline |
◆ getClockMode()
|
inline |
◆ getIoMode()
|
inline |
◆ getPinSet()
|
inline |
◆ getSpeed()
|
inline |
◆ getSupportedIoModes()
|
pure virtual |
Implemented in HSPI::RAM::IS62_65, and HSPI::RAM::PSRAM64.
◆ isReady()
|
inline |
Determine if the device is initialised.
- Return values
-
bool
◆ isSupported()
◆ setBitOrder()
|
inline |
◆ setClockMode()
|
inline |
◆ setIoMode()
Reimplemented in HSPI::RAM::PSRAM64, and HSPI::RAM::IS62_65.
◆ setSpeed()
|
inline |
Set maximum operating speed for device.
- Parameters
-
speed in Hz
◆ transferComplete()
|
inlineprotected |
Member Data Documentation
◆ controller
Controller& HSPI::Device::controller |
◆ Controller
|
protected |
The documentation for this class was generated from the following file: