Controller.h
Go to the documentation of this file.
virtual void execute(Request &request)
Definition: Common.h:24
void configChanged(Device &dev)
Devices call this method to tell the Controller about configuration changes. Internally, we just set a flag and update the register values when required.
void begin()
virtual bool startDevice(Device &dev, PinSet pinSet, uint8_t chipSelect)
Assign a device to a CS# using a specific pin set. Only one device may be assigned to any CS...
bool dirty
Set when values require updating.
Definition: Controller.h:94
uint32_t getSpeed(Device &dev) const
void onSelectDevice(SelectDevice callback)
Set interrupt callback to use for manual CS control (PinSet::manual) or if CS pin is multiplexed...
Definition: Controller.h:136
uint32_t setSpeed(Device &dev, uint32_t frequency)
Set the clock for a given frequency.
Disabled.
Definition: Controller.h:93
void(*)(uint8_t chipSelect, bool active) SelectDevice
Interrupt callback for custom Controllers.
Definition: Controller.h:115
Manages a specific SPI device instance attached to a controller.
Definition: Libraries/HardwareSPI/src/include/HSPI/Device.h:35
struct HSPI::Controller::Config::@42 reg