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