6.6.4.5.1 Function dac_chan_write_buffer_job()

Convert a specific number digital data to analog through DAC.

enum status_code dac_chan_write_buffer_job( struct dac_module *const module_inst, const enum dac_channel channel, uint16_t * buffer, uint32_t buffer_size)

Note: To be event triggered, the enable_start_on_event must be enabled in the configuration.
Table 6-24. 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

Size of the write buffer

Returns

Status of the operation.

Table 6-25. 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