Tool Libs
UMIT-TIROL Institute of Automation and Control Engineering library collection
 
Loading...
Searching...
No Matches
SPI::Device Struct Referenceabstract

generic SPI device wrapper. More...

#include <spi.h>

Inherited by AS5145< chainlength >, MAX31855, and MAX31865.

Collaboration diagram for SPI::Device:
[legend]

Classes

struct  Conf
 SPI Configuration. More...
 

Public Member Functions

void select (bool sel)
 chipselect activation
 
virtual void callback (const Request req)=0
 is called as soon as requested data arrived over wire
 

Public Attributes

DIO cs
 GPIO chipselect line.
 
struct SPI::Device::Conf conf
 necessary SPI configuration
 

Detailed Description

generic SPI device wrapper.

Implement SPI devices with this as a base class to make use of the asynchronous SPI::HW bus.

Member Function Documentation

◆ select()

void SPI::Device::select ( bool  sel)
inline

chipselect activation

Parameters
seltrue/false

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