Tizen Native API  9.0
Peripheral IO

The Peripheral IO API provides functions to make use of peripherals connected to the IoT device.

The Peripheral IO API provides access to the low level device providers, including GPIO, I2C, PWM, ADC, UART and SPI.

Required Header

#include <peripheral_io.h>

Overview

This Peripheral IO API provides access to the low level device providers, including GPIO, I2C, PWM, ADC, UART and SPI.


Enumeration Type Documentation

Enumeration for error codes returned by the peripheral-io API.

Most peripheral-io API functions can return one of these codes to specify an error.

Since :
4.0
Enumerator:
PERIPHERAL_ERROR_NONE 

Successful

PERIPHERAL_ERROR_IO_ERROR 

I/O error

PERIPHERAL_ERROR_NO_DEVICE 

No such device

PERIPHERAL_ERROR_TRY_AGAIN 

Try again

PERIPHERAL_ERROR_OUT_OF_MEMORY 

Out of memory

PERIPHERAL_ERROR_PERMISSION_DENIED 

Permission denied

PERIPHERAL_ERROR_RESOURCE_BUSY 

Device or resource busy

PERIPHERAL_ERROR_INVALID_PARAMETER 

Invalid parameter

PERIPHERAL_ERROR_NOT_SUPPORTED 

Not supported

PERIPHERAL_ERROR_UNKNOWN 

Unknown error