no-OS
iio_adis1654x.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef IIO_ADIS1654X_H
35 #define IIO_ADIS1654X_H
36 
37 /******************************************************************************/
38 /***************************** Include Files **********************************/
39 /******************************************************************************/
40 
41 #include "iio_adis_internals.h"
42 #include "adis1654x.h"
43 
44 /******************************************************************************/
45 /************************ Functions Declarations ******************************/
46 /******************************************************************************/
47 
50  struct adis_init_param *init_param);
51 
53 void adis1654x_iio_remove(struct adis_iio_dev *desc);
54 
55 #endif
ADIS_CMD_SNSR_SELF_TEST
@ ADIS_CMD_SNSR_SELF_TEST
Definition: iio_adis_internals.h:173
ADIS_DELTA_ANGL_Z
@ ADIS_DELTA_ANGL_Z
Definition: iio_adis_internals.h:62
ADIS_DIO_3_DIR
@ ADIS_DIO_3_DIR
Definition: iio_adis_internals.h:132
adis_iio_read_offset
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
adis_iio_pre_enable
int adis_iio_pre_enable(void *dev, uint32_t mask)
API to be called before trigger is enabled.
Definition: iio_adis.c:1412
adis_iio_write_lpf
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
ADIS_FIR_BANK_SEL_ZG
@ ADIS_FIR_BANK_SEL_ZG
Definition: iio_adis_internals.h:155
no_os_alloc.h
END_ATTRIBUTES_ARRAY
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
adis_iio_delta_vel_attrs
struct iio_attribute adis_iio_delta_vel_attrs[]
Definition: iio_adis.c:1880
ADIS_DIAG_FLS_MEM_WR_CNT_EXCEED
@ ADIS_DIAG_FLS_MEM_WR_CNT_EXCEED
Definition: iio_adis_internals.h:103
adis_iio_write_sampling_freq
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_FIR_EN_XG
@ ADIS_FIR_EN_XG
Definition: iio_adis_internals.h:147
ADIS_GYRO_CHAN
@ ADIS_GYRO_CHAN
Definition: adis.h:116
iio_channel
Struct describing the scan type.
Definition: iio_types.h:168
ADIS_ACCEL_Z
@ ADIS_ACCEL_Z
Definition: iio_adis_internals.h:58
scan_type::sign
char sign
Definition: iio_types.h:153
ADIS_DIAG_FLS_MEM_UPDATE_FAILURE
@ ADIS_DIAG_FLS_MEM_UPDATE_FAILURE
Definition: iio_adis_internals.h:75
ADIS_DR_ENABLE
@ ADIS_DR_ENABLE
Definition: iio_adis_internals.h:121
ADIS_GYRO_Z
@ ADIS_GYRO_Z
Definition: iio_adis_internals.h:55
IIO_SHARED_BY_TYPE
@ IIO_SHARED_BY_TYPE
Definition: iio_types.h:120
ADIS_ALARM_IND_ENABLE
@ ADIS_ALARM_IND_ENABLE
Definition: iio_adis_internals.h:127
ADIS_BOOT_REV
@ ADIS_BOOT_REV
Definition: iio_adis_internals.h:181
adis1654x_iio_temp_attrs
struct iio_attribute adis1654x_iio_temp_attrs[]
Definition: iio_adis1654x.c:151
adis_iio_dev::iio_dev
struct iio_device * iio_dev
Definition: iio_adis_internals.h:222
adis_init_param
ADIS device initialization parameters.
Definition: adis.h:306
ADIS_BURST_SEL
@ ADIS_BURST_SEL
Definition: iio_adis_internals.h:141
ADIS_ALARM_IND_POLARITY
@ ADIS_ALARM_IND_POLARITY
Definition: iio_adis_internals.h:128
ADIS_FIRM_REV
@ ADIS_FIRM_REV
Definition: iio_adis_internals.h:182
ADIS_BIAS_CORR_EN_YG
@ ADIS_BIAS_CORR_EN_YG
Definition: iio_adis_internals.h:165
no_os_units.h
Header file of Units.
ADIS_SYNC_LINE_SEL
@ ADIS_SYNC_LINE_SEL
Definition: iio_adis_internals.h:125
ADIS_USR_SCR_2
@ ADIS_USR_SCR_2
Definition: iio_adis_internals.h:188
ADIS_CMD_FACT_CALIB_RESTORE
@ ADIS_CMD_FACT_CALIB_RESTORE
Definition: iio_adis_internals.h:172
ADIS_DR_POLARITY
@ ADIS_DR_POLARITY
Definition: iio_adis_internals.h:122
adis_iio_write_debug_attrs
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_DIO_1_LVL
@ ADIS_DIO_1_LVL
Definition: iio_adis_internals.h:134
ADIS_DELTA_VEL_Y
@ ADIS_DELTA_VEL_Y
Definition: iio_adis_internals.h:64
ADIS16545_1
@ ADIS16545_1
Definition: adis.h:96
ADIS16547_2
@ ADIS16547_2
Definition: adis.h:100
ADIS_DIAG_LOST_SAMPLES_COUNT
@ ADIS_DIAG_LOST_SAMPLES_COUNT
Definition: iio_adis_internals.h:104
ADIS16545_2
@ ADIS16545_2
Definition: adis.h:97
ADIS_FIR_EN_ZA
@ ADIS_FIR_EN_ZA
Definition: iio_adis_internals.h:152
no_os_calloc
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
NO_OS_ARRAY_SIZE
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
ADIS_EXT_CLK_FREQ
@ ADIS_EXT_CLK_FREQ
Definition: iio_adis_internals.h:192
ADIS_ACCEL_X
@ ADIS_ACCEL_X
Definition: iio_adis_internals.h:56
ADIS_SYNC_POLARITY
@ ADIS_SYNC_POLARITY
Definition: iio_adis_internals.h:124
ADIS_DATA_CNTR
@ ADIS_DATA_CNTR
Definition: iio_adis_internals.h:107
adis1654x_dev_attrs
struct iio_attribute adis1654x_dev_attrs[]
Definition: iio_adis1654x.c:167
ADIS_GYRO_Y
@ ADIS_GYRO_Y
Definition: iio_adis_internals.h:54
ADIS_FIR_EN_ZG
@ ADIS_FIR_EN_ZG
Definition: iio_adis_internals.h:149
ADIS_DIO_2_DIR
@ ADIS_DIO_2_DIR
Definition: iio_adis_internals.h:131
adis_iio_write_calibbias
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_dev
ADIS IIO device descriptor structure.
Definition: iio_adis_internals.h:218
IIO_SHARED_BY_ALL
@ IIO_SHARED_BY_ALL
Definition: iio_types.h:122
ADIS_FIR_BANK_SEL_XA
@ ADIS_FIR_BANK_SEL_XA
Definition: iio_adis_internals.h:156
ADIS_DIAG_Y_AXIS_ACCL_FAILURE
@ ADIS_DIAG_Y_AXIS_ACCL_FAILURE
Definition: iio_adis_internals.h:88
adis_init
int adis_init(struct adis_dev **adis, const struct adis_init_param *ip)
Initialize adis device.
Definition: adis.c:99
ADIS_BIAS_CORR_EN_ZG
@ ADIS_BIAS_CORR_EN_ZG
Definition: iio_adis_internals.h:166
ADIS_PROD_ID
@ ADIS_PROD_ID
Definition: iio_adis_internals.h:184
adis1654x_iio_remove
void adis1654x_iio_remove(struct adis_iio_dev *desc)
Remove adis1654x iio device.
Definition: iio_adis1654x.c:676
iio_attribute::name
const char * name
Definition: iio_types.h:131
ADIS_BIAS_CORR_EN_ZA
@ ADIS_BIAS_CORR_EN_ZA
Definition: iio_adis_internals.h:169
ADIS_DELTA_ANGL_X
@ ADIS_DELTA_ANGL_X
Definition: iio_adis_internals.h:60
ADIS_DIAG_WDG_TIMER_FLAG
@ ADIS_DIAG_WDG_TIMER_FLAG
Definition: iio_adis_internals.h:97
ADIS_DIAG_Z_AXIS_GYRO_FAILURE
@ ADIS_DIAG_Z_AXIS_GYRO_FAILURE
Definition: iio_adis_internals.h:86
ADIS16547_1
@ ADIS16547_1
Definition: adis.h:99
ADIS_DIAG_DATA_PATH_OVERRUN
@ ADIS_DIAG_DATA_PATH_OVERRUN
Definition: iio_adis_internals.h:74
ADIS_CMD_FLS_MEM_UPDATE
@ ADIS_CMD_FLS_MEM_UPDATE
Definition: iio_adis_internals.h:174
ADIS_DELTA_VEL_X
@ ADIS_DELTA_VEL_X
Definition: iio_adis_internals.h:63
ADIS_BIAS_CORR_EN_XA
@ ADIS_BIAS_CORR_EN_XA
Definition: iio_adis_internals.h:167
ADIS_GYRO_X
@ ADIS_GYRO_X
Definition: iio_adis_internals.h:53
ADIS16547_3
@ ADIS16547_3
Definition: adis.h:101
ADIS_FIR_EN_YA
@ ADIS_FIR_EN_YA
Definition: iio_adis_internals.h:151
iio_adis_internals.h
Internal include file used for specific chip IIO driver definitions which are not useful for the user...
ADIS_TIME_STAMP
@ ADIS_TIME_STAMP
Definition: iio_adis_internals.h:106
adis1654x.h
Implementation of adis1654x.h.
ADIS_SYNC_MODE
@ ADIS_SYNC_MODE
Definition: iio_adis_internals.h:126
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
adis_iio_read_reg
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
@ ADIS_DIAG_CHECKSUM_ERR
Definition: iio_adis_internals.h:102
ADIS_DELTA_VEL_Z
@ ADIS_DELTA_VEL_Z
Definition: iio_adis_internals.h:65
adis_iio_dev::rang_mdl_txt
const char * rang_mdl_txt
Definition: iio_adis_internals.h:240
ADIS_FIR_BANK_SEL_YG
@ ADIS_FIR_BANK_SEL_YG
Definition: iio_adis_internals.h:154
ADIS_FIR_BANK_SEL_ZA
@ ADIS_FIR_BANK_SEL_ZA
Definition: iio_adis_internals.h:158
ADIS_DELTA_ANGL_Y
@ ADIS_DELTA_ANGL_Y
Definition: iio_adis_internals.h:61
adis_iio_write_calibscale
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
adis1654x_iio_accel_attrs
struct iio_attribute adis1654x_iio_accel_attrs[]
Definition: iio_adis1654x.c:123
ADIS_DIO_4_DIR
@ ADIS_DIO_4_DIR
Definition: iio_adis_internals.h:133
ADIS_DIO_3_LVL
@ ADIS_DIO_3_LVL
Definition: iio_adis_internals.h:136
adis_iio_delta_angl_attrs
struct iio_attribute adis_iio_delta_angl_attrs[]
Definition: iio_adis.c:1867
adis1654x_iio_init
int adis1654x_iio_init(struct adis_iio_dev **iio_dev, struct adis_init_param *init_param)
Initialize adis1654x iio device.
Definition: iio_adis1654x.c:643
adis_iio_trigger_handler
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
adis_iio_read_lpf
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
@ ADIS_DIAG_SNSR_FAILURE
Definition: iio_adis_internals.h:78
ADIS_DEC_RATE
@ ADIS_DEC_RATE
Definition: iio_adis_internals.h:161
ADIS_DIO_4_LVL
@ ADIS_DIO_4_LVL
Definition: iio_adis_internals.h:137
ADIS_DIAG_Z_AXIS_ACCL_FAILURE
@ ADIS_DIAG_Z_AXIS_ACCL_FAILURE
Definition: iio_adis_internals.h:89
adis_iio_read_sampling_freq
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_FIR_EN_YG
@ ADIS_FIR_EN_YG
Definition: iio_adis_internals.h:148
ADIS_UP_SCALE
@ ADIS_UP_SCALE
Definition: iio_adis_internals.h:160
iio_device::num_ch
uint16_t num_ch
Definition: iio_types.h:252
no_os_free
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
adis_iio_write_reg
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
@ ADIS_DIAG_MEM_FAILURE
Definition: iio_adis_internals.h:79
adis1654x_iio_anglvel_attrs
struct iio_attribute adis1654x_iio_anglvel_attrs[]
Definition: iio_adis1654x.c:95
ADIS_FIR_BANK_SEL_XG
@ ADIS_FIR_BANK_SEL_XG
Definition: iio_adis_internals.h:153
ADIS_FLS_MEM_WR_CNTR
@ ADIS_FLS_MEM_WR_CNTR
Definition: iio_adis_internals.h:191
adis_iio_read_calibbias
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
@ ADIS_DIAG_CLK_ERR
Definition: iio_adis_internals.h:80
ADIS_DIAG_Y_AXIS_GYRO_FAILURE
@ ADIS_DIAG_Y_AXIS_GYRO_FAILURE
Definition: iio_adis_internals.h:85
adis_iio_read_scale
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
adis1654x_iio_init
int adis1654x_iio_init(struct adis_iio_dev **iio_dev, struct adis_init_param *init_param)
Initialize adis1654x iio device.
Definition: iio_adis1654x.c:643
ADIS_DIAG_X_AXIS_ACCL_FAILURE
@ ADIS_DIAG_X_AXIS_ACCL_FAILURE
Definition: iio_adis_internals.h:87
ADIS_SERIAL_NUM
@ ADIS_SERIAL_NUM
Definition: iio_adis_internals.h:185
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
ADIS_DIAG_SPI_COMM_ERR
@ ADIS_DIAG_SPI_COMM_ERR
Definition: iio_adis_internals.h:76
iio_device
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
ADIS_USR_SCR_3
@ ADIS_USR_SCR_3
Definition: iio_adis_internals.h:189
adis_iio_read_calibscale
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
adis_iio_read_raw
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_DIO_1_DIR
@ ADIS_DIO_1_DIR
Definition: iio_adis_internals.h:130
ADIS_DIAG_X_AXIS_GYRO_FAILURE
@ ADIS_DIAG_X_AXIS_GYRO_FAILURE
Definition: iio_adis_internals.h:84
ADIS_BIAS_CORR_EN_XG
@ ADIS_BIAS_CORR_EN_XG
Definition: iio_adis_internals.h:164
ADIS_DR_LINE_SEL
@ ADIS_DR_LINE_SEL
Definition: iio_adis_internals.h:123
ADIS_BIAS_CORR_EN_YA
@ ADIS_BIAS_CORR_EN_YA
Definition: iio_adis_internals.h:168
ADIS_DIAG_BOOT_MEMORY_FAILURE
@ ADIS_DIAG_BOOT_MEMORY_FAILURE
Definition: iio_adis_internals.h:95
ADIS_BIAS_CORR_TBC
@ ADIS_BIAS_CORR_TBC
Definition: iio_adis_internals.h:163
ADIS_PT_OF_PERC_ALGNMT
@ ADIS_PT_OF_PERC_ALGNMT
Definition: iio_adis_internals.h:139
scan_type
Definition: iio_types.h:151
ADIS_DELTA_ANGL_CHAN
#define ADIS_DELTA_ANGL_CHAN(mod, idx, adis_nb, attr)
Definition: iio_adis_internals.h:268
adis_iio_dev::adis_dev
struct adis_dev * adis_dev
Definition: iio_adis_internals.h:220
iio_adis1654x.h
Implementation of iio_adis1654x.h.
ADIS_FIRM_DATE
@ ADIS_FIRM_DATE
Definition: iio_adis_internals.h:183
adis1654x_iio_remove
void adis1654x_iio_remove(struct adis_iio_dev *desc)
Remove adis1654x iio device.
Definition: iio_adis1654x.c:676
adis_remove
void adis_remove(struct adis_dev *adis)
Remove adis device.
Definition: adis.c:162
ADIS_CMD_SW_RES
@ ADIS_CMD_SW_RES
Definition: iio_adis_internals.h:177
ADIS_USR_SCR_1
@ ADIS_USR_SCR_1
Definition: iio_adis_internals.h:187
ADIS_DELTA_VEL_CHAN
#define ADIS_DELTA_VEL_CHAN(mod, idx, adis_nb, attr)
Definition: iio_adis_internals.h:286
ADIS_ALARM_IND_LINE_SEL
@ ADIS_ALARM_IND_LINE_SEL
Definition: iio_adis_internals.h:129
ADIS_TEMP
@ ADIS_TEMP
Definition: iio_adis_internals.h:59
ADIS_FIR_BANK_SEL_YA
@ ADIS_FIR_BANK_SEL_YA
Definition: iio_adis_internals.h:157
ADIS_ACCEL_CHAN
#define ADIS_ACCEL_CHAN(mod, idx, adis_nb, attr)
Definition: iio_adis_internals.h:248
ADIS_USR_SCR_4
@ ADIS_USR_SCR_4
Definition: iio_adis_internals.h:190
ADIS_FIR_EN_XA
@ ADIS_FIR_EN_XA
Definition: iio_adis_internals.h:150
ADIS_ACCEL_Y
@ ADIS_ACCEL_Y
Definition: iio_adis_internals.h:57
adis_iio_read_debug_attrs
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_DIO_2_LVL
@ ADIS_DIO_2_LVL
Definition: iio_adis_internals.h:135
ADIS16545_3
@ ADIS16545_3
Definition: adis.h:98
ADIS1654X_ID_NO_OFFSET
#define ADIS1654X_ID_NO_OFFSET(x)
Definition: adis1654x.h:47
ADIS_GYRO_MEAS_RANGE
@ ADIS_GYRO_MEAS_RANGE
Definition: iio_adis_internals.h:119
ADIS_CMD_BIAS_CORR_UPDATE
@ ADIS_CMD_BIAS_CORR_UPDATE
Definition: iio_adis_internals.h:171
ADIS_TEMP_CHAN
@ ADIS_TEMP_CHAN
Definition: adis.h:117