Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 898:fac13aa6ba93 | 899:2225c467f1e9 |
|---|---|
| 1 /** | |
| 2 ****************************************************************************** | |
| 3 * @file uartProtocol_GNSS.h | |
| 4 * @author heinrichs weikamp gmbh | |
| 5 * @version V0.0.1 | |
| 6 * @date 30-Sep-2024 | |
| 7 * @brief Interface functionality for operation of gnss devices | |
| 8 * | |
| 9 @verbatim | |
| 10 ============================================================================== | |
| 11 ##### How to use ##### | |
| 12 ============================================================================== | |
| 13 @endverbatim | |
| 14 ****************************************************************************** | |
| 15 * @attention | |
| 16 * | |
| 17 * <h2><center>© COPYRIGHT(c) 2014 heinrichs weikamp</center></h2> | |
| 18 * | |
| 19 ****************************************************************************** | |
| 20 */ | |
| 21 | |
| 22 /* Define to prevent recursive inclusion -------------------------------------*/ | |
| 23 #ifndef UART_PROTOCOL_GNSS_H | |
| 24 #define UART_PROTOCOL_GNSS_H | |
| 25 | |
| 26 #ifdef __cplusplus | |
| 27 extern "C" { | |
| 28 #endif | |
| 29 | |
| 30 /* Includes ------------------------------------------------------------------*/ | |
| 31 #include "configuration.h" | |
| 32 #include "stm32f4xx_hal.h" | |
| 33 | |
| 34 typedef enum | |
| 35 { | |
| 36 UART_GNSS_INIT = 0, /* Default Status for every sensor type */ | |
| 37 UART_GNSS_LOAD, /* Load modul configuration */ | |
| 38 UART_GNSS_GET_ID, /* get unique module ID */ | |
| 39 UART_GNSS_IDLE, /* sensor detected and no communication pending */ | |
| 40 UART_GNSS_ERROR, | |
| 41 UART_GNSS_OPERATING, /* normal operation => cyclic request of PVT data */ | |
| 42 } uartGnssStatus_t; | |
| 43 | |
| 44 typedef enum | |
| 45 { | |
| 46 GNSSRX_READY = 0, /* Initial state */ | |
| 47 GNSSRX_RECEIVING, /* Pending data receiption */ | |
| 48 } receiveStateGnss_t; | |
| 49 | |
| 50 | |
| 51 void uartGnss_Control(void); | |
| 52 void uartGnss_ProcessData(void); | |
| 53 uint8_t uartSentinel_isSensorConnected(); | |
| 54 | |
| 55 #endif /* UART_PROTOCOL_GNSS_H */ |
