Mercurial > public > ostc4
diff Small_CPU/Inc/uartProtocol_GNSS.h @ 939:f41974734268 Evo_2_23
Resume UART com with gnss after sleep:
Some changes were needed to get the communication up and running again after the gnns modul was set into power mode. The config needs to be safed at shutdown and the receiver needs to be wake up using dummy bytes before real communication may be resumed
author | Ideenmodellierer |
---|---|
date | Tue, 10 Dec 2024 21:03:04 +0100 |
parents | 3029f0332f4f |
children |
line wrap: on
line diff
--- a/Small_CPU/Inc/uartProtocol_GNSS.h Tue Dec 10 21:00:55 2024 +0100 +++ b/Small_CPU/Inc/uartProtocol_GNSS.h Tue Dec 10 21:03:04 2024 +0100 @@ -41,6 +41,7 @@ UART_GNSS_LOADCONF_0, UART_GNSS_LOADCONF_1, UART_GNSS_LOADCONF_2, + UART_GNSS_SETMODE_MOBILE, UART_GNSS_PWRDOWN, UART_GNSS_PWRUP, UART_GNSS_SETCONF, /* save configuration */ @@ -72,6 +73,7 @@ GNSSCMD_LOADCONF_0 = 0, GNSSCMD_LOADCONF_1, GNSSCMD_LOADCONF_2, + GNSSCMD_SETMOBILE, GNSSCMD_MODE_PWS, GNSSCMD_MODE_NORMAL, GNSSCMD_SET_CONFIG, @@ -88,6 +90,7 @@ } gnssRequest_s; void uartGnss_ReqPowerDown(uint8_t request); +uint8_t uartGnss_isPowerDownRequested(void); uartGnssStatus_t uartGnss_GetState(void); void uartGnss_SetState(uartGnssStatus_t newState); void uartGnss_Control(void);