2 events and status service, Events and status service, M1x22_rng_get – Maxim Integrated 73M1822/73M1922 Control Module User Manual

Page 29

Advertising
background image

UG_1x22_053

73M1822/73M1922 Control Module User Guide

Rev. 1.0

29

6.2 Events and Status Service

The driver can be queried for a variety of current status of the modem line via IOCTLs. Table 2
summarizes these services.

Table 2: Modem Line Status Services

Events and Status

Description

Descriptor

M1X22_RNG_GET

Modem line ring status commands.

Channel

M1X22_POL_GET

Modem line polarity status commands.

Channel

M1X22_BAT_GET

Modem line battery status command.

Channel

M1X22_POH_GET

Modem line POH status command.

Channel

M1X22_EVENT_GET

Event retrieval command.

Device

M1X22_ERROR_CODE_GET Retrieve last error code command.

Device/Channel


6.2.1 M1X22_RNG_GET

Description

Gets the current ring status of the modem line. The current ring status is maintained in the driver internal
variable. This variable is being retrieved by use application using this command.

#define M1X22_RNG_GET _IOWR(0xA4,0xB8,unsigned int)

Prototype

int ioctl (

int chan_fd,

int M1X22_RNG_GET,

unsigned long param );


Parameters

Data Type

Name

Description

int

chan_fd

Channel descriptor.

int

M1X22_RNG_GET

I/O control identifier for this operation.

unsigned long

param

N/A.


Return Values

Data Type

Description

int

The return value can be either of the following:
0 – No ring signal occurred on the modem line.
1 – The modem line is ringing, signaling of incoming call.


Advertising