Serial communication information is composed of a union, and is composed of a structure for serial communication setting information and serial communication data information.
|
BYTE# |
Field Name |
Data Type |
Value |
Remarks |
|---|---|---|---|---|
|
0 |
Command |
uchar |
- |
0 : Open 1 : Close 2 : Send 3 : Recv |
|
1 |
Serial communication informatino |
- |
- |
Serial communication information |
Union for serial communication information is defined as follows.
|
BYTE# |
Field Name |
Data Type |
Value |
Remarks |
|---|---|---|---|---|
|
0 |
Serial communication setting information |
- |
- |
10bytes structure |
|
Serial communication data information |
- |
- |
34bytes structure |
Serial communication setting information is defined as follows.
|
BYTE# |
Field Name |
Data Type |
Value |
Remarks |
|---|---|---|---|---|
|
0 |
Baudrate |
uchar |
- |
7bytes baudrate value |
|
7 |
Datasize |
uchar |
- |
Byte Size |
|
8 |
Parity |
uchar |
- |
Parity Check |
|
9 |
Stop bits |
uchar |
- |
Stop bits |
Serial communication data information is defined as follows
|
BYTE# |
Field Name |
Data Type |
Value |
Remarks |
|---|---|---|---|---|
|
0 |
Data length |
ushort |
- |
RX_DATA length |
|
2 |
RX_DATA |
|
|
32bytes data value |