Initialize ADC.
int32_t adc_os_init( struct adc_os_descriptor *const descr, void *const hw, uint8_t * channel_map, uint8_t channel_max, uint8_t channel_amount, struct adc_os_channel_descriptor *const descr_ch )
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_os_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_os_channel_descriptor Struct *const
A buffer to keep all channel descriptor
Type: int32_t
Initialization status.
Passed parameters were invalid or an ADC is already initialized
The initialization is completed successfully