17 SEMF_INFO(
"data %p, dataSize is %u", data, dataSize);
43 SEMF_INFO(
"buffer %p, bufferSize is %u", buffer, bufferSize);
50 if (buffer ==
nullptr)
@ Next
no start AND no stop condition
@ First
start condition, but no stop condition
Class for representing errors. Every error should have a unique source code. As a user feel encourage...
void setAddress(uint8_t address) override
void write(const uint8_t data[], size_t dataSize) override
For writing data, dataWritten signal will be emitted after successful write.
void setFrame(CommunicationHardware::Frame frame) override
Sets the selected usage of start and stop condition.
bool isBusyReading() const override
Communication hardware is busy reading at the moment.
CommunicationHardware::Frame frame() const
Returns the actual frame mode setting.
uint8_t address() const override
Returns the I2C slave device address.
void onError(Error thrown)
Is called if an error occurred by hardware read or write access. Will emit error signal.
virtual void writeHardware(const uint8_t data[], size_t dataSize)=0
Hardware will write data. After finished write operation, onDataWritten() function will be called.
bool isBusyWriting() const override
Communication hardware is busy writing at the moment.
virtual void readHardware(uint8_t buffer[], size_t bufferSize)=0
Hardware will read data. After finished read operation, onDataAvailable() function will be called.
void setBusy(bool isBusy)
Sets the busy flag.
void read(uint8_t buffer[], size_t bufferSize) override
For reading data, dataAvailable signal will be emitted after successful read.