Hardware Abstraction Layer for FreeRTOS
adc.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include <system.h>
#include <FreeRTOS.h>
#include <semphr.h>
#include <hal.h>
Include dependency graph for adc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  adc_generic
 

Functions

struct adc * adc_init (uint32_t index, uint8_t bits, uint32_t hz)
 
int32_t adc_deinit (struct adc *adc)
 
int32_t adc_get (struct adc *adc, TickType_t waittime)
 
int32_t adc_getISR (struct adc *adc)
 
int32_t adc_setCallback (struct adc *adc, bool(*callback)(struct adc *adc, uint32_t channel, int32_t value, void *data), void *data)
 
int32_t adc_start (struct adc *adc)
 
int32_t adc_stop (struct adc *adc)