/* * bsp_decode_command.h * * Created on: Sep 24, 2024 * Author: akeguo */ #ifndef INC_BSP_BSP_DECODE_COMMAND_H_ #define INC_BSP_BSP_DECODE_COMMAND_H_ #include "main.h" #include "../../BASE/Inc/BSP/pb_decode.h" #include "../../BASE/Inc/BSP/pb_encode.h" #include "../../BASE/Inc/BSP/bsp_include.h" #include "../../BASE/Inc/BSP/pb.h" #include "bsp_Cmd.pb.h" #include #include #include #include "../../BASE/Inc/BSP/BHBF_ROBOT.h" #include "../../BASE/Inc/BSP/bsp_cpu_flash.h" #include "../../BASE/Inc/BSP/bsp_qspi_w25q128.h" #include "../../BASE/Inc/BSP/bsp_UpperComputer_Handler.h" #include "bsp_ReCmd.pb.h" #include "bsp_IV.pb.h" void send_received_data_to_upper_computer(uint8_t *buffer, uint16_t length); void decode_command_and_feedback(uint8_t *buffer, uint16_t length, char isMqtt, struct UARTHandler *send_Handler); void WrapInCmdAndSend(ReCmd send_Cmd, uint8_t *buf, char isMqtt,struct UARTHandler *send_Handler); void WrapInCmdAndSendMessage(ReCmd send_Cmd,int8_t functionNum,char isSuccess, uint8_t *buf, char isMqtt, struct UARTHandler *send_Handler); #endif /* INC_BSP_BSP_DECODE_COMMAND_H_ */