![]() |
TLx493D 3D Hall Sensor Generic Library
1.3
Generic library for the TLx493D 3D Hall sensor family
|
Interrupt-based I2C Driver for XMC1100 USIC Module. More...
#include <stdint.h>
#include <stdbool.h>
Go to the source code of this file.
Enumerations | |
enum | I2C_INT_state_t { I2C_INT_SUCCESS, I2C_INT_IN_PROGRESS, I2C_INT_ERR_PROTOCOL, I2C_INT_NACK } |
Status values returned by the I2C read/write commands. | |
Functions | |
void | I2C_INT_init (void) |
Initialize the I2C interrupt-based peripheral. | |
bool | I2C_INT_write (uint8_t addr, const uint8_t *data, uint8_t count, I2C_INT_state_t *handle) |
start asynchronous I2C write | |
bool | I2C_INT_read (uint8_t addr, uint8_t *data, uint8_t count, I2C_INT_state_t *handle) |
start asynchronous I2C read | |
void | I2C_INT_write_reset (void) |
Write Reset address (for TLx493D sensors) on I2C bus (blocking) | |
void | I2C_INT_write_recover (void) |
Write Recover address (for TLx493D sensors) on I2C bus (blocking) | |
Interrupt-based I2C Driver for XMC1100 USIC Module.