TizenRT Public API  v2.0 M2
iotbus_adc.h File Reference

Iotbus APIs for ADC. More...

#include <stdint.h>
#include <sys/types.h>
Include dependency graph for iotbus_adc.h:

Go to the source code of this file.

Typedefs

typedef struct _iotbus_adc_wrapper_s * iotbus_adc_context_h
 Pointer definition to the internal struct _iotbus_adc_wrapper_s. More...
 

Enumerations

Functions

iotbus_adc_context_h iotbus_adc_init (int bus, uint8_t channel)
 initializes adc_context. More...
 
int iotbus_adc_deinit (iotbus_adc_context_h hnd)
 deinitializes adc_context. More...
 
int iotbus_adc_set_channel (iotbus_adc_context_h hnd, uint8_t channel)
 set the ADC channel. More...
 
int iotbus_adc_get_channel (iotbus_adc_context_h hnd)
 get the ADC channel. More...
 
int iotbus_adc_get_state (iotbus_adc_context_h hnd)
 get the ADC state. More...
 
int iotbus_adc_start (iotbus_adc_context_h hnd, const adc_read_cb read_cb)
 start adc asynchronous read. More...
 
int iotbus_adc_stop (iotbus_adc_context_h hnd)
 stop adc asynchronous read. More...
 
int32_t iotbus_adc_get_sample (iotbus_adc_context_h hnd, int timeout)
 adc synchronous read. More...
 

Detailed Description

Iotbus APIs for ADC.

Definition in file iotbus_adc.h.