TizenRT Public API  v2.0 M2
iotbus_common.h
1 /****************************************************************************
2  *
3  * Copyright 2019 Samsung Electronics All Rights Reserved.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing,
12  * software distributed under the License is distributed on an
13  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
14  * either express or implied. See the License for the specific
15  * language governing permissions and limitations under the License.
16  *
17  ****************************************************************************/
18 #ifndef _IOTBUS_COMMON_H__
19 #define _IOTBUS_COMMON_H__
20 
21 typedef enum {
22  IOTBUS_UART_TX_EMPTY = 0,
23  IOTBUS_UART_TX_RDY,
24  IOTBUS_UART_RX_AVAIL,
25  IOTBUS_UART_RECEIVED,
26  IOTBUS_GPIO_FALLING,
27  IOTBUS_GPIO_RISING,
28  IOTBUS_INTR_MAX,
29 } iotbus_int_type_e;
30 
31 typedef enum {
32  IOTBUS_GPIO = 0,
33  IOTBUS_PWM,
34  IOTBUS_ADC,
35  IOTBUS_UART,
36  IOTBUS_I2C,
37  IOTBUS_SPI,
38 } iotbus_pin_e;
39 
40 #endif