TLx493D 3D Hall Sensor Generic Library  1.3
Generic library for the TLx493D 3D Hall sensor family
TLE_AW2B6_driver.h
Go to the documentation of this file.
1 /*
2 *****************************************************************************
3 * Copyright (C) 2019 Infineon Technologies AG. All rights reserved.
4 *
5 * Infineon Technologies AG (INFINEON) is supplying this file for use
6 * exclusively with Infineon's products. This file can be freely
7 * distributed within development tools and software supporting such microcontroller
8 * products.
9 *
10 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
11 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
13 * INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR DIRECT, INDIRECT, INCIDENTAL,
14 * ASPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
15 *
16 ******************************************************************************
17 */
18 
26 #ifndef SRC_TLX493D_TLE_AW2B6_DRIVER_TLE_AW2B6_DRIVER_H_
27 #define SRC_TLX493D_TLE_AW2B6_DRIVER_TLE_AW2B6_DRIVER_H_
28 
29 #include "TLE_AW2B6_defines.h"
30 
31 
32 
33 
43 int32_t TLE493D_AW2B6_read_regs(uint8_t addr, TLE493D_regmap_t *regmap, uint8_t upto);
44 
45 
53 int32_t TLE493D_AW2B6_write_reg(uint8_t i2c_addr, uint8_t reg_addr, uint8_t data);
54 
55 
64 int32_t TLE493D_AW2B6_write_reg_multi(uint8_t addr, uint8_t addr_reg_start, uint8_t *data, uint8_t count);
65 
66 #endif /* SRC_TLX493D_TLE_AW2B6_DRIVER_TLE_AW2B6_DRIVER_H_ */
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 ...
Definition: TLE_AW2B6_driver.c:33
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 regi...
Definition: TLE_AW2B6_driver.c:63
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.
Definition: TLE_AW2B6_driver.c:50
Define the registers addresses and the positions and masks of the variables from the registers...
Internal registers of the TLE493D sensor family.
Definition: TLE_AW2B6_defines.h:246