tsUartOpt
The options are specified by SERIAL_vInitEx()
. This structure does not need to be statically allocated memory.
In principle, these options are not supported. When using them, please check the output signals with an oscilloscope or similar. The following communication settings are supported as standard.
No hard flow
Parity: none
Stop bit: 1bit
Data: 8bit
The structure must be cleared to 0 before use.
bool_t
bHwFlowEnabled
TRUE
: Hardware flow enabled FALSE
: Disabled
bool_t
bParityEnabled
TRUE
: Parity enabled FALSE
: Disabled
uint8
u8ParityType
E_AHI_UART_EVEN_PARITY
: even E_AHI_UART_ODD_PARITY
: odd (no need to set value if parity is disabled)
uint8
u8StopBit
E_AHI_UART_1_STOP_BIT
: 1bit, E_AHI_UART_2_STOP_BIT
: 1.5/2bit
uint8
u8WordLen
7
: 7bit, 8
: 8bit
Sample code
最終更新