Tizen RT Public API  v1.1 D4
iotbus_gpio.h File Reference

Iotbus APIs for GPIO. More...

Go to the source code of this file.

Typedefs

typedef struct _iotbus_gpio_s * iotbus_gpio_context_h
 Pointer definition to the internal struct iotbus_gpio_s. More...
 

Enumerations

enum  iotbus_gpio_drive_e
 Enumeration of Gpio output mode. More...
 
enum  iotbus_gpio_direction_e
 Enumeration of Gpio direction options. More...
 
enum  iotbus_gpio_edge_e
 Enumeration of Gpio edge type for interrupt. More...
 

Functions

iotbus_gpio_context_h iotbus_gpio_open (int gpiopin)
 initializes gpio_context based on gpio pin. More...
 
int iotbus_gpio_close (iotbus_gpio_context_h dev)
 closes the gpio_context. More...
 
int iotbus_gpio_set_direction (iotbus_gpio_context_h dev, iotbus_gpio_direction_e dir)
 sets gpio direction. More...
 
int iotbus_gpio_set_edge_mode (iotbus_gpio_context_h dev, iotbus_gpio_edge_e edge)
 sets the edge mode on the gpio. More...
 
int iotbus_gpio_set_drive_mode (iotbus_gpio_context_h dev, iotbus_gpio_drive_e drive)
 sets gpio output mode. More...
 
int iotbus_gpio_register_cb (iotbus_gpio_context_h dev, iotbus_gpio_edge_e edge, gpio_isr_cb isr_cb, void *user_data)
 registers event handler callback for interrupt. More...
 
int iotbus_gpio_unregister_cb (iotbus_gpio_context_h dev)
 unregisters event handler callback for interrupt. More...
 
int iotbus_gpio_read (iotbus_gpio_context_h dev)
 reads the gpio value. More...
 
int iotbus_gpio_write (iotbus_gpio_context_h dev, int value)
 writes to the gpio value. More...
 
int iotbus_gpio_get_direction (iotbus_gpio_context_h dev, iotbus_gpio_direction_e *dir)
 gets a direction of the gpio. More...
 
int iotbus_gpio_get_pin (iotbus_gpio_context_h dev)
 gets a pin number of the gpio. More...
 
int iotbus_gpio_get_edge_mode (iotbus_gpio_context_h dev, iotbus_gpio_edge_e *edge)
 gets a edge mode of the gpio. More...
 
int iotbus_gpio_get_drive_mode (iotbus_gpio_context_h dev, iotbus_gpio_drive_e *drive)
 gets a drive mode of the gpio. More...
 

Detailed Description

Iotbus APIs for GPIO.

Definition in file iotbus_gpio.h.