Soletta™ Framework
|
These routines are used for analog I/O access (reading from analog-to-digital converters) under Soletta. More...
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Typedefs | |
typedef struct sol_aio | sol_aio |
AIO handle structure. More... | |
typedef struct sol_aio_pending | sol_aio_pending |
AIO pending operation handle structure. More... | |
Functions | |
void | sol_aio_close (struct sol_aio *aio) |
Close the given AIO handle. More... | |
struct sol_aio_pending * | sol_aio_get_value (struct sol_aio *aio, void(*read_cb)(void *cb_data, struct sol_aio *aio, int32_t ret), const void *cb_data) |
Request an (asynchronous) read operation to take place on AIO handle aio. More... | |
struct sol_aio * | sol_aio_open (int device, int pin, unsigned int precision) |
Open the given Analog I/O pin on device to be used. More... | |
struct sol_aio * | sol_aio_open_by_label (const char *label, unsigned int precision) |
Open the given board pin by its label to be used as Analog I/O. More... | |
struct sol_aio * | sol_aio_open_raw (int device, int pin, unsigned int precision) |
Open the given Analog I/O pin on device to be used. More... | |
void | sol_aio_pending_cancel (struct sol_aio *aio, struct sol_aio_pending *pending) |
Cancel a pending operation. More... | |
These routines are used for analog I/O access (reading from analog-to-digital converters) under Soletta.