Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
I2CController.hpp
Go to the documentation of this file.
1
15
16#ifndef I2CCONTROLLER_HPP
17#define I2CCONTROLLER_HPP
18
19#include "II2CController.hpp"
20#include <cstdint>
21
27{
28private:
31
32public:
33 I2CController(const char *i2c_device, int address);
34 ~I2CController() override;
35
36 void writeRegister(uint8_t reg, uint16_t value) override;
37 uint16_t readRegister(uint8_t reg) override;
38};
39
40#endif // I2CCONTROLLER_HPP
Definition of the II2CController interface.
uint16_t readRegister(uint8_t reg) override
Read a 16-bit value from a register.
void writeRegister(uint8_t reg, uint16_t value) override
Write a 16-bit value to a register.
~I2CController() override
Destroy the I2CController object.
I2CController(const char *i2c_device, int address)
Construct a new I2CController object.
Interface for controlling I2C devices.