TLx493D 3D Hall Sensor Generic Library  1.3
Generic library for the TLx493D 3D Hall sensor family
interface.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 
37 #ifndef SRC_TLX493D_INTERFACE_H_
38 #define SRC_TLX493D_INTERFACE_H_
39 
41 #include "src/xmc1100/gpio/gpio.h"
42 #include "src/xmc1100/uart/uart.h"
43 
45 
46 
65 #define _I2C_read I2C_INT_read_block
66 
67 
83 #define _I2C_write I2C_INT_write_block
84 
95 #define _I2C_recover() I2C_INT_write_recover()
96 
97 
108 #define _I2C_reset() I2C_INT_write_reset()
109 
110 
128 #define _SET_ADDR_AND_WAIT(high) GPIO_set_addr_wait(high)
129 
130 
141 #define _POWER_ENABLE() GPIO_sensor_supply(true)
142 
143 
154 #define _POWER_DISABLE() GPIO_sensor_supply(false)
155 
168 #define _LOG_STR UART_write
169 
170 
173 //#define _DATA_READY
174 
175 #endif /* SRC_TLX493D_INTERFACE_H_ */
Interrupt-based I2C Driver for XMC1100 USIC Module.
UART Driver for XMC1100 USIC Module.
GPIO based functions for controlling the power supply and ADDR pin state of the sensor.
ERU Module used for Interrupt Handling.