Class SPIClient
Defined in File sim_spi.h
Inheritance Relationships
Derived Type
public SPI(Class SPI)
Class Documentation
-
class SPIClient
Abstract interface for a SPI Client.
Subclassed by SPI
Public Functions
-
SPIClient()
-
virtual ~SPIClient()
-
virtual bool selected() const = 0
Used by the SPI host to interrogate the selection state of the client.
-
virtual uint8_t start_transfer(uint8_t mosi_frame) = 0
Called by the SPI host to start a transfer of one frame.
- Parameters:
mosi_frame – MOSI frame emitted by the host
- Returns:
the MISO frame simultaneously emitted by the client.
-
virtual void end_transfer(bool ok) = 0
Called by the host at the end of a transfer.
- Parameters:
ok – indicates the success of the transfer, or false if it was aborted.
-
SPIClient()