27 #ifndef SRC_TLX493D_AW2B6_H_ 28 #define SRC_TLX493D_AW2B6_H_ 32 #include "../TLx493D.h" int32_t TLE493D_AW2B6_set_operation_mode(TLE493D_data_t *data, TLV493D_op_mode_t mode)
Set the operation mode of the sensor.
Definition: TLE_AW2B6.c:261
TLE493D_lp_update_freq_t
Low power mode update frequencies.
Definition: TLE_AW2B6_defines.h:210
TLV493D_sensor_type_t TLE493D_get_hw_version(TLE493D_data_t *data)
Return hardware version of the TLE493D.
Definition: TLE_AW2B6.c:721
TLE493D_address_t
Sensor bus addresses.
Definition: TLE_AW2B6_defines.h:240
int32_t TLV493D_A1B6_set_lowpower_update_frequency(TLE493D_data_t *data, TLE493D_lp_update_freq_t freq)
Set the update frequency while in LOW POWER Mode.
Definition: TLE_AW2B6.c:643
int32_t TLE493D_AW2B6_set_data(TLE493D_data_t *src)
Copy the data from src to the library and the sensor.
Definition: TLE_AW2B6.c:754
int32_t TLE493D_AW2B6_init(TLE493D_data_t *data, uint8_t i2c_addr)
Initialize the sensor having the specified I2C address by reading the internal registers and disablin...
TLE493D_regmap_t regmap
Last known state of the internal sensor registers.
Definition: TLE_AW2B6.h:41
Data structure containing information about the internal state of a sensor. Also used to identify a s...
Definition: TLE_AW2B6.h:37
void TLE493D_AW2B6_get_data(TLE493D_data_t *dest)
Copy the data stored in the library to the dest structure.
Definition: TLE_AW2B6.c:743
TLV493D_sensor_type_t
Type of sensor on board.
Definition: TLx493D.h:69
TLE493D_address_t IIC_addr
I2C address to be written on the bus.
Definition: TLE_AW2B6.h:39
TLE493D_magnetic_comp_t
Sensitivity for magnetic compensation.
Definition: TLE_AW2B6_defines.h:146
TLE493D_Config_trigger_mode_t
Register-configurable trigger modes.
Definition: TLE_AW2B6_defines.h:129
int32_t TLE493D_AW2B6_WU_disable(TLE493D_data_t *data)
Disable the Wake Up mode.
Definition: TLE_AW2B6.c:405
int32_t TLE493D_AW2B6_WU_enable(TLE493D_data_t *data, uint16_t wu_xl, uint16_t wu_xh, uint16_t wu_yl, uint16_t wu_yh, uint16_t wu_zl, uint16_t wu_zh)
Enable the Wake Up mode (available only on the -W2B6 hardware version) with the provided upper and lo...
Definition: TLE_AW2B6.c:346
uint8_t TLE493D_AW2B6_get_CP_bit(TLE493D_data_t *data)
Definition: TLE_AW2B6.c:55
int32_t TLE493D_AW2B6_set_high_sensitivity(TLE493D_data_t *data, bool on)
Double the measurement sensitivity(when on=true). This will decrease the ADC integration speed...
Definition: TLE_AW2B6.c:519
int32_t TLE493D_AW2B6_set_IIC_address(TLE493D_data_t *data, TLE493D_address_t i2c_addr)
Set a new I2C address for the sensor.
Definition: TLE_AW2B6.c:441
int32_t TLV493D_A1B6_set_trigger_mode(TLE493D_data_t *data, TLE493D_Config_trigger_mode_t mode)
Set trigger mode. Note that the TLE493D_AW2B6_Config_TRIG_R0 mode is momentarily not safe to use in t...
Definition: TLE_AW2B6.c:677
int32_t TLE493D_AW2B6_set_angle_mode(TLE493D_data_t *data, bool on)
Enable/Disable angle mode. In order to enable angle mode, the temperature measurement must be disable...
Definition: TLE_AW2B6.c:561
int32_t TLE493D_AW2B6_read_frame(TLE493D_data_t *data, TLx493D_data_frame_t *frame)
Read a data frame from the sensor. An ADC sampling must be completed before calling this method...
Definition: TLE_AW2B6.c:286
Generic data frame, common to all supported hardware version.
Definition: TLx493D.h:40
uint8_t TLE493D_AW2B6_get_FP_bit(TLE493D_data_t *data)
Definition: TLE_AW2B6.c:41
Define the registers addresses and the positions and masks of the variables from the registers...
int32_t TLE493D_AW2B6_magnetic_tmp_comp(TLE493D_data_t *data, TLE493D_magnetic_comp_t sens)
Set the magnetic temperature compensation mode.
Definition: TLE_AW2B6.c:479
TLV493D_op_mode_t
Operating Mode.
Definition: TLx493D.h:78
Internal registers of the TLE493D sensor family.
Definition: TLE_AW2B6_defines.h:248
int32_t TLE493D_AW2B6_set_temp_measure(TLE493D_data_t *data, bool on)
Enable/Disable temperature measurement.
Definition: TLE_AW2B6.c:612