![]() |
TLx493D 3D Hall Sensor Generic Library
1.3
Generic library for the TLx493D 3D Hall sensor family
|
#include "src/TLx493D/interface.h"#include "TLE_AW2B6_defines.h"#include "TLE_AW2B6_driver.h"#include "../../TLx493D.h"#include "src/misc/misc.h"Macros | |
| #define | NULL ((void*)0) |
Functions | |
| int32_t | TLE493D_AW2B6_read_regs (uint8_t i2c_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 i2c_addr, uint8_t reg_addr_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... | |
| 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
| 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. |
| 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.
| 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. |
| 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.
| 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 |
1.8.14