6.6.4.5.2 Function dac_chan_write_job()

Convert one digital data job.

enum status_code dac_chan_write_job( struct dac_module *const module_inst, const enum dac_channel channel, uint16_t data)

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

[in]

module_inst

Pointer to the DAC software device struct

[in]

channel

DAC channel to write to

[in]

data

Digital data to be converted

Returns

Status of the operation.

Table 6-27. Return Values
Return valueDescription

STATUS_OK

If the data was written

STATUS_ERR_UNSUPPORTED_DEV

If a callback that requires event driven mode was specified with a DAC instance configured in non-event mode

STATUS_BUSY

The DAC is busy and can not accept a new job