|
int32_t | dac_demo_init (struct dac_demo_desc **desc, struct dac_demo_init_param *param) |
| init function for the dac demo driver More...
|
|
int32_t | dac_demo_remove (struct dac_demo_desc *desc) |
| free allocated resources More...
|
|
int32_t | update_dac_channels (void *dev, int32_t mask) |
| update number of active channels More...
|
|
int32_t | close_dac_channels (void *dev) |
| close all channels More...
|
|
int32_t | dac_submit_samples (struct iio_device_data *dev_data) |
| function for writing samples to the device. More...
|
|
int | get_dac_demo_attr (void *device, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv) |
| get attributes for dac. More...
|
|
int | set_dac_demo_attr (void *device, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv) |
| set attributes for dac. More...
|
|
int32_t | dac_demo_reg_read (struct dac_demo_desc *desc, uint8_t reg_index, uint8_t *readval) |
| read function for the dac demo driver More...
|
|
int32_t | dac_demo_reg_write (struct dac_demo_desc *desc, uint8_t reg_index, uint8_t writeval) |
| write function for the dac demo driver More...
|
|
int32_t | dac_demo_trigger_handler (struct iio_device_data *dev_data) |
| Handles trigger: reads one data-set from iio buffer and writes it to the dac buffer. More...
|
|
Header file of DAC Demo Driver.
- Author
- RNechita (ramon.nosp@m.a.ne.nosp@m.chita.nosp@m.@ana.nosp@m.log.c.nosp@m.om)
Copyright 2021(c) Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.