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)
Data direction | Parameter name | Description |
---|---|---|
[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.
Return value | Description |
---|---|
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 |