Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
(ARM).Porting TCP-IP programmer's guide.Ver 1.4.pdf
Скачиваний:
31
Добавлен:
23.08.2013
Размер:
2.79 Mб
Скачать

Modem Functions

6.3.4modem_DCD()

This tests the current status of the Data Carrier Detect (DCD) input from the modem.

Syntax

int modem_DCD(int unit)

where:

unit

is the interface unit number.

Return value

Returns one of the following:

TRUE if the carrier detect is down.

FALSE if the carrier detect is up.

Usage

The modem_DCD() function is called by the dialer functions to determine the current state of the DCD input from the modem.

6-28

Copyright © 1998 and 1999 ARM Limited. All rights reserved.

ARM DUI 0079B

Modem Functions

6.3.5modem_portstat()

This prints statistics about the modem port.

Syntax

void modem_portstat(int unit)

where:

unit

is the interface unit number.

Return value

None.

Usage

The modem_portstat() function is used for debugging purposes to print out statistics about this modem port.

ARM DUI 0079B

Copyright © 1998 and 1999 ARM Limited. All rights reserved.

6-29

Modem Functions

6-30

Copyright © 1998 and 1999 ARM Limited. All rights reserved.

ARM DUI 0079B