4.5 Serial Communication Calls
Library files included with Dynamic C provide a full range of serial communications support.
The RS232.LIB library provides a set of circular-buffer-based serial functions. The
PACKET.LIB library provides packet-based serial functions where packets can be delimited
by the 9th bit, by transmission gaps, or with user-defined special characters. Both libraries
provide blocking functions, which do not return until they are finished transmitting or receiv-
ing, and nonblocking functions, which must be called repeatedly until they are finished. For
more information, see the Dynamic C Function Reference Manual and Technical Note 213,
Rabbit 2000 Serial Port Software .
Use the following function calls with the Smart Star.
int serMode(int mode);
User interface to set up serial communication lines for the Smart Star control system. Call this function
after serXOpen() .
PARAMETERS
mode is the defined serial port configuration of the CPU Card.
Mode
Serial Port
Parallel Port
C (PC2 and PC3)
D (PC0 and PC1)
D (PD0 and PD1)
0
1
2
RS-232, 3-wire
RS-232, 3-wire
RS-232, 5-wire
RS-485
RS-232, 3-wire
RTS/CTS
3
RS-232, 5-wire
RS-485
RTS/CTS
RETURN VALUE
0 if correct mode, 1 if not.
ser485Tx();
Enables RS-485 transmission (disables receive) on serial port D.
RETURN VALUE
None.
SEE ALSO
ser485Rx
User ’s Manual
49
相关PDF资料
101-0545 PROTOTYPING BOARD FOR LP3500
101-0563 RCM3400 PROTO BOARD
101-0589 CLONING BOARD RABBIT
101-0688 CARD D/A EXPANSION RN1300
101-0954 KIT DEV RABBIT RCM3360/3370 INTL
101-1050-BE-00025 ADPT USB 2 A FEMALE-2 5PIN .25M
10112627-101LF MINI-SAS HD 1X2 EXT PCB
10112628-101LF MINI-SAS HD 1X4 EXT PCB
相关代理商/技术参数
101-0507 功能描述:模块化系统 - SOM RCM3000 RABBITCORE RoHS:否 制造商:Digi International 外观尺寸:ConnectCore 9P 处理器类型:ARM926EJ-S 频率:150 MHz 存储容量:8 MB, 16 MB 存储类型:NOR Flash, SDRAM 接口类型:I2C, SPI, UART 工作电源电压:3.3 V 最大工作温度:+ 85 C 尺寸:1.97 in x 1.97 in x 6.1 in
101-0508 功能描述:模块化系统 - SOM RCM3010 RABBITCORE RoHS:否 制造商:Digi International 外观尺寸:ConnectCore 9P 处理器类型:ARM926EJ-S 频率:150 MHz 存储容量:8 MB, 16 MB 存储类型:NOR Flash, SDRAM 接口类型:I2C, SPI, UART 工作电源电压:3.3 V 最大工作温度:+ 85 C 尺寸:1.97 in x 1.97 in x 6.1 in
101050-9 制造商:RUKO 功能描述:Bulk 制造商:RUKO 功能描述:STEP DRILL 4-12MMX1MM 制造商:RUKO 功能描述:STEP DRILL, 4-12MMX1MM 制造商:RUKO 功能描述:STEP DRILL, 4-12MMX1MM; Drill Bit Size Metric:4mm; Overall Length:65mm; SVHC:No SVHC (19-Dec-2012); Drill Bit Type:Step; Drill Point Diameter:4mm; Material:HSS; Range:4mm - 12mm; Shank Dia:6mm; Step:1mm ;RoHS Compliant: NA
101050BO 制造商:TE Connectivity 功能描述:
101051 制造商:RUKO 功能描述:STEP DRILL 4-20MMX2MM 制造商:RUKO 功能描述:STEP DRILL, 4-20MMX2MM 制造商:RUKO 功能描述:STEP DRILL, 4-20MMX2MM; Drill Bit Size Metric:4mm; Overall Length:75mm; SVHC:No SVHC (19-Dec-2012); Drill Bit Type:Step; Drill Point Diameter:4mm; Material:HSS; Range:4mm - 20mm; Shank Dia:8mm; Step:2mm ;RoHS Compliant: NA
10-105108-03G 制造商:Amphenol Aerospace 功能描述:10-105108-03G
10-105108-03P 制造商:Amphenol Aerospace 功能描述:10-105108-03P
10-105108-04P 制造商:Amphenol Aerospace 功能描述:10-105108-04P