sentry_chassis_hzz/modules/master_machine/master_process.h

32 lines
683 B
C
Raw Normal View History

2022-10-20 17:13:02 +08:00
#ifndef MASTER_PROCESS_H
#define MASTER_PROCESS_H
#include "bsp_usart.h"
2022-11-03 20:38:55 +08:00
#include "usart.h"
#include "seasky_protocol.h"
2022-10-20 17:13:02 +08:00
2022-11-03 20:38:55 +08:00
#define VISION_RECV_SIZE 36u
#define VISION_SEND_SIZE 36u
/**
* @brief
2022-11-09 20:24:22 +08:00
*
2022-11-03 20:38:55 +08:00
* @param handle handle(C板上一般为USART1,USART2,4pin)
*/
2022-11-09 20:24:22 +08:00
Vision_Recv_s *VisionInit(UART_HandleTypeDef *handle);
2022-11-03 20:38:55 +08:00
/**
* @brief
2022-11-09 20:24:22 +08:00
*
2022-11-03 20:38:55 +08:00
* @param send
*/
void VisionSend(Vision_Send_s *send);
2022-10-20 17:13:02 +08:00
2022-11-12 18:03:18 +08:00
/**
* @brief
*
* @return Vision_Recv_s*
*/
Vision_Recv_s* VisionGetcmd();
2022-10-20 17:13:02 +08:00
#endif // !MASTER_PROCESS_H