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.
| Data direction | Parameter name | Description |
|---|---|---|
|
[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.
| Return value | Description |
|---|---|
|
STATUS_OK |
If the data was written |
