![]() |
TLx493D 3D Hall Sensor Generic Library
0.2
Generic library for the TLx493D 3D Hall sensor family
|
Interpret and execute commands received from the UART interface. More...
#include <stdint.h>
Go to the source code of this file.
Enumerations | |
enum | ITP_cmd_t { ITP_CMD_Connect_LEGACY = (uint8_t)(64), ITP_CMD_GET_FW_VERSION = (uint8_t)(82), ITP_CMD_START_PERIODIC_READOUT = (uint8_t)(203), ITP_CMD_STOP_PERIODIC_READOUT = (uint8_t)(204), ITP_CMD_GET_SENSOR_TYPE = (uint8_t)(210), ITP_CMD_SET_MCM_MODE = (uint8_t)(220), ITP_CMD_SET_LOW_POWER_MODE = (uint8_t)(221), ITP_CMD_SET_ULTRA_LOW_POWER_MODE = (uint8_t)(222), ITP_CMD_SET_FAST_MODE = (uint8_t)(223), ITP_CMD_WU_DISABLE = (uint8_t)(230), ITP_CMD_WU_ENABLE = (uint8_t)(231), ITP_CMD_X2_DISABLE = (uint8_t)(232), ITP_CMD_X2_ENABLE = (uint8_t)(233), ITP_CMD_TEST_AW2B6_IIC_ADDR = (uint8_t)(100), ITP_CMD_TEST_AW2B6_TL_mag = (uint8_t)(102), ITP_CMD_TEST_AW2B6_X2 = (uint8_t)(103), ITP_CMD_TEST_AW2B6_AM = (uint8_t)(104), ITP_CMD_TEST_AW2B6_DT = (uint8_t)(105), ITP_CMD_TEST_AW2B6_PRD = (uint8_t)(106), ITP_CMD_TEST_AW2B6_TRIG = (uint8_t)(107) } |
Supported UART commands. | |
enum | Status { ITP_STATUS_OK = (uint8_t)1, ITP_STATUS_NOTOK = (uint8_t)0 } |
Interpreter command status. | |
Functions | |
void | ITP_PC_commands_handle (void) |
Check for pending commands from UART and handle them. | |
Interpret and execute commands received from the UART interface.