HwProgramUART
Configure the settings for the device’s universal asynchronous receiver/transmitter (UART).
Declaration
virtual kern_return_t HwProgramUART(uint32_t baudRate, uint8_t nDataBits, uint8_t nHalfStopBits, uint8_t parity);Parameters
- baudRate:
The baud rate requested by the system.
- nDataBits:
The number of data bits to transmit.
- nHalfStopBits:
The number of half stop bits. For example, specify
3to generate1.5stop bits. - parity:
The parity setting to use during communication. For a list of possible values, see Parity Options.
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.