-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25b9e42
commit 172449d
Showing
4 changed files
with
94 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#ifndef REACTOR_UC_UART_CHANNEL_H | ||
#define REACTOR_UC_UART_CHANNEL_H | ||
|
||
typedef enum UARTDataBits UARTDataBits; | ||
typedef enum UARTParityBits UARTParityBits; | ||
typedef enum UARTStopBits UARTStopBits; | ||
|
||
enum UARTDataBits { UC_UART_DATA_BITS_5, UC_UART_DATA_BITS_6, UC_UART_DATA_BITS_7, UC_UART_DATA_BITS_8 }; | ||
|
||
enum UARTParityBits { | ||
UC_UART_PARITY_NONE, | ||
UC_UART_PARITY_EVEN, | ||
UC_UART_PARITY_ODD, | ||
UC_UART_PARITY_MARK, | ||
UC_UART_PARITY_SPACE | ||
}; | ||
|
||
enum UARTStopBits { UC_UART_STOP_BITS_1, UC_UART_STOP_BITS_2 }; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters