922
|
1 /**
|
|
2 ******************************************************************************
|
|
3 * @file uartInternal.h
|
|
4 * @author heinrichs weikamp gmbh
|
|
5 * @version V0.0.1
|
|
6 * @date 03-November-2024
|
|
7 * @brief button control
|
|
8 *
|
|
9 ******************************************************************************
|
|
10 * @attention
|
|
11 *
|
|
12 * <h2><center>© COPYRIGHT(c) 2015 heinrichs weikamp</center></h2>
|
|
13 *
|
|
14 ******************************************************************************
|
|
15 */
|
|
16
|
|
17 /* Define to prevent recursive inclusion -------------------------------------*/
|
|
18 #ifndef UARTINTERNAL_H
|
|
19 #define UARTINTERNAL_H
|
|
20
|
|
21 #ifdef __cplusplus
|
|
22 extern "C" {
|
|
23 #endif
|
|
24
|
|
25 #include "stm32f4xx_hal.h"
|
|
26
|
|
27
|
931
|
28 #define BUFFER_NODATA_LOW (0x15) /* The read function needs a signature which indicates that no data for processing is available.*/
|
922
|
29 #define BUFFER_NODATA_HIGH (0xA5)
|
|
30
|
|
31
|
|
32 UART_HandleTypeDef huart6;
|
|
33
|
|
34 void MX_USART6_UART_Init(void);
|
|
35 void MX_USART6_DMA_Init(void);
|
|
36 void MX_USART6_UART_DeInit(void);
|
|
37 void GNSS_IO_init(void);
|
|
38
|
|
39 void UART6_StartDMA_Receiption(void);
|
|
40
|
|
41 void UART_clearRx6Buffer(void);
|
|
42 void UART6_SendCmdUbx(const uint8_t *cmd, uint8_t len);
|
|
43 void UART6_ReadData(void);
|
|
44 void UART6_WriteData(void);
|
|
45 void UART6_Gnss_ProcessData(uint8_t data);
|
|
46
|
|
47 #ifdef __cplusplus
|
|
48 }
|
|
49 #endif
|
|
50
|
|
51 #endif /* UARTINTERNAL_H */
|
|
52
|
|
53 /************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/
|