Azure Sphere MT3620 M4 API Reference Manual
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Function

OS-HAL ADC function list information, including ADC hardware initializing and de-initializing, enabling and disabling ADC hardware output, gets ADC sample data using one shot mode. More...

Overview

OS-HAL ADC function list information, including ADC hardware initializing and de-initializing, enabling and disabling ADC hardware output, gets ADC sample data using one shot mode.

Functions

int mtk_os_hal_adc_ctlr_init (void)
 Init ADC controller. More...
 
int mtk_os_hal_adc_ctlr_deinit (void)
 Deinit ADC controller. More...
 
int mtk_os_hal_adc_fsm_param_set (struct adc_fsm_param *adc_fsm_parameter)
 Configure ADC controller parameters. More...
 
int mtk_os_hal_adc_trigger_one_shot_once (void)
 Start predefined channels to sample data with one shot mode. More...
 
int mtk_os_hal_adc_period_start (void)
 Start predefined channels to sample datas with period mode. More...
 
int mtk_os_hal_adc_period_stop (void)
 Stop predefined channels to sample datas with period mode. More...
 

Function Documentation

int mtk_os_hal_adc_ctlr_init ( void  )

Init ADC controller.

Parameters
none.
Returns
If return value is 0, it means success.
If return value is -ADC_EPTR , it means ctlr is NULL.
If return value is -ADC_EPARAMETER , it means parameter invalid.
int mtk_os_hal_adc_ctlr_deinit ( void  )

Deinit ADC controller.

Parameters
none.
Returns
If return value is 0, it means success.
If return value is -ADC_EPTR , it means ctlr is NULL.
If return value is -ADC_EPARAMETER , it means parameter invalid.
int mtk_os_hal_adc_fsm_param_set ( struct adc_fsm_param adc_fsm_parameter)

Configure ADC controller parameters.

Parameters
[in]adc_fsm_parameter: ADC parameter information.
Returns
If return value is 0, it means success.
If return value is -ADC_EPTR , it means ctlr is NULL.
If return value is -ADC_EPARAMETER , it means parameter invalid.
int mtk_os_hal_adc_trigger_one_shot_once ( void  )

Start predefined channels to sample data with one shot mode.


Once the function is called, ADC will be triggered once, and users can
call this api multiple times to obtain data.

Parameters
none.
Returns
If return value is 0, it means success.
If return value is -ADC_EPTR , it means ctlr is NULL.
If return value is -ADC_EPARAMETER , it means parameter invalid.
int mtk_os_hal_adc_period_start ( void  )

Start predefined channels to sample datas with period mode.

Parameters
none.
Returns
If return value is 0, it means success.
If return value is -ADC_EPTR , it means ctlr is NULL.
If return value is -ADC_EPARAMETER , it means parameter invalid.
int mtk_os_hal_adc_period_stop ( void  )

Stop predefined channels to sample datas with period mode.

Parameters
none.
Returns
If return value is 0, it means success.
If return value is -ADC_EPTR , it means ctlr is NULL.
If return value is -ADC_EPARAMETER , it means parameter invalid.