Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
ISPIController Class Referenceabstract

Interface for the SPI controller. More...

#include <ISPIController.hpp>

Public Member Functions

virtual ~ISPIController ()=default
 
virtual bool openDevice (const std::string &device)=0
 
virtual void configure (uint8_t mode, uint8_t bits, uint32_t speed)=0
 
virtual void writeByte (uint8_t address, uint8_t data)=0
 
virtual uint8_t readByte (uint8_t address)=0
 
virtual void spiTransfer (const uint8_t *tx, uint8_t *rx, size_t length)=0
 
virtual void closeDevice ()=0
 

Detailed Description

Interface for the SPI controller.

Definition at line 27 of file ISPIController.hpp.

Constructor & Destructor Documentation

◆ ~ISPIController()

virtual ISPIController::~ISPIController ( )
virtualdefault

Member Function Documentation

◆ closeDevice()

virtual void ISPIController::closeDevice ( )
pure virtual

Implemented in SPIController.

Here is the caller graph for this function:

◆ configure()

virtual void ISPIController::configure ( uint8_t mode,
uint8_t bits,
uint32_t speed )
pure virtual

Implemented in SPIController.

Here is the caller graph for this function:

◆ openDevice()

virtual bool ISPIController::openDevice ( const std::string & device)
pure virtual

Implemented in SPIController.

Here is the caller graph for this function:

◆ readByte()

virtual uint8_t ISPIController::readByte ( uint8_t address)
pure virtual

Implemented in SPIController.

Here is the caller graph for this function:

◆ spiTransfer()

virtual void ISPIController::spiTransfer ( const uint8_t * tx,
uint8_t * rx,
size_t length )
pure virtual

Implemented in SPIController.

Here is the caller graph for this function:

◆ writeByte()

virtual void ISPIController::writeByte ( uint8_t address,
uint8_t data )
pure virtual

Implemented in SPIController.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: