no-OS
|
Internal include file used for specific chip IIO driver definitions which are not useful for the user. More...
Go to the source code of this file.
Classes | |
struct | adis_iio_scale_fractional |
ADIS IIO fractional scale format structure; scale = dividend/divisor. More... | |
struct | adis_iio_scale_fractional_log2 |
ADIS IIO fractional log2 scale format structure; scale = dividend/2^power. More... | |
struct | adis_iio_dev |
ADIS IIO device descriptor structure. More... | |
Macros | |
#define | ADIS_ACCEL_CHAN(mod, idx, adis_nb, attr) |
#define | ADIS_GYRO_CHAN(mod, idx, adis_nb, attr) |
#define | ADIS_DELTA_ANGL_CHAN(mod, idx, adis_nb, attr) |
#define | ADIS_DELTA_ANGL_CHAN_NO_SCAN(mod, idx, attr) |
#define | ADIS_DELTA_VEL_CHAN(mod, idx, adis_nb, attr) |
#define | ADIS_DELTA_VEL_CHAN_NO_SCAN(mod, idx, attr) |
#define | ADIS_TEMP_CHAN(idx, adis_nb, attr) |
Functions | |
int | adis_iio_pre_enable (void *dev, uint32_t mask) |
API to be called before trigger is enabled. More... | |
int | adis_iio_post_disable (void *dev, uint32_t mask) |
API to be called after trigger is disabled. More... | |
int | adis_iio_read_samples (void *dev, int *buff, uint32_t samples) |
int | adis_iio_trigger_handler (struct iio_device_data *dev_data) |
Handles trigger: reads one data-set and writes it to the buffer. More... | |
int | adis_iio_trigger_handler_with_fifo (struct iio_device_data *dev_data) |
Handles trigger: reads all available samples in FIFO and writes them to the buffer. More... | |
int | adis_iio_read_debug_attrs (void *dev, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv) |
Handles the read request for debug attributes. More... | |
int | adis_iio_write_debug_attrs (void *dev, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv) |
Handles the write request for debug attributes. More... | |
int | adis_iio_read_reg (struct adis_iio_dev *device, uint32_t reg, uint32_t *readval) |
Wrapper for reading adis register. More... | |
int | adis_iio_write_reg (struct adis_iio_dev *device, uint32_t reg, uint32_t writeval) |
Wrapper for writing to adis register. More... | |
int | adis_iio_read_raw (void *dev, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv) |
Handles the read request for raw attribute. More... | |
int | adis_iio_read_scale (void *dev, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv) |
Handles the read request for scale attribute. More... | |
int | adis_iio_read_offset (void *dev, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv) |
Handles the read request for offset attribute. More... | |
int | adis_iio_read_calibbias (void *dev, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv) |
Handles the read request for calibbias attribute. More... | |
int | adis_iio_write_calibbias (void *dev, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv) |
Handles the write request for calibbias attribute. More... | |
int | adis_iio_read_calibscale (void *dev, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv) |
Handles the read request for calibscale attribute. More... | |
int | adis_iio_write_calibscale (void *dev, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv) |
Handles the write request for calibscale attribute. More... | |
int | adis_iio_write_sampling_freq (void *dev, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv) |
Handles the write request for sampling frequency attribute. More... | |
int | adis_iio_read_sampling_freq (void *dev, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv) |
Handles the read request for sampling frequency attribute. More... | |
int | adis_iio_read_lpf (void *dev, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv) |
Handles the read request for lpf attribute. More... | |
int | adis_iio_write_lpf (void *dev, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv) |
Handles the write request for lpf attribute. More... | |
Variables | |
struct iio_attribute | adis_dev_attrs [] |
struct iio_attribute | adis_iio_anglvel_attrs [] |
struct iio_attribute | adis_iio_delta_angl_attrs [] |
struct iio_attribute | adis_iio_delta_vel_attrs [] |
struct iio_attribute | adis_iio_accel_attrs [] |
struct iio_attribute | adis_iio_temp_attrs [] |
struct iio_trigger | adis_iio_trig_desc |
Internal include file used for specific chip IIO driver definitions which are not useful for the user.
Copyright 2024(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:
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.
#define ADIS_ACCEL_CHAN | ( | mod, | |
idx, | |||
adis_nb, | |||
attr | |||
) |
#define ADIS_DELTA_ANGL_CHAN | ( | mod, | |
idx, | |||
adis_nb, | |||
attr | |||
) |
#define ADIS_DELTA_ANGL_CHAN_NO_SCAN | ( | mod, | |
idx, | |||
attr | |||
) |
#define ADIS_DELTA_VEL_CHAN | ( | mod, | |
idx, | |||
adis_nb, | |||
attr | |||
) |
#define ADIS_DELTA_VEL_CHAN_NO_SCAN | ( | mod, | |
idx, | |||
attr | |||
) |
#define ADIS_GYRO_CHAN | ( | mod, | |
idx, | |||
adis_nb, | |||
attr | |||
) |
#define ADIS_TEMP_CHAN | ( | idx, | |
adis_nb, | |||
attr | |||
) |
enum adis_iio_chan_type |
enum adis_iio_debug_attrs |
int adis_iio_post_disable | ( | void * | dev, |
uint32_t | mask | ||
) |
API to be called after trigger is disabled.
API to be called before trigger is disabled.
dev | - The iio device structure. |
mask | - The active channels mask. |
int adis_iio_pre_enable | ( | void * | dev, |
uint32_t | mask | ||
) |
API to be called before trigger is enabled.
API to be called before trigger is enabled.
dev | - The iio device structure. |
mask | - The active channels mask. |
int adis_iio_read_calibbias | ( | void * | dev, |
char * | buf, | ||
uint32_t | len, | ||
const struct iio_ch_info * | channel, | ||
intptr_t | priv | ||
) |
Handles the read request for calibbias attribute.
Handles the read request for calibbias attribute.
dev | - The iio device structure. |
buf | - Command buffer to be filled with requested data. |
len | - Length of the received command buffer in bytes. |
channel | - Command channel info. |
priv | - Command attribute id. |
int adis_iio_read_calibscale | ( | void * | dev, |
char * | buf, | ||
uint32_t | len, | ||
const struct iio_ch_info * | channel, | ||
intptr_t | priv | ||
) |
Handles the read request for calibscale attribute.
Handles the read request for calibscale attribute.
dev | - The iio device structure. |
buf | - Command buffer to be filled with requested data. |
len | - Length of the received command buffer in bytes. |
channel | - Command channel info. |
priv | - Command attribute id. |
int adis_iio_read_debug_attrs | ( | void * | dev, |
char * | buf, | ||
uint32_t | len, | ||
const struct iio_ch_info * | channel, | ||
intptr_t | priv | ||
) |
Handles the read request for debug attributes.
Callback for adis iio debug attributes reading.
dev | - The iio device structure. |
buf | - Command buffer to be filled with requested data. |
len | - Length of the received command buffer in bytes. |
channel | - Command channel info. |
priv | - Command attribute id. |
int adis_iio_read_lpf | ( | void * | dev, |
char * | buf, | ||
uint32_t | len, | ||
const struct iio_ch_info * | channel, | ||
intptr_t | priv | ||
) |
Handles the read request for lpf attribute.
Handles the read request for lpf attribute.
dev | - The iio device structure. |
buf | - Command buffer to be filled with requested data. |
len | - Length of the received command buffer in bytes. |
channel | - Command channel info. |
priv | - Command attribute id. |
int adis_iio_read_offset | ( | void * | dev, |
char * | buf, | ||
uint32_t | len, | ||
const struct iio_ch_info * | channel, | ||
intptr_t | priv | ||
) |
Handles the read request for offset attribute.
Handles the read request for offset attribute.
dev | - The iio device structure. |
buf | - Command buffer to be filled with requested data. |
len | - Length of the received command buffer in bytes. |
channel | - Command channel info. |
priv | - Command attribute id. |
int adis_iio_read_raw | ( | void * | dev, |
char * | buf, | ||
uint32_t | len, | ||
const struct iio_ch_info * | channel, | ||
intptr_t | priv | ||
) |
Handles the read request for raw attribute.
Handles the read request for raw attribute.
dev | - The iio device structure. |
buf | - Command buffer to be filled with requested data. |
len | - Length of the received command buffer in bytes. |
channel | - Command channel info. |
priv | - Command attribute id. |
int adis_iio_read_reg | ( | struct adis_iio_dev * | device, |
uint32_t | reg, | ||
uint32_t * | readval | ||
) |
Wrapper for reading adis register.
Wrapper for reading adis register.
device | - The iio device structure. |
reg | - Address of the register to be read from. |
readval | - Read data. |
int adis_iio_read_samples | ( | void * | dev, |
int * | buff, | ||
uint32_t | samples | ||
) |
Read adis iio samples for the active channels.
int adis_iio_read_sampling_freq | ( | void * | dev, |
char * | buf, | ||
uint32_t | len, | ||
const struct iio_ch_info * | channel, | ||
intptr_t | priv | ||
) |
Handles the read request for sampling frequency attribute.
Handles the read request for sampling frequency attribute.
dev | - The iio device structure. |
buf | - Command buffer to be filled with requested data. |
len | - Length of the received command buffer in bytes. |
channel | - Command channel info. |
priv | - Command attribute id. |
int adis_iio_read_scale | ( | void * | dev, |
char * | buf, | ||
uint32_t | len, | ||
const struct iio_ch_info * | channel, | ||
intptr_t | priv | ||
) |
Handles the read request for scale attribute.
Handles the read request for scale attribute.
dev | - The iio device structure. |
buf | - Command buffer to be filled with requested data. |
len | - Length of the received command buffer in bytes. |
channel | - Command channel info. |
priv | - Command attribute id. |
int adis_iio_trigger_handler | ( | struct iio_device_data * | dev_data | ) |
Handles trigger: reads one data-set and writes it to the buffer.
Callback for adis iio data ready trigger.
dev_data | - The iio device data structure. |
int adis_iio_trigger_handler_with_fifo | ( | struct iio_device_data * | dev_data | ) |
Handles trigger: reads all available samples in FIFO and writes them to the buffer.
dev_data | - The iio device data structure. |
int adis_iio_write_calibbias | ( | void * | dev, |
char * | buf, | ||
uint32_t | len, | ||
const struct iio_ch_info * | channel, | ||
intptr_t | priv | ||
) |
Handles the write request for calibbias attribute.
Handles the write request for calibbias attribute.
dev | - The iio device structure. |
buf | - Command buffer to be filled with the data to be written. |
len | - Length of the received command buffer in bytes. |
channel | - Command channel info. |
priv | - Command attribute id. |
int adis_iio_write_calibscale | ( | void * | dev, |
char * | buf, | ||
uint32_t | len, | ||
const struct iio_ch_info * | channel, | ||
intptr_t | priv | ||
) |
Handles the write request for calibscale attribute.
Handles the write request for calibscale attribute.
dev | - The iio device structure. |
buf | - Command buffer to be filled with the data to be written. |
len | - Length of the received command buffer in bytes. |
channel | - Command channel info. |
priv | - Command attribute id. |
int adis_iio_write_debug_attrs | ( | void * | dev, |
char * | buf, | ||
uint32_t | len, | ||
const struct iio_ch_info * | channel, | ||
intptr_t | priv | ||
) |
Handles the write request for debug attributes.
Callback for adis iio debug attributes writing.
dev | - The iio device structure. |
buf | - Command buffer to be filled with the data to be written. |
len | - Length of the received command buffer in bytes. |
channel | - Command channel info. |
priv | - Command attribute id. |
int adis_iio_write_lpf | ( | void * | dev, |
char * | buf, | ||
uint32_t | len, | ||
const struct iio_ch_info * | channel, | ||
intptr_t | priv | ||
) |
Handles the write request for lpf attribute.
Handles the write request for lpf attribute.
dev | - The iio device structure. |
buf | - Command buffer to be filled with the data to be written. |
len | - Length of the received command buffer in bytes. |
channel | - Command channel info. |
priv | - Command attribute id. |
int adis_iio_write_reg | ( | struct adis_iio_dev * | device, |
uint32_t | reg, | ||
uint32_t | writeval | ||
) |
Wrapper for writing to adis register.
Wrapper for writing adis register.
device | - The iio device structure. |
reg | - Address of the register to be written to. |
writeval | - Data to be written. |
int adis_iio_write_sampling_freq | ( | void * | dev, |
char * | buf, | ||
uint32_t | len, | ||
const struct iio_ch_info * | channel, | ||
intptr_t | priv | ||
) |
Handles the write request for sampling frequency attribute.
Handles the write request for sampling frequency attribute.
dev | - The iio device structure. |
buf | - Command buffer to be filled with the data to be written. |
len | - Length of the received command buffer in bytes. |
channel | - Command channel info. |
priv | - Command attribute id. |
struct iio_attribute adis_dev_attrs[] |
struct iio_attribute adis_iio_accel_attrs[] |
struct iio_attribute adis_iio_anglvel_attrs[] |
struct iio_attribute adis_iio_delta_angl_attrs[] |
struct iio_attribute adis_iio_delta_vel_attrs[] |
struct iio_attribute adis_iio_temp_attrs[] |
struct iio_trigger adis_iio_trig_desc |