PEController BSP v4
Board Support Package for PEController from Taraz Technologies
 
Loading...
Searching...
No Matches
Functions

Functions

void BSP_MAX11046_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 MAX11046 drivers.
 
adc_measures_tBSP_MAX11046_Run (void)
 Starts the ADC conversion.
 
void BSP_MAX11046_Stop (void)
 Stops the ADC data collection module, only effective for ADC_MODE_CONT.
 
void BSP_MAX11046_DeInit (void)
 De-initialize the MAX11046 drivers.
 
timer_trigger_src_t BSP_MAX11046_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.
 

Detailed Description

Function Documentation

◆ BSP_MAX11046_Init()

void BSP_MAX11046_Init ( adc_acq_mode_t  type,
adc_cont_config_t contConfig,
volatile adc_raw_data_t rawAdcData,
volatile adc_processed_data_t processedAdcData 
)
extern
Parameters
typeADC_MODE_SINGLE or ADC_MODE_CONT for single or continuous conversions respectively
contConfigadc_cont_config_t contains the continuous transfer configuration
rawAdcDataPointer to the raw ADC data container
processedAdcDataPointer to the processed ADC data container

◆ BSP_MAX11046_Run()

adc_measures_t * BSP_MAX11046_Run ( void  )
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

Returns
adc_measures_t_t* For single conversion mode returns the pointer to the acquired values. Returns NULL for continuous conversion mode

◆ BSP_MAX11046_SetInputOutputTrigger()

timer_trigger_src_t BSP_MAX11046_SetInputOutputTrigger ( tim_in_trigger_config_t _slaveConfig,
tim_out_trigger_config_t _masterConfig,
float  _fs 
)
extern
Note
Currently only the TIM_TRGI_TYPE_RST, TIM_TRGI_TYPE_START and TIM_TRGI_TYPE_RESET_AND_START functionalities are available for this timer synchronization. Delays can't be added in master or slave mode triggering through OC1. –TODO– Add list of possible timers for triggering in different modes.
Parameters
_slaveConfigConfiguration for the slave. Send NULL if no slave functionality needed.
_masterConfigConfiguration for the master. Send NULL if no master functionality needed.
_fsRequired sampling frequency of the ADC converter
Returns
timer_trigger_src_t Trigger source if configuration required as master else returns NULL.