
6-136
ADAM-5511
Function Library
Name:
Read Modem Status (MSR)
Description:
Read from specified port modem status register
Syntax:
int port_get_modem_status(int portno)
Parameter
Description
portno
The specified port number
Return Value:
0x00XX
:
modem status
0xFF00
:
bad command or parameter
Example:
void main ()
{
int MSR_Value;
port_install(1);
:
:
port_enable_fifo(1);
//get MSR value
MSR_Value=port_get_modem_status(1);
}
UART Register Description Table
Register
Name
Description
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
MSR
Modem
Status
Register
DCD
RI
DSR
CTS
Delta
DCD
Trailing
RI edge
Delta
DSR
Delta
CTS
Содержание ADAM-5511
Страница 1: ...1 Introduction ...
Страница 2: ......
Страница 19: ...0 Quick Start Chapter ...
Страница 35: ...1 Introduction Chapter ...
Страница 39: ...2 System Specifications Chapter ...
Страница 45: ...3 Installation Guidelines Chapter ...
Страница 57: ...4 I O Modules Chapter ...
Страница 110: ...4 54 ADAM 5511 I O Modules This page inyrntionally left blank ...
Страница 111: ...5 Programming and Downloading Chapter ...
Страница 143: ...6 Function Library Chapter ...
Страница 153: ...ADAM 5511 6 11 Chapter 6 ADAMdelay 1000 WDT_clear WDT_disable Remarks None ...
Страница 161: ...ADAM 5511 6 19 Chapter 6 SetRTCtime RTC_hour hour Remarks None ...
Страница 163: ...ADAM 5511 6 21 Chapter 6 printf nNode number Error Remarks None ...
Страница 165: ...ADAM 5511 6 23 Chapter 6 printf nThe IO Board is NOT ADAM5051 printf nPlease Check your system setup Remarks None ...
Страница 169: ...ADAM 5511 6 27 Chapter 6 write_user_ram 0 Remarks None ...
Страница 171: ...ADAM 5511 6 29 Chapter 6 Remarks None ...
Страница 175: ...ADAM 5511 6 33 Chapter 6 Remarks None ...
Страница 188: ...6 46 ADAM 5511 Function Library Remarks Please refer to the 16C550 UART register document Appendix B ...
Страница 207: ...ADAM 5511 6 65 Chapter 6 unsigned char Bitdata 1 Output 1 to slot 0 pin 13 Set5056 Bitdata 0 13 ABit Remarks None ...
Страница 211: ...ADAM 5511 6 69 Chapter 6 Remarks None ...
Страница 219: ...ADAM 5511 6 77 Chapter 6 Remarks None ...
Страница 223: ...ADAM 5511 6 81 Chapter 6 printf start failed n Remarks None ...
Страница 242: ...6 100 ADAM 5511 Function Library Remarks None ...
Страница 244: ...6 102 ADAM 5511 Function Library Remarks None ...
Страница 246: ...6 104 ADAM 5511 Function Library Remarks None ...
Страница 248: ...6 106 ADAM 5511 Function Library Remarks None ...
Страница 250: ...6 108 ADAM 5511 Function Library printf nAdam 4017 channel3 d data17 Remarks None ...
Страница 252: ...6 110 ADAM 5511 Function Library printf nAdam 4018 channel3 d data18 Remarks None ...
Страница 254: ...6 112 ADAM 5511 Function Library Remarks None ...
Страница 260: ...6 118 ADAM 5511 Function Library printf nAdam 4080 channel2 d Idata80 Remarks None ...
Страница 264: ...6 122 ADAM 5511 Function Library This page is blank ...
Страница 297: ...A COM Port Register Structure Appendix ...
Страница 301: ...B Data Formats and I O Ranges Appendix ...
Страница 312: ...B 12 ADAM 5511 Data Formats and I O Ranges This page is blank ...
Страница 313: ...C Examples on CD Appendix ...
Страница 315: ...D RS 485 Network Appendix ...
Страница 323: ...E Grounding Reference Appendix ...
Страница 330: ...E 8 ADAM 5511 Grounding Reference Figure E 6 wire impedance ...