Zephyr Project API 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
dac_emul.h File Reference

Backend API for emulated DAC. More...

#include <zephyr/device.h>
#include <stdint.h>

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.

Detailed Description

Backend API for emulated DAC.

Function Documentation

◆ dac_emul_value_get()

int dac_emul_value_get ( const struct device * dev,
uint8_t channel,
uint32_t * value )

Read a previously written value from the driver instance.

The channel must have been previously configured.

Parameters
devThe dac emulator device
channelThe channel number to read
valueThe current channel value
Return values
0Success
-EINVALInvalid channel or NULL pointer
-ENXIOChannel not configured
-EBUSYCould not acquire channel lock