h6. [[Hardware Abstraction Layer]] h6(. [[HAL entry points from RISC OS]] h6((. » HAL_UARTModemControl h2. HAL_UARTModemControl h5. (HAL entry #81) <pre> int HAL_UARTModemControl(int port, int eor, int mask) </pre> |_<. Entry | | |port |Port number to modify | |eor |EOR mask | |mask |AND mask | |_<. Exit | | |- |Returns the previous state | h4. Use This is an internal call for use by the [[DualSerial]] module and should not be used by user code. Instead of calling the HAL directly, user code should interact with the Serial* entries that DualSerial creates in DeviceFS. Modifies the modem control outputs. The state is updated as follows: <pre> new_state = (old_state AND mask) EOR eor </pre> The meanings of the bits are as follows: |_<. Bit |_<. Meaning | |0 |DTR | |1 |RTS (read-only if bit 5 set) | |2 |internal use | |3 |internal use | |4 |internal use | |5 |Enable hardware RTS/CTS control | Note that these are logical outputs, although the physical pins may be inverted. So 1 indicates a request to send. h4. See also * [[HAL UART API]] h6. Information source: Kernel.Docs.HAL.Serial in CVS