AGHAF  4.5.6
Annecy electronique Generic Hardware Access Framework
aghaf_adc.h File Reference
#include <ghap/aghaf_adc_enums.h>
#include "aghaf_global.h"
Include dependency graph for aghaf_adc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

typedef void * AGHAF_ADC
 handle on a ADC
 
AGHAF_Status AGHAF_ADC_activate (AGHAF_ADC adc)
 start the communication with the ADC More...
 
AGHAF_Status AGHAF_ADC_deactivate (AGHAF_ADC adc)
 stop the communication with the ADC More...
 
AGHAF_ADC AGHAF_ADC_get (AGHAF_Device device, uint8_t index)
 return the KLine bus at the index specified More...
 
uint8_t AGHAF_ADC_getCount (AGHAF_Device device)
 return the number of Adcs available on a device More...
 
uint8_t AGHAF_ADC_getIndex (AGHAF_ADC adc)
 return the index from an ADC More...
 
AGHAF_Status AGHAF_ADC_getLastConversion (AGHAF_ADC adc, int32_t *value, AGHAF_ADC_TriggerState *triggerState)
 Return the current state from the ADC trigger. More...
 
AGHAF_Status AGHAF_ADC_getParam (AGHAF_ADC adc, AGHAF_ADC_Param param, uint32_t *value)
 get a parameter from a ADC More...
 
AGHAF_Status AGHAF_ADC_isActivated (AGHAF_ADC adc, AGHAF_BOOL *isActivated)
 allow to know if the communication on the ADC is started or not More...
 
typedef void(* AGHAF_ADC_onConversion) (uint64_t timestamp, int32_t value, AGHAF_ADC_TriggerState state, void *userContext)
 callback called on a ADC event More...
 
void AGHAF_ADC_setOnConversionCallback (AGHAF_ADC adc, AGHAF_ADC_onConversion callback, void *userContext)
 Set the callback called on a ADC event. More...
 
AGHAF_Status AGHAF_ADC_setParam (AGHAF_ADC adc, AGHAF_ADC_Param param, uint32_t value)
 set a parameter from a ADC More...