6.6.4.3.1 Function dac_chan_write()

Write to the DAC.

enum status_code dac_chan_write( struct dac_module *const dev_inst, enum dac_channel channel, const uint16_t data)

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

[in]

module_inst

Pointer to the DAC software device struct

[in]

channel

DAC channel to write to

[in]

data

Conversion data

Returns

Status of the operation.

Table 6-18. Return Values
Return valueDescription

STATUS_OK

If the data was written