Functions | |
void | BSP_ADC_SetDefaultParams (adc_processed_data_t *_processedAdcData, adc_raw_data_t *_rawAdcData) |
Set default parameters for the ADC. | |
void | BSP_ADC_RefreshData (void) |
Updates the data parameters and data sharing items. | |
void | BSP_ADC_Init (adc_acq_mode_t _type, adc_cont_config_t *_contConfig, volatile adc_raw_data_t *_rawAdcData, volatile adc_processed_data_t *_processedAdcData) |
Initializes the ADC drivers. | |
adc_measures_t * | BSP_ADC_Run (void) |
Starts the ADC conversion. | |
void | BSP_ADC_Stop (void) |
Stops the ADC conversions. | |
void | BSP_ADC_DeInit (void) |
De-initialize the ADC drivers. | |
timer_trigger_src_t | BSP_ADC_SetInputOutputTrigger (tim_in_trigger_config_t *_slaveConfig, tim_out_trigger_config_t *_masterConfig, float _fs) |
Sets the input and output trigger functions for the ADC. | |
device_err_t | BSP_ADC_UpdateConfig (adc_info_t *_info, float _fs, int _channelIndex, float _freq, float _sensitivity, float _offset, data_units_t _unit) |
Update the configurations for the ADC. | |
void | BSP_ADC_ComputeStatsInBulk (adc_processed_data_t *_processedAdcData, float _fs) |
Call this function periodically to compute the statistics of the signals. | |
void | BSP_ADC_ConfigStorage (state_storage_client_t *_config) |
Configures the storage client information. | |
|
extern |
_processedAdcData | Pointer to the processed data structure. |
_fs | Sampling frequency of the ADC. |
|
extern |
_config | Pointer to the relevant configuration to be filled. |
|
extern |
_type | ADC_MODE_SINGLE or ADC_MODE_CONT for single or continuous conversions respectively |
_contConfig | adc_cont_config_t contains the continuous transfer configuration |
_rawAdcData | Pointer to the raw ADC data container |
_processedAdcData | Pointer to the processed ADC data container |
|
extern |
|
extern |
For single conversion mode performs and provides the results in a blocking way. For continuous conversion mode starts the conversions, after each conversion adc_cont_config_t.callback will be called
|
extern |
_processedAdcData | Pointer to the processed ADC data container |
_rawAdcData | Pointer to the raw ADC data container |
|
extern |
_slaveConfig | Configuration for the slave. Send NULL if no slave functionality needed. |
_masterConfig | Configuration for the master. Send NULL if no master functionality needed. |
_fs | Required sampling frequency of the ADC converter |
|
extern |
_info | ADC information |
_fs | ADC sampling frequency |
_channelIndex | ADC channel index |
_freq | Desired frequency |
_sensitivity | Desired sensitivity |
_offset | Desired offset |
_unit | Desired unit |
ERR_OK
if setting successful else device_err_t.