comparison Small_CPU/Inc/uart.h @ 922:7c996354b8ac Evo_2_23

Moved UART6 into a separate unit: UART6 connects internal devices. As a first step the existing code sections have been moved into a new unit. As well the code of the external GNSS sensor has been copied into this unit as starting point for the further development. Later the internal part can be integrated into the common uart (code cleanup).
author Ideenmodellierer
date Sun, 03 Nov 2024 20:53:05 +0100
parents f72613a152dd
children effadaa3a1f7
comparison
equal deleted inserted replaced
921:eb4109d7d1e9 922:7c996354b8ac
27 27
28 #define BUFFER_NODATA_LOW (0x15) /* The read function needs a signiture which indicates that no data for processing is available.*/ 28 #define BUFFER_NODATA_LOW (0x15) /* The read function needs a signiture which indicates that no data for processing is available.*/
29 #define BUFFER_NODATA_HIGH (0xA5) 29 #define BUFFER_NODATA_HIGH (0xA5)
30 30
31 31
32 UART_HandleTypeDef huart1, huart6; 32 UART_HandleTypeDef huart1;
33 33
34 void MX_USART1_UART_Init(void); 34 void MX_USART1_UART_Init(void);
35 void MX_USART1_UART_DeInit(void); 35 void MX_USART1_UART_DeInit(void);
36 void MX_USART1_DMA_Init(void); 36 void MX_USART1_DMA_Init(void);
37 37
57 uint8_t UART_isCO2Connected(); 57 uint8_t UART_isCO2Connected();
58 uint8_t UART_isSentinelConnected(); 58 uint8_t UART_isSentinelConnected();
59 void UART_setTargetChannel(uint8_t channel); 59 void UART_setTargetChannel(uint8_t channel);
60 void UART_MUX_SelectAddress(uint8_t muxAddress); 60 void UART_MUX_SelectAddress(uint8_t muxAddress);
61 void UART_SendCmdString(uint8_t *cmdString); 61 void UART_SendCmdString(uint8_t *cmdString);
62 void UART_SendCmdUbx(uint8_t *cmd, uint8_t len); 62 void UART_SendCmdUbx(const uint8_t *cmd, uint8_t len);
63 void UART_ReadData(uint8_t sensorType); 63 void UART_ReadData(uint8_t sensorType);
64 void UART_WriteData(void); 64 void UART_WriteData(void);
65 void UART_FlushRxBuffer(void); 65 void UART_FlushRxBuffer(void);
66 void UART_ChangeBaudrate(uint32_t newBaudrate); 66 void UART_ChangeBaudrate(uint32_t newBaudrate);
67 uint8_t UART_isComActive(uint8_t sensorId); 67 uint8_t UART_isComActive(uint8_t sensorId);