comparison Small_CPU/Inc/uartProtocol_GNSS.h @ 936:3029f0332f4f Evo_2_23

GNSS introduced power saving mode: In the previous implementation the modul always did a cold start. In the new one the power saving functions of the module are activated. The module will be switched to intervall mode while entering sleep. If the computer remains in sleep for a long time then the GNSS modul will be switchen of completly.
author Ideenmodellierer
date Sun, 08 Dec 2024 22:03:07 +0100
parents effadaa3a1f7
children f41974734268
comparison
equal deleted inserted replaced
935:f2494a708f52 936:3029f0332f4f
35 { 35 {
36 UART_GNSS_INIT = 0, /* Default Status for every sensor type */ 36 UART_GNSS_INIT = 0, /* Default Status for every sensor type */
37 UART_GNSS_IDLE, /* sensor detected and no communication pending */ 37 UART_GNSS_IDLE, /* sensor detected and no communication pending */
38 UART_GNSS_ERROR, /* Error message received from sensor */ 38 UART_GNSS_ERROR, /* Error message received from sensor */
39 UART_GNSS_WARMUP = 10, 39 UART_GNSS_WARMUP = 10,
40 UART_GNSS_INACTIVE, /* no requests to the receiver */
40 UART_GNSS_LOADCONF_0, 41 UART_GNSS_LOADCONF_0,
41 UART_GNSS_LOADCONF_1, 42 UART_GNSS_LOADCONF_1,
42 UART_GNSS_LOADCONF_2, 43 UART_GNSS_LOADCONF_2,
44 UART_GNSS_PWRDOWN,
45 UART_GNSS_PWRUP,
46 UART_GNSS_SETCONF, /* save configuration */
43 UART_GNSS_GET_PVT, 47 UART_GNSS_GET_PVT,
44 UART_GNSS_GET_SAT 48 UART_GNSS_GET_SAT
45 } uartGnssStatus_t; 49 } uartGnssStatus_t;
46 50
47 typedef enum 51 typedef enum
66 typedef enum 70 typedef enum
67 { 71 {
68 GNSSCMD_LOADCONF_0 = 0, 72 GNSSCMD_LOADCONF_0 = 0,
69 GNSSCMD_LOADCONF_1, 73 GNSSCMD_LOADCONF_1,
70 GNSSCMD_LOADCONF_2, 74 GNSSCMD_LOADCONF_2,
75 GNSSCMD_MODE_PWS,
76 GNSSCMD_MODE_NORMAL,
77 GNSSCMD_SET_CONFIG,
71 GNSSCMD_GET_NAV_DATA, 78 GNSSCMD_GET_NAV_DATA,
72 GNSSCMD_GET_PVT_DATA, 79 GNSSCMD_GET_PVT_DATA,
73 GNSSCMD_GET_POSLLH_DATA, 80 GNSSCMD_GET_POSLLH_DATA,
74 GNSSCMD_GET_NAVSAT_DATA 81 GNSSCMD_GET_NAVSAT_DATA
75 } gnssSensorCmd_t; 82 } gnssSensorCmd_t;
78 { 85 {
79 uint8_t class; 86 uint8_t class;
80 uint8_t id; 87 uint8_t id;
81 } gnssRequest_s; 88 } gnssRequest_s;
82 89
90 void uartGnss_ReqPowerDown(uint8_t request);
83 uartGnssStatus_t uartGnss_GetState(void); 91 uartGnssStatus_t uartGnss_GetState(void);
84 void uartGnss_SetState(uartGnssStatus_t newState); 92 void uartGnss_SetState(uartGnssStatus_t newState);
85 void uartGnss_Control(void); 93 void uartGnss_Control(void);
86 void uartGnss_ProcessData(uint8_t data); 94 void uartGnss_ProcessData(uint8_t data);
87 uint8_t uartGnss_isSensorConnected(); 95 uint8_t uartGnss_isSensorConnected();