SetModemStatus
Sets the modem status to the specified values.
Declaration
virtual kern_return_t SetModemStatus(bool cts, bool dsr, bool ri, bool dcd);Parameters
- cts:
A Boolean value indicating the state of the clear-to-send bit. Specify
YESto set the bit orNOto clear it. - dsr:
A Boolean value indicating the state of the data-set-ready bit. Specify
YESto set the bit orNOto clear it. - ri:
A Boolean value indicating the state of the ring-indicator bit. Specify
YESto set the bit orNOto clear it. - dcd:
A Boolean value indicating the state of the data-carrier-detect bit. Specify
YESto set the bit orNOto clear it.
Return Value
kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.
Discussion
Call this method to report the state of the device to the system.