UART_SETTINGS Structure
typedef struct _UART_SETTINGS{
unsigned short Baudrate;
unsigned short spbrg;
unsigned short brgh;
unsigned short parity;
unsigned short stop_bits;
unsigned char flow_control; // 0- off, 1 - Simple CTS RTS,
unsigned char reserved_1;
unsigned int bOptions; //AND to combind these values invert_tx = 1 invert_rx = 2 half_duplex = 4
} UART_SETTINGS;<StructLayout(LayoutKind.Sequential, Pack:=2)> Public Structure UART_SETTINGS
Dim Baudrate As UInt16
Dim spbrg As UInt16
Dim brgh As UInt16
Dim parity As UInt16
Dim stop_bits As UInt16
Dim flow_control As Byte '// 0- off, 1 - Simple CTS RTS,
Dim reserved_1 As Byte
Dim bOptions As UInt32 '//AND to combind these values invert_tx = 1 invert_rx = 2 half_duplex = 4
End Structure[StructLayout(LayoutKind.Sequential,Pack=2)]
public struct UART_SETTINGS
{
public UInt16 Baudrate; If
public UInt16 spbrg;
public UInt16 brgh;
public UInt16 parity;
public UInt16 stop_bits;
public byte flow_control; // 0- off, 1 - Simple CTS RTS,
public byte reserved_1;
public UInt32 bOptions; //AND to combind these values invert_tx = 1 invert_rx = 2 half_duplex = 4
}Item
Description
Last updated