12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- /* USER CODE BEGIN Header */
- /**
- ******************************************************************************
- * @file usart.h
- * @brief This file contains all the function prototypes for
- * the usart.c file
- ******************************************************************************
- * @attention
- *
- * Copyright (c) 2024 STMicroelectronics.
- * All rights reserved.
- *
- * This software is licensed under terms that can be found in the LICENSE file
- * in the root directory of this software component.
- * If no LICENSE file comes with this software, it is provided AS-IS.
- *
- ******************************************************************************
- */
- /* USER CODE END Header */
- /* Define to prevent recursive inclusion -------------------------------------*/
- #ifndef __USART_H__
- #define __USART_H__
- #ifdef __cplusplus
- extern "C" {
- #endif
- /* Includes ------------------------------------------------------------------*/
- #include "main.h"
- /* USER CODE BEGIN Includes */
- #include "ConfigMacros.h"
- extern uint8_t U1_485reFlag;
- extern uint8_t U1_485recvBuff[BUFFER_SIZE];
- extern uint8_t U1_485recvLength; //接收一帧数据的长度
- extern uint8_t U4_4GreFlag;
- extern uint8_t U4_4GrecvBuff[BUFFER_SIZE];
- extern uint8_t U4_4GrecvLength; //接收一帧数据的长度
- extern uint8_t U5_BTreFlag;
- extern uint8_t U5_BTrecvBuff[BUFFER_SIZE];
- extern uint8_t U5_BTrecvBuff1[BUFFER_SIZE];
- extern uint8_t U5_BTrecvLength; //接收一帧数据的长度
- extern uint8_t BT_Rebuffer[20];
- /* USER CODE END Includes */
- extern UART_HandleTypeDef huart4;
- extern UART_HandleTypeDef huart5;
- extern UART_HandleTypeDef huart1;
- extern UART_HandleTypeDef huart2;
- extern UART_HandleTypeDef huart3;
- /* USER CODE BEGIN Private defines */
- /* USER CODE END Private defines */
- void MX_UART4_Init(void);
- void MX_UART5_Init(void);
- void MX_USART1_UART_Init(void);
- void MX_USART2_UART_Init(void);
- void MX_USART3_UART_Init(void);
- /* USER CODE BEGIN Prototypes */
- void erase_flash(uint32_t ADDR_FLASH);
- void Printf_u4u5logbyU1(void);
- uint8_t xorBytes(uint8_t arr[], int size);
- void sendCombinedArray(uint8_t *header, size_t headerLength, uint8_t *command, size_t commandLength, bool JM);
- void Flash_ReadBytes_mac(uint16_t* sorBuf,uint32_t FlashAddr,uint16_t len);
- HAL_StatusTypeDef Flash_WriteBytes(uint16_t* sorBuf, uint32_t FlashAddr, uint16_t len);
- void Flash_ReadBytes(uint16_t* sorBuf,uint32_t FlashAddr,uint16_t len);
- uint32_t convertGPS(double temp) ;
- /* USER CODE END Prototypes */
- #ifdef __cplusplus
- }
- #endif
- #endif /* __USART_H__ */
|