Go to the source code of this file.
|
int32_t | TLE493D_AW2B6_read_regs (uint8_t addr, TLE493D_regmap_t *regmap, uint8_t upto) |
| Read register values from the sensor, starting with the register at address 0 up to register upto More...
|
|
int32_t | TLE493D_AW2B6_write_reg (uint8_t i2c_addr, uint8_t reg_addr, uint8_t data) |
| Write the data value to the reg_addr register on the sensor with the I2C address i2c_addr. More...
|
|
int32_t | TLE493D_AW2B6_write_reg_multi (uint8_t addr, uint8_t addr_reg_start, uint8_t *data, uint8_t count) |
| Write count bytes from the data array to the sensor with the I2C address addr, starting with the register addr_reg_start. More...
|
|
- Warning
- IMPORTANT: The TLE493D driver assumes that the 1-Byte read mode is always activated before any read operation. The 2-Byte read mode is NOT supported!
◆ TLE493D_AW2B6_read_regs()
int32_t TLE493D_AW2B6_read_regs |
( |
uint8_t |
addr, |
|
|
TLE493D_regmap_t * |
regmap, |
|
|
uint8_t |
upto |
|
) |
| |
Read register values from the sensor, starting with the register at address 0 up to register upto
- Parameters
-
addr | the I2C address of the sensor; |
regmap | Register map structure used to store the read registers of the sensor. |
upto | The reading process will start with register 0 and will continue incrementally up to the register upto. |
◆ TLE493D_AW2B6_write_reg()
int32_t TLE493D_AW2B6_write_reg |
( |
uint8_t |
i2c_addr, |
|
|
uint8_t |
reg_addr, |
|
|
uint8_t |
data |
|
) |
| |
Write the data value to the reg_addr register on the sensor with the I2C address i2c_addr.
- Parameters
-
i2c_addr | I2C address of the sensor. |
reg_addr | Address of the register that is to be written. |
data | Data to be written to the register. |
◆ TLE493D_AW2B6_write_reg_multi()
int32_t TLE493D_AW2B6_write_reg_multi |
( |
uint8_t |
addr, |
|
|
uint8_t |
addr_reg_start, |
|
|
uint8_t * |
data, |
|
|
uint8_t |
count |
|
) |
| |
Write count bytes from the data array to the sensor with the I2C address addr, starting with the register addr_reg_start.
- Parameters
-
addr | I2C sensor address |
addr_reg_start | Address of the first register to be written |
data | Data to be written to the registers |
count | Number of bytes to be written |