Interface for I2C specific functionalities, which are not solved in a generic way in CommunicationHardware
.
More...
#include <i2c.h>
Interface for I2C specific functionalities, which are not solved in a generic way in CommunicationHardware
.
- See also
CommunicationHardware
-
I2cMasterHardware
Definition at line 24 of file i2c.h.
◆ ~I2c()
virtual semf::I2c::~I2c |
( |
| ) |
|
|
virtualdefault |
◆ address()
virtual uint8_t semf::I2c::address |
( |
| ) |
const |
|
pure virtual |
◆ setAddress()
virtual void semf::I2c::setAddress |
( |
uint8_t |
address | ) |
|
|
pure virtual |
- Note
- Sets the address of the i2c. When this function is called by a master it specifies the address of the slave for further I/O operations. When this function is called by a slave it sets the main address of its own.
- Parameters
-
address | Device address (0x00 - 0x80) |
Implemented in semf::I2cMasterHardware, and semf::I2cSlaveHardware.
◆ setFrequency()
virtual void semf::I2c::setFrequency |
( |
uint32_t |
hz | ) |
|
|
pure virtual |