37 void send(
int reg,
int value)
override;
40 int read(
int reg)
override;
Class for work with i2c.
Definition: i2cDeviceInterface.h:26
Communicates with MSP processor over I2C bus.
Definition: mspI2cInterface.h:22
Abstract i2c device.
Definition: i2cDevice.h:24
Status status() const override
Returns current status of the device.
Definition: i2cDevice.cpp:26
Helper class to track device state (off, starting, ready, stopping, fail).
Definition: deviceState.h:26
I2cDevice(const trikKernel::Configurer &configurer, trikHal::MspI2cInterface &i2c, int bus, int address)
Constructor.
Definition: i2cDevice.cpp:19
void send(int reg, int value) override
Sends data to current device, if it is connected.
Definition: i2cDevice.cpp:31
Status
Device status.
Definition: deviceInterface.h:33
Definition: trikCommunicator.h:27
int read(int reg) override
Reads data by given I2C command number and returns the result.
Definition: i2cDevice.cpp:43
Implementation of i2c communicator.
Definition: i2cCommunicator.h:33