6.6.4.3.2 Function dac_chan_write_buffer_wait()
Write to the DAC.
enum status_code dac_chan_write_buffer_wait( struct dac_module *const module_inst, enum dac_channel channel, uint16_t * buffer, uint32_t length)
Data direction | Parameter name | Description |
---|---|---|
[in] |
module_inst |
Pointer to the DAC software device struct |
[in] |
channel |
DAC channel to write to |
[in] |
buffer |
Pointer to the digital data write buffer to be converted |
[in] |
length |
Length of the write buffer |
Returns
Status of the operation.
Return value | Description |
---|---|
STATUS_OK |
If the data was written or no data conversion required |
STATUS_ERR_UNSUPPORTED_DEV |
The DAC is not configured as using event trigger |
STATUS_BUSY |
The DAC is busy and can not do the conversion |