|
Zephyr Project API 4.3.99
A Scalable Open Source RTOS
|
Backend API for emulated DAC. More...
Go to the source code of this file.
Functions | |
| int | dac_emul_value_get (const struct device *dev, uint8_t channel, uint32_t *value) |
| Read a previously written value from the driver instance. | |
Backend API for emulated DAC.
Read a previously written value from the driver instance.
The channel must have been previously configured.
| dev | The dac emulator device |
| channel | The channel number to read |
| value | The current channel value |
| 0 | Success |
| -EINVAL | Invalid channel or NULL pointer |
| -ENXIO | Channel not configured |
| -EBUSY | Could not acquire channel lock |