adc_sync_init

Initialize ADC.

int32_t adc_sync_init(
    struct adc_sync_descriptor *const descr,
    void *const hw,
    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.

Parameters

descr

Type: struct adc_sync_descriptor Struct *const

An ADC descriptor to initialize

hw

Type: void *const

The pointer to hardware instance

func

Type: void *const

The pointer to a set of functions pointers

Returns

Type: int32_t

Initialization status.