SRK Version of mDot LoRa_Sensormode_SRK
Dependencies: libmDot mbed-rtos mbed
Fork of mDot_LoRa_Sensornode by
I2C_RT Class Reference
Controls the I2C device of the mDot. More...
#include <I2C_RT.h>
Public Member Functions | |
void | read_RT (uint8_t address, uint16_t reg, bool twoBytes, uint8_t *readData, uint8_t dataLength) |
Reads data from a specific register. | |
void | write_RT (uint8_t address, uint16_t reg, bool twoBytes, uint8_t *dataToWrite, uint8_t dataLenght) |
Write data to a specific register. |
Detailed Description
Controls the I2C device of the mDot.
mbed::I2C functionality is wrapped inside it's methods. It's possible to wrap other I2C functionality from different Libraries or write an own implementation.
Definition at line 21 of file I2C_RT.h.
Member Function Documentation
void read_RT | ( | uint8_t | address, |
uint16_t | reg, | ||
bool | twoBytes, | ||
uint8_t * | readData, | ||
uint8_t | dataLength | ||
) |
Reads data from a specific register.
- Parameters:
-
address address of the I2C Slave device reg register from which the data has to be read twoBytes defines if two Bytes at once has to be read readData storage for the read Data dataLength length of the storage in bytes
Definition at line 19 of file I2C_RT.cpp.
void write_RT | ( | uint8_t | address, |
uint16_t | reg, | ||
bool | twoBytes, | ||
uint8_t * | dataToWrite, | ||
uint8_t | dataLenght | ||
) |
Write data to a specific register.
- Parameters:
-
address address of the I2C Slave device reg register where the data has to be write twoBytes defines if two bytes at once has to be write dataToWrite the actual data that has to be written dataLenght the length of the data in bytes
Definition at line 40 of file I2C_RT.cpp.
Generated on Wed Jul 13 2022 09:23:48 by 1.7.2