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)

Note: To be event triggered, the enable_start_on_event must be enabled in the configuration.
Table 6-19. Parameters
Data directionParameter nameDescription

[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.

Table 6-20. Return Values
Return valueDescription

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