Mercurial > public > ostc4
comparison Small_CPU/Inc/uartProtocol_GNSS.h @ 932:effadaa3a1f7 Evo_2_23
Cleanup Gnss UART implementation:
The first draft of the internal UART implementation was just a copy of the external UART handling. To avoid duplicated code and maintainance issue both UARTs (external/internal 6/1) share the same functions. To enable this a control structure has to be used as function input which defines the none shared resources like DMA control and rx/tx buffers
| author | Ideenmodellierer |
|---|---|
| date | Sat, 07 Dec 2024 21:28:08 +0100 |
| parents | 5a9bc2e6112d |
| children | 3029f0332f4f |
comparison
equal
deleted
inserted
replaced
| 931:5a9bc2e6112d | 932:effadaa3a1f7 |
|---|---|
| 78 { | 78 { |
| 79 uint8_t class; | 79 uint8_t class; |
| 80 uint8_t id; | 80 uint8_t id; |
| 81 } gnssRequest_s; | 81 } gnssRequest_s; |
| 82 | 82 |
| 83 | 83 uartGnssStatus_t uartGnss_GetState(void); |
| 84 void uartGnss_SetState(uartGnssStatus_t newState); | |
| 84 void uartGnss_Control(void); | 85 void uartGnss_Control(void); |
| 85 void uartGnss_ProcessData(uint8_t data); | 86 void uartGnss_ProcessData(uint8_t data); |
| 86 uint8_t uartGnss_isSensorConnected(); | 87 uint8_t uartGnss_isSensorConnected(); |
| 87 void uartGnss_SendCmd(uint8_t GnssCmd); | 88 void uartGnss_SendCmd(uint8_t GnssCmd); |
| 88 | 89 |
