Mercurial > public > ostc4
diff Small_CPU/Inc/uartProtocol_GNSS.h @ 899:2225c467f1e9 Evo_2_23
Added data path and visualization for position data:
The GNSS data exchange is now initialized and triggered on a cyclic basis (once a second). RTE verion has been increased because of interface change. For now only the position data is shown in a T7 surface views. The functionality may be switched on/off using the compile switch ENABLE_GNSS.
author | Ideenmodellierer |
---|---|
date | Mon, 30 Sep 2024 21:56:05 +0200 |
parents | |
children | c0553dd70608 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Small_CPU/Inc/uartProtocol_GNSS.h Mon Sep 30 21:56:05 2024 +0200 @@ -0,0 +1,55 @@ +/** + ****************************************************************************** + * @file uartProtocol_GNSS.h + * @author heinrichs weikamp gmbh + * @version V0.0.1 + * @date 30-Sep-2024 + * @brief Interface functionality for operation of gnss devices + * + @verbatim + ============================================================================== + ##### How to use ##### + ============================================================================== + @endverbatim + ****************************************************************************** + * @attention + * + * <h2><center>© COPYRIGHT(c) 2014 heinrichs weikamp</center></h2> + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef UART_PROTOCOL_GNSS_H +#define UART_PROTOCOL_GNSS_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "configuration.h" +#include "stm32f4xx_hal.h" + + typedef enum + { + UART_GNSS_INIT = 0, /* Default Status for every sensor type */ + UART_GNSS_LOAD, /* Load modul configuration */ + UART_GNSS_GET_ID, /* get unique module ID */ + UART_GNSS_IDLE, /* sensor detected and no communication pending */ + UART_GNSS_ERROR, + UART_GNSS_OPERATING, /* normal operation => cyclic request of PVT data */ + } uartGnssStatus_t; + + typedef enum + { + GNSSRX_READY = 0, /* Initial state */ + GNSSRX_RECEIVING, /* Pending data receiption */ + } receiveStateGnss_t; + + +void uartGnss_Control(void); +void uartGnss_ProcessData(void); +uint8_t uartSentinel_isSensorConnected(); + +#endif /* UART_PROTOCOL_GNSS_H */