Contents

HwProgramMCR

Configure the setings for the device’s modem control register (MCR).

Declaration

virtual kern_return_t HwProgramMCR(bool dtr, bool rts);

Parameters

  • dtr:

    A Boolean value indicating whether to set or clear the data-terminal-ready bit. If the value is YES, set the bit; otherwise, clear it.

  • rts:

    A Boolean value indicating whether to set or clear the request-to-send bit. If the value is YES, set the bit; otherwise, clear it.

Return Value

kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.

Discussion

Override this method and use it to program your hardware with the specified information.

See Also

Programming the Modem