get_modem_status


bool get_modem_status(handle file,
                      unsigned* status)

This function obtains the control egister of a modem.

Parameters

handle file

The handle of the communications device. This handle is returned by the function create_file.

unsigned* status

A pointer to a variable that is updated to hold the modem status flags.

Return

bool

true The function succeeded.
false The call failed.

Notes

This function is useful when using the function wait_communications_event to monitor the signals:

If the hardware does not support control egister values, this function fails.