/** * @file host_computer.h * @brief Commnunicate with host computer. Protocal is described in 下位机和上位机通信协议 V1.4 * @author miaow (3703781@qq.com) * @version 1.2 * @date 2023/05/07 * @mainpage github.com/NanjingForestryUniversity * * @copyright Copyright (c) 2023 miaow * * @par Changelog: * *
Date Version Author Description *
2022/01/16 1.0 miaow Write this file *
2022/08/06 1.1 miaow Add fifob *
2023/05/07 1.2 miaow Port to b03 branch *
*/ #ifndef __HOST_COMPUTER_H #define __HOST_COMPUTER_H #include #include #include #define HOST_COMPUTER_IP "192.168.2.125" #define HOST_COMPUTER_PORT 13452 /** * @brief The commonds, ref 下位机和上位机通信协议V1.4 */ enum HOSTCOMPUTER_CMD { HOSTCOMPUTER_CMD_START = 1, HOSTCOMPUTER_CMD_STOP = 2, HOSTCOMPUTER_CMD_SETCAMERATRIGPULSECOUNT_A = 3, HOSTCOMPUTER_CMD_SETCAMERATRIGPULSECOUNT_B = 4, HOSTCOMPUTER_CMD_SETCAMERATRIGPULSECOUNT_C = 5, HOSTCOMPUTER_CMD_SETCAMERATRIGPULSECOUNT_D = 6, }; int hostcomputer_init(queue_uint64_msg_t *cmd_q); int hostcomputer_deinit(void); #endif