📄 tsipincl.h
字号:
/*
* *************************************************************************
*
* Trimble Navigation, Ltd.
* OEM Products Development Group
* P.O. Box 3642
* 645 North Mary Avenue
* Sunnyvale, California 94088-3642
*
* Corporate Headquarter:
* Telephone: (408) 481-8000
* Fax: (408) 481-6005
*
* Technical Support Center:
* Telephone: (800) 767-4822 (U.S. and Canada)
* (408) 481-6940 (outside U.S. and Canada)
* Fax: (408) 481-6020
* BBS: (408) 481-7800
* e-mail: trimble_support@trimble.com
*
* *************************************************************************
*/
#define TCHAT_VERNUM "1.40"
#define TPRNT_VERNUM "1.40"
#define MAX_BAUD 10
/* Defines from Stinger Serial port config/TP task */
#define PORT_HS_NONE 0
#define PORT_HS_RTS_CTS 1
#define PORT_HS_TX_XON_XOFF 2
#define PORT_HS_TX_XANY 4 /* requires PORT_HS_TX_XON_XOFF as well */
#define PORT_HS_RX_XON_XOFF 8
#define BAUD_TEXT_LEN 10
#define DATABIT_TEXT_LEN 4
#define DGPS_MODE_TEXT_LEN 5
#define DYN_TEXT_LEN 5
#define PARITY_TEXT_LEN 3
#define POS_FIX_TEXT_LEN 5
#define RCVR_PORT_TEXT_LEN 3
#define STOPBIT_TEXT_LEN 2
#define TRACKMODE_TEXT_LEN 3
#define ABLE_TEXT_LEN 4
#define ALT_TEXT_LEN 2
#define BAUD_TEXT_0x3D_LEN 10
#define BITS_PER_BYTETEXT_0x3D_LEN 4
#define FLOW_CNTRL_TEXT_LEN 5
#define FRMT_TEXT_LEN 2
#define IN_OUT_TEXT_LEN 4
#define MODE_TEXT_LEN 4
#define OP_TEXT_LEN 7
#define PARITYTEXT_0x3D_LEN 5
#define PREC_TEXT_LEN 2
#define PROTOCOLS_TEXT_LEN 5
#define PORT_TEXT_LEN 3
#define QUERY_TEXT_LEN 2
#define RAW_TEXT_LEN 2
#define REQ_SET_TEXT_LEN 2
#define RX_MODE_TEXT_LEN 2
#define SNR_TEXT_LEN 2
#define STOP_BIT_TEXT_0x3D_LEN 3
#define TIME_TEXT_LEN 2
#define TOGGLE_TEXT_LEN 2
#define TX_MODE_TEXT_LEN 6
#define TYPE_TEXT_LEN 7
#define MAX_SERIAL_TEXT_LEN 10
#define TAIP 0x01
#define TSIP 0x02
#define NMEA 0x04
#define RTCM 0x08
#define DCOL 0x10
/* prototypes */
/* TSIP_RPT.C */
void rpt_packet
(TSIPPKT *rpt);
/* TSIP_RPT.C */
void GPS_time_to_PC
(double time);
void show_crlf (void);
/* T_SERIAL.C */
void initsio (
short port, /* 1 = COM1, 2 = COM2 */
unsigned short speed, /* baud (2400, 9600, etc.) */
short bits, /* 7 or 8 data bits */
short stopbits, /* 1 or 2 stopbits */
short parity); /* none, odd, even */
short get_char ( /* returns -1 for no char waiting, 0-FF otherwise */
short port); /* 1 or 2 */
short put_char( /* returns 0 for sucess, 1 for failure */
short port, /* 1 or 2 */
unsigned char x); /* byte to be transmitted */
void closeserial( /* closes all serial buffers */
void);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -