dac_os_init

Initialize the DAC HAL instance and hardware.

int32_t dac_os_init(
    struct dac_os_descriptor *const descr,
    void *const hw
)

Parameters

descr

Type: struct dac_os_descriptor Struct *const

A DAC descriptor to initialize

hw

Type: void *const

The pointer to hardware instance

Returns

Type: int32_t

Operation status.

<0

The passed parameters were invalid or a DAC is already initialized

ERR_NONE

The initialization has completed successfully