TLx493D 3D Hall Sensor Generic Library  0.2
Generic library for the TLx493D 3D Hall sensor family
interpreter.h
Go to the documentation of this file.
1 /*
2  * interpreter.h
3  *
4  * Created on: Sep 3, 2018
5  * Author: nicolaem
6  */
7 
11 #ifndef SRC_INTERPRETER_INTERPRETER_H_
12 #define SRC_INTERPRETER_INTERPRETER_H_
13 
14 #include <stdint.h>
15 
17 typedef enum
18 {
19  ITP_CMD_Connect_LEGACY = (uint8_t)(64),
20  ITP_CMD_GET_FW_VERSION = (uint8_t)(82),
21  ITP_CMD_START_PERIODIC_READOUT = (uint8_t)(203),
22  ITP_CMD_STOP_PERIODIC_READOUT = (uint8_t)(204),
23  ITP_CMD_GET_SENSOR_TYPE = (uint8_t)(210),
24  ITP_CMD_SET_MCM_MODE = (uint8_t)(220),
25  ITP_CMD_SET_LOW_POWER_MODE = (uint8_t)(221),
26  ITP_CMD_SET_ULTRA_LOW_POWER_MODE = (uint8_t)(222),
27  ITP_CMD_SET_FAST_MODE = (uint8_t)(223),
28  ITP_CMD_WU_DISABLE = (uint8_t)(230),
29  ITP_CMD_WU_ENABLE = (uint8_t)(231),
30  ITP_CMD_X2_DISABLE = (uint8_t)(232),
31  ITP_CMD_X2_ENABLE = (uint8_t)(233),
32  ITP_CMD_TEST_AW2B6_IIC_ADDR = (uint8_t)(100),
33  ITP_CMD_TEST_AW2B6_TL_mag = (uint8_t)(102),
34  ITP_CMD_TEST_AW2B6_X2 = (uint8_t)(103),
35  ITP_CMD_TEST_AW2B6_AM = (uint8_t)(104),
36  ITP_CMD_TEST_AW2B6_DT = (uint8_t)(105),
37  ITP_CMD_TEST_AW2B6_PRD = (uint8_t)(106),
38  ITP_CMD_TEST_AW2B6_TRIG = (uint8_t)(107),
39 } ITP_cmd_t;
40 
41 
43 enum Status
44 {
45  ITP_STATUS_OK = (uint8_t)1,
46  ITP_STATUS_NOTOK = (uint8_t)0,
47 };
48 
50 void ITP_PC_commands_handle(void);
51 
52 #endif /* SRC_INTERPRETER_INTERPRETER_H_ */
ITP_cmd_t
Supported UART commands.
Definition: interpreter.h:17
Status
Interpreter command status.
Definition: interpreter.h:43
void ITP_PC_commands_handle(void)
Check for pending commands from UART and handle them.
Definition: interpreter.c:351