Owner manual

22 API Functions
aaChangeModemState
aaChangeModemState
Changes the state of modem output lines.
aaChangeModemState(Dev,
RTSState,DTRState)
int Dev Device number
int
RTSState State of RTS line: ON, OFF, or
NOCHANGE
int DTRState State of DTR line: ON, OFF, or
NOCHANGE
int: NO_ERR if successful
ERR_DEV if device out of range
Purpose
Call
Return
aaClose
Closes a device.
aaClose(Dev,ModemCtl)
int Dev Device number
unsigned char ModemCtl Modem control lines to turn
OFF, can be
COM_MDM_RTS or
COM_MDM_DTR. If the flag
is not set the state of the
modem line is not changed.
int:
NO_ERR if successful
ERR_DEV if device number out of range
ERR_MDMCTL if invalid modem control flag
ERR_NOTOPEN if device not open
This function waits for the devices transmit buffer to
drain before completing the close. The maximum wait
time defaults to
CLOSE_TBEDLY, but can be changed
with the aaSetCloseDelay() function.
This function disables and enables interrupts.
Function
Purpose
Call
Return
Comments
Warning