OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
Loading...
Searching...
No Matches
i2c_error Class Reference

Exception for I2C bus initialization failure. More...

#include <HAL.hpp>

Public Member Functions

 i2c_error (int sda, int scl, int bus)
 Unable to initialize the I2C bus exception.
 
 i2c_error (uint8_t address)
 Invalid I2C address exception.
 

Detailed Description

Exception for I2C bus initialization failure.

Definition at line 78 of file HAL.hpp.

Constructor & Destructor Documentation

◆ i2c_error() [1/2]

i2c_error::i2c_error ( int sda,
int scl,
int bus )
inline

Unable to initialize the I2C bus exception.

Parameters
sdaSDA pin number
sclSCL pin number
busI2C bus

Definition at line 88 of file HAL.hpp.

◆ i2c_error() [2/2]

i2c_error::i2c_error ( uint8_t address)
inline

Invalid I2C address exception.

Parameters
addressI2C full address

Definition at line 103 of file HAL.hpp.

◆ ~i2c_error()

virtual i2c_error::~i2c_error ( )
inlinevirtualnoexcept

Definition at line 109 of file HAL.hpp.


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