Initialize ADC.
int32_t adc_async_init( struct adc_async_descriptor *const descr, void *const hw, uint8_t * channel_map, uint8_t channel_max, uint8_t channel_amount, struct adc_async_channel_descriptor *const descr_ch, void *const func )
This function initializes the given ADC descriptor. It checks if the given hardware is not initialized and if the given hardware is permitted to be initialized.
Type: struct adc_async_descriptor Struct *const
An ADC descriptor to initialize
Type: void *const
The pointer to hardware instance
Type: uint8_t *
The pointer to ADC channel mapping
Type: uint8_t
ADC enabled maximum channel number
Type: uint8_t
ADC enabled channel amount
Type: struct adc_async_channel_descriptor Struct *const
A buffer to keep all channel descriptor
Type: void *const
The pointer to as set of functions pointers
Type: int32_t
Initialization status.
Passed parameters were invalid or an ADC is already initialized
The initialization is completed successfully