Add Tizen.Peripheral API (#1939)
[platform/core/csapi/tizenfx.git] / internals / src / Tizen.Peripheral / Interop / Uart.Enum.cs
1 /*
2 * Copyright (c) 2020 Samsung Electronics Co., Ltd All Rights Reserved
3 *
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 internal static partial class Interop
18 {
19     internal static partial class Peripheral
20     {
21         internal static partial class Uart
22         {
23             public enum BaudRate
24             {
25                 Rate0 = 0,
26                 Rate50,
27                 Rate75,
28                 Rate110,
29                 Rate134,
30                 Rate150,
31                 Rate200,
32                 Rate300,
33                 Rate600,
34                 Rate1200,
35                 Rate1800,
36                 Rate2400,
37                 Rate4800,
38                 Rate9600,
39                 Rate19200,
40                 Rate38400,
41                 Rate57600,
42                 Rate115200,
43                 Rate230400
44             }
45
46             public enum ByteSize
47             {
48                 Size5Bit = 0,
49                 Size6Bit,
50                 Size7Bit,
51                 Size8Bit
52             }
53
54             public enum Parity
55             {
56                 None = 0,
57                 Even,
58                 Odd
59             }
60
61             public enum StopBits
62             {
63                 Bits1Bit = 0,
64                 Bits2Bit
65             }
66
67             public enum HardwareFlowControl
68             {
69                 None = 0,
70                 AutoRtscts
71             }
72
73             public enum SoftwareFlowControl
74             {
75                 None = 0,
76                 XonXoff,
77             }
78         }
79     }
80 }