⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 comparamstruct.h

📁 修改配置文件的经典程序
💻 H
字号:
#ifndef _COM_CONFIG_STRUCT_H_#define _COM_CONFIG_STRUCT_H_#include <stdio.h>#include "./CODEC_API.h"typedef struct {    long        BaudRate;   //baud rate    char        ParityType; //parity check type: None, Odd, Even, Sapce    long        DataBitLen; //data bit numbers: 5, 6, 7, 8    long        StopBitLen; //stop bit numbers: 1, 2    bool        bHardFlowCtrl; // hardware flow control, use RTS/CTS    bool        bSoftFlowCtrl; // software flow control} ComParamStruct;//注: 两个串口,一个作报警串口,等待串口报警数据,传送至远程设备//另一个作云台控制串口,等待服务器或控制机的命令,从串口传送出去typedef struct {    ComParamStruct COM1;    ComParamStruct COM2;    long     LocalAlarmCom;   //local alarm com: 0--none, 1--COM1, 2--COM2    Net_Addr ComRemoteAddr;   //remote device IP: allow to connect} ComConfigStruct;#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -