Lines Matching +full:dac +full:- +full:resolution
4 * SPDX-License-Identifier: Apache-2.0
9 * @brief DAC public API header file.
22 * @brief DAC driver APIs
23 * @defgroup dac_interface DAC driver APIs
29 * @brief Structure for specifying the configuration of a DAC channel.
32 /** Channel identifier of the DAC that should be configured. */
34 /** Desired resolution of the DAC (depends on device capabilities). */
35 uint8_t resolution; member
50 * Type definition of DAC API function for configuring a channel.
57 * Type definition of DAC API function for setting a write request.
64 * DAC driver API
66 * This is the mandatory API any DAC driver needs to expose.
78 * @brief Configure a DAC channel.
87 * @retval -EINVAL If a parameter with an invalid value has been provided.
88 * @retval -ENOTSUP If the requested resolution is not supported.
97 (const struct dac_driver_api *)dev->api; in z_impl_dac_channel_setup()
99 return api->channel_setup(dev, channel_cfg); in z_impl_dac_channel_setup()
103 * @brief Write a single value to a DAC channel
107 * @param value Data to be written to DAC output registers.
110 * @retval -EINVAL If a parameter with an invalid value has been provided.
119 (const struct dac_driver_api *)dev->api; in z_impl_dac_write_value()
121 return api->write_value(dev, channel, value); in z_impl_dac_write_value()
132 #include <syscalls/dac.h>