dac_sync_write

DAC converts digital data to analog output.

int32_t dac_sync_write(
    struct dac_sync_descriptor *const descr,
    const uint8_t ch,
    uint16_t * buffer,
    uint32_t length
)

Parameters

descr

Type: struct dac_sync_descriptor Struct *const

Pointer to the HAL DAC descriptor

ch

Type: const uint8_t

the Channel selected to output

buffer

Type: uint16_t *

Pointer to digital data or buffer

length

Type: uint32_t

The number of elements in the buffer

Returns

Type: int32_t

Operation status.