?? cmapicom.h
字號:
/* * File: cmApiCom.h * * Description: Communications Interface header file */#ifndef CMAPICOM_H#define CMAPICOM_H#include <stdio.h>#include <windows.h>// General constants#define cmdbuf_size 20 // command and response packet size// IOCTL constants#define CMCOMIOCTL_TAG_DBG 1 // debug flag#define CMCOMIOCTL_TAG_DELAY 2 // inter char delay#define CMCOMIOCTL_TAG_BAUD 3 // baud rate on RS232#define CMCOMIOCTL_TAG_SEND_OPT 4 // Send options #define CMCOMIOCTL_TAG_BREAK 5 // Wait for Break evt before read #define cmcomioctl_send_opt_cr_lf 0#define cmcomioctl_send_opt_lf_only 1#define CMCOM_TAG_BAUDRATE 1// Interface prototypes.HANDLE cmComOpen (char *comName_p);int cmComSend (HANDLE comh, unsigned char *cmd_p, int nbytes);int cmComRecv (HANDLE comh, unsigned char *resp_p, int resp_len, int *nbytesread_p);void cmComClose (HANDLE comh);int cmComIoctl (int tag, int *tagval_p);void h16toa (int n, char *buf);void h8toa (int n, char *buf);int cmComSet (int tag, int value);#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -