13.1.4.6 dac_async_write
DAC converts digital data to analog output.
int32_t dac_async_write(
struct dac_async_descriptor *const descr,
const uint8_t ch,
uint16_t * buffer,
uint32_t length
)
Parameters
- descr
-
Type: struct dac_async_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 buffer
Returns
Type: int32_t
Operation status.