HwGetModemStatus
Gets the current status of the modem from the hardware.
Declaration
virtual kern_return_t HwGetModemStatus(bool *cts, bool *dsr, bool *ri, bool *dcd);Parameters
- cts:
On return, a Boolean variable containing the state of the clear-to-send bit. Set this value to
YESwhen the bit is set. - dsr:
On return, a Boolean variable containing the state of the data-set-ready bit. Set this value to
YESwhen the bit is set. - ri:
On return, a Boolean variable containing the state of the ring-indicator bit. Set this value to
YESwhen the bit is set. - dcd:
On return, a Boolean variable containing the state of the data-carrier-detect bit. Set this value to
YESwhen the bit is set.
Return Value
kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.
Discussion
Override this method and use it to retrieve the current modem status from your hardware. Set the values of each parameter to an appropriate value based on whether the indicated bit is set.