TLx493D 3D Hall Sensor Generic Library  1.3
Generic library for the TLx493D 3D Hall sensor family
Functions
TLE_AW2B6_driver.h File Reference
#include "TLE_AW2B6_defines.h"

Go to the source code of this file.

Functions

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...
 

Detailed Description

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!

Function Documentation

◆ 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
addrthe I2C address of the sensor;
regmapRegister map structure used to store the read registers of the sensor.
uptoThe 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_addrI2C address of the sensor.
reg_addrAddress of the register that is to be written.
dataData 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
addrI2C sensor address
addr_reg_startAddress of the first register to be written
dataData to be written to the registers
countNumber of bytes to be written