Go to the documentation of this file.
34 #ifndef IIO_ADIS1655X_H
35 #define IIO_ADIS1655X_H
@ ADIS_CMD_SNSR_SELF_TEST
Definition: iio_adis_internals.h:173
@ ADIS_DELTA_ANGL_Z
Definition: iio_adis_internals.h:62
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.
Definition: iio_adis.c:246
int adis_iio_pre_enable(void *dev, uint32_t mask)
API to be called before trigger is enabled.
Definition: iio_adis.c:1412
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.
Definition: iio_adis.c:562
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
struct iio_attribute adis_iio_delta_vel_attrs[]
Definition: iio_adis.c:1880
@ ADIS_DIAG_FLS_MEM_WR_CNT_EXCEED
Definition: iio_adis_internals.h:103
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.
Definition: iio_adis.c:753
@ ADIS_GYRO_CHAN
Definition: adis.h:116
Struct describing the scan type.
Definition: iio_types.h:168
@ ADIS_DIAG_EXT_5V_SUPPLY_ERR
Definition: iio_adis_internals.h:99
@ ADIS_ACCEL_Z
Definition: iio_adis_internals.h:58
char sign
Definition: iio_types.h:153
@ ADIS_DIAG_POWER_SUPPLY_FAILURE
Definition: iio_adis_internals.h:94
@ ADIS_DIAG_FLS_MEM_UPDATE_FAILURE
Definition: iio_adis_internals.h:75
@ ADIS_GYRO_Z
Definition: iio_adis_internals.h:55
@ IIO_SHARED_BY_TYPE
Definition: iio_types.h:120
struct iio_device * iio_dev
Definition: iio_adis_internals.h:222
@ ADIS16550
Definition: adis.h:102
ADIS device initialization parameters.
Definition: adis.h:306
@ ADIS_FIRM_REV
Definition: iio_adis_internals.h:182
@ ADIS_USR_SCR_2
Definition: iio_adis_internals.h:188
@ ADIS_CMD_FACT_CALIB_RESTORE
Definition: iio_adis_internals.h:172
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.
Definition: iio_adis.c:1221
@ ADIS_DELTA_VEL_Y
Definition: iio_adis_internals.h:64
@ ADIS_DIAG_LOST_SAMPLES_COUNT
Definition: iio_adis_internals.h:104
struct iio_attribute adis1655x_iio_temp_attrs[]
Definition: iio_adis1655x.c:148
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
@ ADIS_PROC_REV
Definition: iio_adis_internals.h:180
@ ADIS_EXT_CLK_FREQ
Definition: iio_adis_internals.h:192
@ ADIS_LOT_NUM
Definition: iio_adis_internals.h:186
@ ADIS_ACCEL_X
Definition: iio_adis_internals.h:56
@ ADIS_DIAG_TEMP_ERR
Definition: iio_adis_internals.h:93
@ ADIS_DATA_CNTR
Definition: iio_adis_internals.h:107
@ ADIS_GYRO_Y
Definition: iio_adis_internals.h:54
struct iio_attribute adis1655x_dev_attrs[]
Definition: iio_adis1655x.c:164
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.
Definition: iio_adis.c:344
ADIS IIO device descriptor structure.
Definition: iio_adis_internals.h:218
@ IIO_SHARED_BY_ALL
Definition: iio_types.h:122
@ ADIS_DIAG_Y_AXIS_ACCL_FAILURE
Definition: iio_adis_internals.h:88
int adis_init(struct adis_dev **adis, const struct adis_init_param *ip)
Initialize adis device.
Definition: adis.c:99
@ ADIS_PROD_ID
Definition: iio_adis_internals.h:184
const char * name
Definition: iio_types.h:131
@ ADIS_DELTA_ANGL_X
Definition: iio_adis_internals.h:60
@ ADIS_DIAG_WDG_TIMER_FLAG
Definition: iio_adis_internals.h:97
@ ADIS_DIAG_Z_AXIS_GYRO_FAILURE
Definition: iio_adis_internals.h:86
@ ADIS_DIAG_DATA_PATH_OVERRUN
Definition: iio_adis_internals.h:74
@ ADIS_CMD_FLS_MEM_UPDATE
Definition: iio_adis_internals.h:174
@ ADIS_DELTA_VEL_X
Definition: iio_adis_internals.h:63
void adis1655x_iio_remove(struct adis_iio_dev *desc)
Remove adis1655x iio device.
Definition: iio_adis1655x.c:519
@ ADIS_GYRO_X
Definition: iio_adis_internals.h:53
Internal include file used for specific chip IIO driver definitions which are not useful for the user...
@ ADIS_TIME_STAMP
Definition: iio_adis_internals.h:106
@ ADIS_SYNC_MODE
Definition: iio_adis_internals.h:126
@ ADIS_DIAG_OVERRANGE
Definition: iio_adis_internals.h:92
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
void adis1655x_iio_remove(struct adis_iio_dev *desc)
Remove adis1655x iio device.
Definition: iio_adis1655x.c:519
@ ADIS_DIAG_CONFIG_CALIB_CRC_ERR
Definition: iio_adis_internals.h:91
int adis_iio_read_reg(struct adis_iio_dev *device, uint32_t reg, uint32_t *readval)
Wrapper for reading adis register.
Definition: iio_adis.c:69
@ ADIS_DIAG_CHECKSUM_ERR
Definition: iio_adis_internals.h:102
@ ADIS_DELTA_VEL_Z
Definition: iio_adis_internals.h:65
const char * rang_mdl_txt
Definition: iio_adis_internals.h:240
struct iio_attribute adis1655x_iio_anglvel_attrs[]
Definition: iio_adis1655x.c:90
@ ADIS_DELTA_ANGL_Y
Definition: iio_adis_internals.h:61
int adis1655x_iio_init(struct adis_iio_dev **iio_dev, struct adis_init_param *init_param)
Initialize adis1655x iio device.
Definition: iio_adis1655x.c:487
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.
Definition: iio_adis.c:449
@ ADIS_DIAG_INT_SNSR_SUPPLY_ERR
Definition: iio_adis_internals.h:100
@ ADIS_DIAG_REG_NVM_ERR
Definition: iio_adis_internals.h:96
Implementation of adis1655x.h.
struct iio_attribute adis_iio_delta_angl_attrs[]
Definition: iio_adis.c:1867
int adis_iio_trigger_handler(struct iio_device_data *dev_data)
Handles trigger: reads one data-set and writes it to the buffer.
Definition: iio_adis.c:1722
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.
Definition: iio_adis.c:498
@ ADIS_DIAG_SNSR_FAILURE
Definition: iio_adis_internals.h:78
@ ADIS_DEC_RATE
Definition: iio_adis_internals.h:161
@ ADIS_DIAG_Z_AXIS_ACCL_FAILURE
Definition: iio_adis_internals.h:89
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.
Definition: iio_adis.c:657
@ ADIS_UP_SCALE
Definition: iio_adis_internals.h:160
uint16_t num_ch
Definition: iio_types.h:252
@ ADIS_ACCL_FIR_ENABLE
Definition: iio_adis_internals.h:146
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
int adis_iio_write_reg(struct adis_iio_dev *device, uint32_t reg, uint32_t writeval)
Wrapper for writing to adis register.
Definition: iio_adis.c:82
@ ADIS_DIAG_MEM_FAILURE
Definition: iio_adis_internals.h:79
@ ADIS_FLS_MEM_WR_CNTR
Definition: iio_adis_internals.h:191
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.
Definition: iio_adis.c:288
@ ADIS_DIAG_CLK_ERR
Definition: iio_adis_internals.h:80
@ ADIS_DIAG_Y_AXIS_GYRO_FAILURE
Definition: iio_adis_internals.h:85
@ ADIS_DIAG_INT_PROC_SUPPLY_ERR
Definition: iio_adis_internals.h:98
struct iio_attribute adis1655x_iio_accel_attrs[]
Definition: iio_adis1655x.c:119
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.
Definition: iio_adis.c:174
@ ADIS_DIAG_X_AXIS_ACCL_FAILURE
Definition: iio_adis_internals.h:87
@ ADIS_SERIAL_NUM
Definition: iio_adis_internals.h:185
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
@ ADIS_DIAG_SPI_COMM_ERR
Definition: iio_adis_internals.h:76
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
@ ADIS_USR_SCR_3
Definition: iio_adis_internals.h:189
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.
Definition: iio_adis.c:393
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.
Definition: iio_adis.c:97
@ ADIS_DIAG_X_AXIS_GYRO_FAILURE
Definition: iio_adis_internals.h:84
@ ADIS_DIAG_BOOT_MEMORY_FAILURE
Definition: iio_adis_internals.h:95
@ ADIS_PT_OF_PERC_ALGNMT
Definition: iio_adis_internals.h:139
Definition: iio_types.h:151
#define ADIS_DELTA_ANGL_CHAN(mod, idx, adis_nb, attr)
Definition: iio_adis_internals.h:268
struct adis_dev * adis_dev
Definition: iio_adis_internals.h:220
@ ADIS_FIRM_DATE
Definition: iio_adis_internals.h:183
int adis1655x_iio_init(struct adis_iio_dev **iio_dev, struct adis_init_param *init_param)
Initialize adis1655x iio device.
Definition: iio_adis1655x.c:487
@ ADIS_DIAG_INT_REG_ERR
Definition: iio_adis_internals.h:101
void adis_remove(struct adis_dev *adis)
Remove adis device.
Definition: adis.c:162
@ ADIS_CMD_SW_RES
Definition: iio_adis_internals.h:177
@ ADIS_USR_SCR_1
Definition: iio_adis_internals.h:187
#define ADIS_DELTA_VEL_CHAN(mod, idx, adis_nb, attr)
Definition: iio_adis_internals.h:286
@ ADIS_GYRO_FIR_ENABLE
Definition: iio_adis_internals.h:145
@ ADIS_TEMP
Definition: iio_adis_internals.h:59
#define ADIS_ACCEL_CHAN(mod, idx, adis_nb, attr)
Definition: iio_adis_internals.h:248
@ ADIS_CMD_WRITE_LOCK
Definition: iio_adis_internals.h:178
@ ADIS_USR_SCR_4
Definition: iio_adis_internals.h:190
@ ADIS_ACCEL_Y
Definition: iio_adis_internals.h:57
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.
Definition: iio_adis.c:877
@ ADIS_GYRO_MEAS_RANGE
Definition: iio_adis_internals.h:119
@ ADIS_TEMP_CHAN
Definition: adis.h:117
Implementation of iio_adis1655x.h.