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
|
|
|
|
|
|
|
|
|
2022-11-05 21:59:03 +08:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-03 20:38:55 +08:00
|
|
|
/**
|
|
|
|
* @brief 调用此函数初始化和视觉的串口通信
|
|
|
|
*
|
|
|
|
* @param handle 用于和视觉通信的串口handle(C板上一般为USART1,丝印为USART2,4pin)
|
|
|
|
*/
|
2022-11-05 21:59:03 +08:00
|
|
|
Vision_Recv_s* VisionInit(UART_HandleTypeDef* handle);
|
2022-11-03 20:38:55 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief 发送视觉视觉
|
|
|
|
*
|
|
|
|
* @param send 视觉需要的数据
|
|
|
|
*/
|
|
|
|
void VisionSend(Vision_Send_s *send);
|
2022-10-20 17:13:02 +08:00
|
|
|
|
|
|
|
|
|
|
|
#endif // !MASTER_PROCESS_H
|