|
int32_t | adpd410x_reg_read (struct adpd410x_dev *dev, uint16_t address, uint16_t *data) |
| Read device register. More...
|
|
int32_t | adpd410x_reg_read_bytes (struct adpd410x_dev *dev, uint16_t address, uint8_t *data, uint16_t num_bytes) |
| Read a specified number of bytes from device register. More...
|
|
int32_t | adpd410x_reg_write (struct adpd410x_dev *dev, uint16_t address, uint16_t data) |
| Write device register. More...
|
|
int32_t | adpd410x_reg_write_mask (struct adpd410x_dev *dev, uint16_t address, uint16_t data, uint16_t mask) |
| Do a read and write of a register to update only part of a register. More...
|
|
int32_t | adpd410x_reset (struct adpd410x_dev *dev) |
| Do a software reset. More...
|
|
int32_t | adpd410x_set_opmode (struct adpd410x_dev *dev, enum adpd410x_opmode mode) |
| Set operation mode. More...
|
|
int32_t | adpd410x_get_opmode (struct adpd410x_dev *dev, enum adpd410x_opmode *mode) |
| Get operation mode. More...
|
|
int32_t | adpd410x_set_last_timeslot (struct adpd410x_dev *dev, enum adpd410x_timeslots timeslot_no) |
| Set number of active time slots. More...
|
|
int32_t | adpd410x_get_last_timeslot (struct adpd410x_dev *dev, enum adpd410x_timeslots *timeslot_no) |
| Get number of active time slots. More...
|
|
int32_t | adpd410x_set_sampling_freq (struct adpd410x_dev *dev, uint32_t sampling_freq) |
| Set device sampling frequency. More...
|
|
int32_t | adpd410x_get_sampling_freq (struct adpd410x_dev *dev, uint32_t *sampling_freq) |
| Get device sampling frequency. More...
|
|
int32_t | adpd410x_timeslot_setup (struct adpd410x_dev *dev, enum adpd410x_timeslots timeslot_no, struct adpd410x_timeslot_init *init) |
| Setup an active time slot. More...
|
|
int32_t | adpd410x_get_fifo_bytecount (struct adpd410x_dev *dev, uint16_t *bytes) |
| Get number of bytes in the device FIFO. More...
|
|
int32_t | adpd410x_read_fifo (struct adpd410x_dev *dev, uint32_t *data, uint16_t num_samples, uint8_t datawidth) |
| Reads a certain number of bytes from the fifo and stores in data Used to read a large amount of data from the fifo efficiently (using as few register reads as possible.) More...
|
|
int32_t | adpd410x_get_data (struct adpd410x_dev *dev, uint32_t *data) |
| Get a full data packet from the device containing data from all active time slots. More...
|
|
int32_t | adpd410x_setup (struct adpd410x_dev **device, struct adpd410x_init_param *init_param) |
| Setup the device and the driver. More...
|
|
int32_t | adpd410x_remove (struct adpd410x_dev *dev) |
| Free memory allocated by adpd410x_setup(). More...
|
|
- Author
- Andrei Drimbarean (andre.nosp@m.i.dr.nosp@m.imbar.nosp@m.ean@.nosp@m.analo.nosp@m.g.co.nosp@m.m)
Copyright 2020(c) Analog Devices, Inc.
All rights reserved.
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.
- The use of this software may or may not infringe the patent rights of one or more patent holders. This license does not release you from the requirement that you obtain separate licenses from these patent holders to use this software.
- Use of the software either in source or binary form, must be run on or directly connected to an Analog Devices Inc. component.
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, 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.