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

SPI Peripheral Driver. More...

#include <spi.h>

Inherits Sink< Request >.

Collaboration diagram for SPI::HW:
[legend]

Classes

struct  Conf
 peripheral configuration More...
 

Public Member Functions

 HW (const Conf &conf)
 init peripheral with given Conf
 
bool full () override
 check if sink is full
 
virtual void push (const Request &t)
 copy semantics does not check for space. guard by using 'if (!full) { ... }'
 
virtual void push (Request &&)=0
 move semantics does not check for space. guard by using 'if (!full) { ... }'
 
void trypush (Request &&t)
 use this if you don't care if it's going to be successful. data gets discarded if sink is full.
 

Detailed Description

SPI Peripheral Driver.

Note
only Master communication supported for now

Class Documentation

◆ SPI::HW::Conf

struct SPI::HW::Conf

peripheral configuration

Collaboration diagram for SPI::HW::Conf:
[legend]
Class Members
SPI_TypeDef * spi SPI peripheral.
AFIO miso
AFIO mosi
AFIO sck initialized pins
uint32_t prescaler must be of value SPI_BaudRate_Prescaler from the STM HAL

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