TLx493D 3D Hall Sensor Generic Library  1.3
Generic library for the TLx493D 3D Hall sensor family
Functions
TLx493D.c File Reference
#include "TLx493D.h"
#include <stdbool.h>
#include "src/xmc1100/interrupt/interrupts.h"
#include "src/misc/misc.h"
#include "src/xmc1100/uart/uart.h"
#include "TLV_A1B6/TLV_A1B6.h"
#include "TLE_AW2B6/TLE_AW2B6.h"
#include "TLE_AW2B6/driver/TLE_AW2B6_defines.h"
#include "src/debug/debug.h"
#include "src/xmc1100/time/time.h"

Functions

int32_t TLx493D_init (void)
 Detect and initialize the connected sensor. More...
 
TLV493D_sensor_type_t TLx493D_get_sensor_type (void)
 Return the type of sensor present on the board.
 
int32_t TLx493D_set_operation_mode (TLV493D_op_mode_t mode)
 Set the operation mode of the sensors, if supported. More...
 
TLV493D_op_mode_t TLx493D_get_operation_mode ()
 Get the operation mode of the sensors.
 
int32_t TLx493D_read_frame (TLx493D_data_frame_t *frame)
 Read a data frame from the sensor. More...
 
uint8_t MISC_get_parity (uint8_t data)
 Compute the EVEN parity of a byte of data. More...
 

Function Documentation

◆ MISC_get_parity()

uint8_t MISC_get_parity ( uint8_t  data)

Compute the EVEN parity of a byte of data.

Returns
Even parity of the data, either the value 0 or 1.

◆ TLx493D_init()

int32_t TLx493D_init ( void  )

Detect and initialize the connected sensor.

Automatically detect the sensor hardware version and call the appropriate initialization sequences. Must be called prior to any other call to a TLx493D_* method.

Returns
Error code.

◆ TLx493D_read_frame()

int32_t TLx493D_read_frame ( TLx493D_data_frame_t frame)

Read a data frame from the sensor.

Returns
Error code.

◆ TLx493D_set_operation_mode()

int32_t TLx493D_set_operation_mode ( TLV493D_op_mode_t  mode)

Set the operation mode of the sensors, if supported.

Returns
Error code.