Showing changes from revision #1 to #2:
Added | Removed | Changed
int HAL_UARTRate(int port, int format)
Entry | |
---|---|
port | Port number to modify |
format | Desired data format, or -1 to just read the current format. |
Exit | |
---|---|
- | Returns previous format. |
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.
Reads or modifies the data format:
Bit | Meaning |
---|---|
0-1 | Bits per word: |
0 => 5 | |
1 => 6 | |
2 => 7 | |
3 => 8 | |
2 | Stop length: |
0 => 1 | |
1 => 2 (1.5 if 5 bits) | |
3 | Parity enabled |
4-5 | Parity: |
0 => Odd (or disabled) | |
1 => Even | |
2 => Mark (parity bit = 1) | |
3 => Space (parity bit = 0) |