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 "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-29 16:33:34 +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
|
|
|
|
|
|
|
#endif // !MASTER_PROCESS_H
|