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

I2C Peripheral Driver. More...

#include <i2c.h>

Inherits Sink< Request >.

Collaboration diagram for I2C::HW:
[legend]

Classes

struct  Conf
 bus configuration More...
 

Public Member Functions

 HW (const Conf &conf)
 init peripheral with given Conf
 
bool full () override
 no need to call this before pushing SLAVE requests
 
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

I2C Peripheral Driver.


Class Documentation

◆ I2C::HW::Conf

struct I2C::HW::Conf

bus configuration

Collaboration diagram for I2C::HW::Conf:
[legend]
Class Members
I2C_TypeDef * i2c I2C peripheral.
AFIO sda
AFIO scl initialized (Open-Drain) pins
uint32_t baud baud-rate
uint32_t address unshifted 7-bit address to respond to as slave

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