no-OS
Macros | Functions
adis.c File Reference

Implementation of adis.c. More...

#include "adis.h"
#include "adis_internals.h"
#include "no_os_delay.h"
#include "no_os_gpio.h"
#include "no_os_util.h"
#include "no_os_alloc.h"
#include "no_os_print_log.h"
#include <string.h>
Include dependency graph for adis.c:

Macros

#define ADIS_16_BIT_BURST_SIZE   0
 
#define ADIS_32_BIT_BURST_SIZE   1
 
#define ADIS_FIFO_NOT_PRESENT   0
 
#define ADIS_FIFO_PRESENT   1
 
#define ADIS_MSG_SIZE_16_BIT_BURST   20 /* in bytes */
 
#define ADIS_MSG_SIZE_32_BIT_BURST   32 /* in bytes */
 
#define ADIS_CHECKSUM_SIZE   2 /* in bytes */
 
#define ADIS_CHECKSUM_BUF_IDX   0
 
#define ADIS_SIGN_BIT_POS   15
 
#define ADIS_DIAG_IDX_16_BIT_BURST   0
 
#define ADIS_XGYRO_IDX_16_BIT_BURST   2
 
#define ADIS_YGYRO_IDX_16_BIT_BURST   4
 
#define ADIS_ZGYRO_IDX_16_BIT_BURST   6
 
#define ADIS_XACCL_IDX_16_BIT_BURST   8
 
#define ADIS_YACCL_IDX_16_BIT_BURST   10
 
#define ADIS_ZACCL_IDX_16_BIT_BURST   12
 
#define ADIS_TEMP_IDX_16_BIT_BURST   14
 
#define ADIS_CNT_IDX_16_BIT_BURST   16
 
#define ADIS_DIAG_IDX_32_BIT_BURST   0
 
#define ADIS_XGYRO_IDX_32_BIT_BURST   2
 
#define ADIS_YGYRO_IDX_32_BIT_BURST   6
 
#define ADIS_ZGYRO_IDX_32_BIT_BURST   10
 
#define ADIS_XACCL_IDX_32_BIT_BURST   14
 
#define ADIS_YACCL_IDX_32_BIT_BURST   18
 
#define ADIS_ZACCL_IDX_32_BIT_BURST   22
 
#define ADIS_TEMP_IDX_32_BIT_BURST   26
 
#define ADIS_CNT_IDX_32_BIT_BURST   28
 

Functions

int adis_init (struct adis_dev **adis, const struct adis_init_param *ip)
 Initialize adis device. More...
 
void adis_remove (struct adis_dev *adis)
 Remove adis device. More...
 
int adis_initial_startup (struct adis_dev *adis)
 Device initial setup. More...
 
int adis_read_reg (struct adis_dev *adis, uint32_t reg, uint32_t *val, uint32_t size)
 Read N bytes from register. More...
 
int adis_write_reg (struct adis_dev *adis, uint32_t reg, uint32_t val, uint32_t size)
 Write N bytes to register. More...
 
int adis_read_field_u32 (struct adis_dev *adis, struct adis_field field, uint32_t *field_val)
 Read field to uint32 value. More...
 
int adis_read_field_s32 (struct adis_dev *adis, struct adis_field field, int32_t *field_val)
 Read field to int32 value. More...
 
int adis_write_field_u32 (struct adis_dev *adis, struct adis_field field, uint32_t field_val)
 Write field from uint32 value. More...
 
int adis_update_bits_base (struct adis_dev *adis, uint32_t reg, const uint32_t mask, const uint32_t val, uint8_t size)
 Update the desired bits of reg in accordance with mask and val. More...
 
bool adis_validate_checksum (uint8_t *buffer, uint8_t size, uint8_t idx)
 Check if the checksum for burst data is correct. More...
 
void adis_update_diag_flags (struct adis_dev *adis, uint32_t diag_stat)
 Update device diagnosis flags according to the received parameter. More...
 
int adis_read_diag_stat (struct adis_dev *adis, struct adis_diag_flags *diag_flags)
 Read diag status register and update device diag flags. More...
 
int adis_read_temp_flags (struct adis_dev *adis, struct adis_temp_flags *temp_flags)
 Read temperature flags. Currently this implementation is valid only for adis16550. If further other devices support this feature, it should be checked wether the register structure remains the same. If not, a similar approach to diagnosis flags should be implemented. More...
 
void adis_update_temp_flags (struct adis_dev *adis, uint16_t temp_reg)
 Update device temperature flags according to the received parameter. More...
 
int adis_read_diag_snsr_init_failure (struct adis_dev *adis, uint32_t *snsr_init_failure)
 Diagnosis: read sensor initialization failure flag value. More...
 
int adis_read_diag_data_path_overrun (struct adis_dev *adis, uint32_t *data_path_overrun_err)
 Diagnosis: read data path overrun flag value. More...
 
int adis_read_diag_fls_mem_update_failure (struct adis_dev *adis, uint32_t *fls_mem_update_failure)
 Diagnosis: read flash memory update error flag value. More...
 
int adis_read_diag_spi_comm_err (struct adis_dev *adis, uint32_t *spi_comm_err)
 Diagnosis: read spi communication error flag value. More...
 
int adis_read_diag_standby_mode (struct adis_dev *adis, uint32_t *standby_mode)
 Diagnosis: read standby mode flag value. More...
 
int adis_read_diag_snsr_failure (struct adis_dev *adis, uint32_t *snsr_failure)
 Diagnosis: read sensor self test error flag value. More...
 
int adis_read_diag_mem_failure (struct adis_dev *adis, uint32_t *mem_failure)
 Diagnosis: read flash memory test error flag value. More...
 
int adis_read_diag_clk_err (struct adis_dev *adis, uint32_t *clk_err)
 Diagnosis: read clock error flag value. More...
 
int adis_read_diag_gyro1_failure (struct adis_dev *adis, uint32_t *gyro1_failure)
 Diagnosis: read gyroscope1 self test error flag value. More...
 
int adis_read_diag_gyro2_failure (struct adis_dev *adis, uint32_t *gyro2_failure)
 Diagnosis: read gyroscope2 self test error flag value. More...
 
int adis_read_diag_accl_failure (struct adis_dev *adis, uint32_t *accl_failure)
 Diagnosis: read accelerometer self test error flag value. More...
 
int adis_read_diag_x_axis_gyro_failure (struct adis_dev *adis, uint32_t *x_axis_gyro_failure)
 Diagnosis: read X-Axis Gyroscope failure flag value. More...
 
int adis_read_diag_y_axis_gyro_failure (struct adis_dev *adis, uint32_t *y_axis_gyro_failure)
 Diagnosis: read Y-Axis Gyroscope failure flag value. More...
 
int adis_read_diag_z_axis_gyro_failure (struct adis_dev *adis, uint32_t *z_axis_gyro_failure)
 Diagnosis: read Z-Axis Gyroscope failure flag value. More...
 
int adis_read_diag_x_axis_accl_failure (struct adis_dev *adis, uint32_t *x_axis_accl_failure)
 Diagnosis: read X-Axis Accelerometer failure flag value. More...
 
int adis_read_diag_y_axis_accl_failure (struct adis_dev *adis, uint32_t *y_axis_accl_failure)
 Diagnosis: read Y-Axis Accelerometer failure flag value. More...
 
int adis_read_diag_z_axis_accl_failure (struct adis_dev *adis, uint32_t *z_axis_accl_failure)
 Diagnosis: read Z-Axis Accelerometer failure flag value. More...
 
int adis_read_diag_aduc_mcu_fault (struct adis_dev *adis, uint32_t *aduc_mcu_fault)
 Diagnosis: read ADuC microcontroller fault flag value. More...
 
int adis_read_diag_config_calib_crc_error (struct adis_dev *adis, uint32_t *config_calib_crc_error)
 Diagnosis: read configuration and/or calibration CRC error flag value. More...
 
int adis_read_diag_overrange (struct adis_dev *adis, uint32_t *overrange)
 Diagnosis: read overrange for inertial sensors flag value. More...
 
int adis_read_diag_temp_err (struct adis_dev *adis, uint32_t *temp_err)
 Diagnosis: read temperature error flag value. More...
 
int adis_read_diag_power_supply_failure (struct adis_dev *adis, uint32_t *power_supply_failure)
 Diagnosis: read power supply error flag value. More...
 
int adis_read_diag_boot_memory_failure (struct adis_dev *adis, uint32_t *boot_memory_failure)
 Diagnosis: read boot memory failure error flag value. More...
 
int adis_read_diag_reg_nvm_err (struct adis_dev *adis, uint32_t *reg_nvm_err)
 Diagnosis: read register NVM error flag value. More...
 
int adis_read_diag_wdg_timer_flag (struct adis_dev *adis, uint32_t *wdg_timer_flag)
 Diagnosis: read watchdog timer flag value. More...
 
int adis_read_diag_int_proc_supply_err (struct adis_dev *adis, uint32_t *int_proc_supply_err)
 Diagnosis: read internal processor supply error flag value. More...
 
int adis_read_diag_ext_5v_supply_err (struct adis_dev *adis, uint32_t *ext_5v_supply_err)
 Diagnosis: read external 5V supply error flag value. More...
 
int adis_read_diag_int_snsr_supply_err (struct adis_dev *adis, uint32_t *int_snsr_supply_err)
 Diagnosis: read internal sensor supply error flag value. More...
 
int adis_read_diag_int_reg_err (struct adis_dev *adis, uint32_t *int_reg_err)
 Diagnosis: read internal regulator error flag value. More...
 
void adis_read_diag_checksum_err (struct adis_dev *adis, uint32_t *checksum_err)
 Diagnosis: read checksum error flag value. More...
 
void adis_read_diag_fls_mem_wr_cnt_exceed (struct adis_dev *adis, uint32_t *fls_mem_wr_cnt_exceed)
 Diagnosis: read flash memory write counts exceeded flag value. More...
 
int adis_read_x_gyro (struct adis_dev *adis, int32_t *x_gyro)
 Read raw gyroscope data on x axis. More...
 
int adis_read_y_gyro (struct adis_dev *adis, int32_t *y_gyro)
 Read raw gyroscope data on y axis. More...
 
int adis_read_z_gyro (struct adis_dev *adis, int32_t *z_gyro)
 Read raw gyroscope data on z axis. More...
 
int adis_read_x_accl (struct adis_dev *adis, int32_t *x_accl)
 Read raw acceleration data on x axis. More...
 
int adis_read_y_accl (struct adis_dev *adis, int32_t *y_accl)
 Read raw acceleration data on y axis. More...
 
int adis_read_z_accl (struct adis_dev *adis, int32_t *z_accl)
 Read raw acceleration data on z axis. More...
 
int adis_read_temp_out (struct adis_dev *adis, int32_t *temp_out)
 Read raw temperature data. More...
 
int adis_read_time_stamp (struct adis_dev *adis, uint32_t *time_stamp)
 Read raw time stamp data. More...
 
int adis_read_data_cntr (struct adis_dev *adis, uint32_t *data_cntr)
 Read data counter value. More...
 
int adis_read_x_deltang (struct adis_dev *adis, int32_t *x_deltang)
 Read raw delta angle data on x axis. More...
 
int adis_read_y_deltang (struct adis_dev *adis, int32_t *y_deltang)
 Read raw delta angle data on y axis. More...
 
int adis_read_z_deltang (struct adis_dev *adis, int32_t *z_deltang)
 Read raw delta angle data on z axis. More...
 
int adis_read_x_deltvel (struct adis_dev *adis, int32_t *x_deltvel)
 Read raw delta velocity data on x axis. More...
 
int adis_read_y_deltvel (struct adis_dev *adis, int32_t *y_deltvel)
 Read raw delta velocity data on y axis. More...
 
int adis_read_z_deltvel (struct adis_dev *adis, int32_t *z_deltvel)
 Read raw delta velocity data on z axis. More...
 
int adis_read_fifo_cnt (struct adis_dev *adis, uint32_t *fifo_cnt)
 Read output FIFO sample count. More...
 
int adis_read_spi_chksum (struct adis_dev *adis, uint32_t *checksum)
 Read current sample SPI transaction checksum. More...
 
int adis_read_xg_bias (struct adis_dev *adis, int32_t *xg_bias)
 Read raw gyroscope offset correction on x axis. More...
 
int adis_write_xg_bias (struct adis_dev *adis, int32_t xg_bias)
 Write raw gyroscope offset correction on x axis. More...
 
int adis_read_yg_bias (struct adis_dev *adis, int32_t *yg_bias)
 Read raw gyroscope offset correction on y axis. More...
 
int adis_write_yg_bias (struct adis_dev *adis, int32_t yg_bias)
 Write raw gyroscope offset correction on y axis. More...
 
int adis_read_zg_bias (struct adis_dev *adis, int32_t *zg_bias)
 Read raw gyroscope offset correction on z axis. More...
 
int adis_write_zg_bias (struct adis_dev *adis, int32_t zg_bias)
 Write raw gyroscope offset correction on z axis. More...
 
int adis_read_xa_bias (struct adis_dev *adis, int32_t *xa_bias)
 Read raw acceleration offset correction on x axis. More...
 
int adis_write_xa_bias (struct adis_dev *adis, int32_t xa_bias)
 Write raw acceleration offset correction on x axis. More...
 
int adis_read_ya_bias (struct adis_dev *adis, int32_t *ya_bias)
 Read raw acceleration offset correction on y axis. More...
 
int adis_write_ya_bias (struct adis_dev *adis, int32_t ya_bias)
 Write raw acceleration offset correction on y axis. More...
 
int adis_read_za_bias (struct adis_dev *adis, int32_t *za_bias)
 Read raw acceleration offset correction on z axis. More...
 
int adis_write_za_bias (struct adis_dev *adis, int32_t za_bias)
 Write raw acceleration offset correction on z axis. More...
 
int adis_read_xg_scale (struct adis_dev *adis, int32_t *xg_scale)
 Read raw gyroscope scale adjustment on x axis. More...
 
int adis_write_xg_scale (struct adis_dev *adis, int32_t xg_scale)
 Write raw gyroscope scale adjustment on x axis. More...
 
int adis_read_yg_scale (struct adis_dev *adis, int32_t *yg_scale)
 Read raw gyroscope scale adjustment on y axis. More...
 
int adis_write_yg_scale (struct adis_dev *adis, int32_t yg_scale)
 Write raw gyroscope scale adjustment on y axis. More...
 
int adis_read_zg_scale (struct adis_dev *adis, int32_t *zg_scale)
 Read raw gyroscope scale adjustment on z axis. More...
 
int adis_write_zg_scale (struct adis_dev *adis, int32_t zg_scale)
 Write raw gyroscope scale adjustment on z axis. More...
 
int adis_read_xa_scale (struct adis_dev *adis, int32_t *xa_scale)
 Read raw acceleration scale adjustment on x axis. More...
 
int adis_write_xa_scale (struct adis_dev *adis, int32_t xa_scale)
 Write raw acceleration scale adjustment on x axis. More...
 
int adis_read_ya_scale (struct adis_dev *adis, int32_t *ya_scale)
 Read raw acceleration scale adjustment on y axis. More...
 
int adis_write_ya_scale (struct adis_dev *adis, int32_t ya_scale)
 Write raw acceleration scale adjustment on y axis. More...
 
int adis_read_za_scale (struct adis_dev *adis, int32_t *za_scale)
 Read raw acceleration scale adjustment on z axis. More...
 
int adis_write_za_scale (struct adis_dev *adis, int32_t za_scale)
 Write raw acceleration scale adjustment on z axis. More...
 
int adis_read_fifo_en (struct adis_dev *adis, uint32_t *fifo_en)
 
int adis_write_fifo_en (struct adis_dev *adis, uint32_t fifo_en)
 Write FIFO enable bit value. More...
 
int adis_read_fifo_overflow (struct adis_dev *adis, uint32_t *fifo_overflow)
 Read FIFO overflow bit value. More...
 
int adis_write_fifo_overflow (struct adis_dev *adis, uint32_t fifo_overflow)
 Write FIFO overflow bit value. More...
 
int adis_read_fifo_wm_int_en (struct adis_dev *adis, uint32_t *fifo_wm_int_en)
 Read FIFO watermark interrupt enable bit value. More...
 
int adis_write_fifo_wm_int_en (struct adis_dev *adis, uint32_t fifo_wm_int_en)
 Write FIFO watermark interrupt enable bit value. More...
 
int adis_read_fifo_wm_int_pol (struct adis_dev *adis, uint32_t *fifo_wm_int_pol)
 Read FIFO watermark interrupt polarity bit value. More...
 
int adis_write_fifo_wm_int_pol (struct adis_dev *adis, uint32_t fifo_wm_int_pol)
 Write FIFO watermark interrupt polarity bit value. More...
 
int adis_read_fifo_wm_lvl (struct adis_dev *adis, uint32_t *fifo_wm_lvl)
 Read FIFO watermark threshold level value. More...
 
int adis_write_fifo_wm_lvl (struct adis_dev *adis, uint32_t fifo_wm_lvl)
 Write FIFO watermark threshold level value. More...
 
int adis_read_filt_size_var_b (struct adis_dev *adis, uint32_t *filt_size_var_b)
 Read filter size variable B value. More...
 
int adis_write_filt_size_var_b (struct adis_dev *adis, uint32_t filt_size_var_b)
 Write filter size variable B value. More...
 
int adis_read_lpf (struct adis_dev *adis, enum adis_chan_type chan, enum adis_axis_type axis, uint32_t *freq)
 Read configured filter frequency. More...
 
int adis_write_lpf (struct adis_dev *adis, enum adis_chan_type chan, enum adis_axis_type axis, uint32_t freq)
 Configure filter for the given filter frequency. More...
 
int adis_read_gyro_meas_range (struct adis_dev *adis, uint32_t *gyro_meas_range)
 Read gyroscope measurement range value. More...
 
int adis_read_fir_en_xg (struct adis_dev *adis, uint32_t *fir_en_xg)
 Read x axis gyroscope filter enable bit value. More...
 
int adis_write_fir_en_xg (struct adis_dev *adis, uint32_t fir_en_xg)
 Write x axis gyroscope filter enable bit value. More...
 
int adis_read_fir_en_yg (struct adis_dev *adis, uint32_t *fir_en_yg)
 Read y axis gyroscope filter enable bit value. More...
 
int adis_write_fir_en_yg (struct adis_dev *adis, uint32_t fir_en_yg)
 Write y axis gyroscope filter enable bit value. More...
 
int adis_read_fir_en_zg (struct adis_dev *adis, uint32_t *fir_en_zg)
 Read z axis gyroscope filter enable bit value. More...
 
int adis_write_fir_en_zg (struct adis_dev *adis, uint32_t fir_en_zg)
 Write z axis gyroscope filter enable bit value. More...
 
int adis_read_fir_en_xa (struct adis_dev *adis, uint32_t *fir_en_xa)
 Read x axis accelerometer filter enable bit value. More...
 
int adis_write_fir_en_xa (struct adis_dev *adis, uint32_t fir_en_xa)
 Write x axis accelerometer filter enable bit value. More...
 
int adis_read_fir_en_ya (struct adis_dev *adis, uint32_t *fir_en_ya)
 Read y axis accelerometer filter enable bit value. More...
 
int adis_write_fir_en_ya (struct adis_dev *adis, uint32_t fir_en_ya)
 Write y axis accelerometer filter enable bit value. More...
 
int adis_read_fir_en_za (struct adis_dev *adis, uint32_t *fir_en_za)
 Read z axis accelerometer filter enable bit value. More...
 
int adis_write_fir_en_za (struct adis_dev *adis, uint32_t fir_en_za)
 Write z axis accelerometer filter enable bit value. More...
 
int adis_read_fir_bank_sel_xg (struct adis_dev *adis, uint32_t *fir_bank_sel_xg)
 Read x axis gyroscope filter bank selection encoded value. More...
 
int adis_write_fir_bank_sel_xg (struct adis_dev *adis, uint32_t fir_bank_sel_xg)
 Write x axis gyroscope filter bank selection encoded value. More...
 
int adis_read_fir_bank_sel_yg (struct adis_dev *adis, uint32_t *fir_bank_sel_yg)
 Read y axis gyroscope filter bank selection encoded value. More...
 
int adis_write_fir_bank_sel_yg (struct adis_dev *adis, uint32_t fir_bank_sel_yg)
 Write y axis gyroscope filter bank selection encoded value. More...
 
int adis_read_fir_bank_sel_zg (struct adis_dev *adis, uint32_t *fir_bank_sel_zg)
 Read z axis gyroscope filter bank selection encoded value. More...
 
int adis_write_fir_bank_sel_zg (struct adis_dev *adis, uint32_t fir_bank_sel_zg)
 Write z axis gyroscope filter bank selection encoded value. More...
 
int adis_read_fir_bank_sel_xa (struct adis_dev *adis, uint32_t *fir_bank_sel_xa)
 Read x axis accelerometer filter bank selection encoded value. More...
 
int adis_write_fir_bank_sel_xa (struct adis_dev *adis, uint32_t fir_bank_sel_xa)
 Write x axis accelerometer filter bank selection encoded value. More...
 
int adis_read_fir_bank_sel_ya (struct adis_dev *adis, uint32_t *fir_bank_sel_ya)
 Read y axis accelerometer filter bank selection encoded value. More...
 
int adis_write_fir_bank_sel_ya (struct adis_dev *adis, uint32_t fir_bank_sel_ya)
 Write y axis accelerometer filter bank selection encoded value. More...
 
int adis_read_fir_bank_sel_za (struct adis_dev *adis, uint32_t *fir_bank_sel_za)
 Read z axis accelerometer filter bank selection encoded value. More...
 
int adis_write_fir_bank_sel_za (struct adis_dev *adis, uint32_t fir_bank_sel_za)
 Write z axis accelerometer filter bank selection encoded value. More...
 
int adis_read_fir_coef_bank_a (struct adis_dev *adis, uint8_t coef_idx, uint32_t *coef)
 Read FIR Filter Coefficient Bank A idx value. More...
 
int adis_write_fir_coef_bank_a (struct adis_dev *adis, uint8_t coef_idx, uint32_t coef)
 Write FIR Filter Coefficient Bank A idx value. More...
 
int adis_read_fir_coef_bank_b (struct adis_dev *adis, uint8_t coef_idx, uint32_t *coef)
 Read FIR Filter Coefficient Bank B idx value. More...
 
int adis_write_fir_coef_bank_b (struct adis_dev *adis, uint8_t coef_idx, uint32_t coef)
 Write FIR Filter Coefficient Bank B idx value. More...
 
int adis_read_fir_coef_bank_c (struct adis_dev *adis, uint8_t coef_idx, uint32_t *coef)
 Read FIR Filter Coefficient Bank C idx value. More...
 
int adis_write_fir_coef_bank_c (struct adis_dev *adis, uint8_t coef_idx, uint32_t coef)
 Write FIR Filter Coefficient Bank C idx value. More...
 
int adis_read_fir_coef_bank_d (struct adis_dev *adis, uint8_t coef_idx, uint32_t *coef)
 Read FIR Filter Coefficient Bank D idx value. More...
 
int adis_write_fir_coef_bank_d (struct adis_dev *adis, uint8_t coef_idx, uint32_t coef)
 Write FIR Filter Coefficient Bank D idx value. More...
 
int adis_read_dr_selection (struct adis_dev *adis, uint32_t *dr_selection)
 Read data ready selection encoded value. More...
 
int adis_write_dr_selection (struct adis_dev *adis, uint32_t dr_selection)
 Write data ready selection encoded value. More...
 
int adis_read_dr_polarity (struct adis_dev *adis, uint32_t *dr_polarity)
 Read data ready polarity encoded value. More...
 
int adis_write_dr_polarity (struct adis_dev *adis, uint32_t dr_polarity)
 Write data ready polarity encoded value. More...
 
int adis_read_dr_enable (struct adis_dev *adis, uint32_t *dr_enable)
 Read data ready enable encoded value. More...
 
int adis_write_dr_enable (struct adis_dev *adis, uint32_t dr_enable)
 Write data ready enable encoded value. More...
 
int adis_read_sync_selection (struct adis_dev *adis, uint32_t *sync_selection)
 Read sync selection encoded value. More...
 
int adis_write_sync_selection (struct adis_dev *adis, uint32_t sync_selection)
 Write sync selection encoded value. More...
 
int adis_read_sync_polarity (struct adis_dev *adis, uint32_t *sync_polarity)
 Read sync polarity encoded value. More...
 
int adis_write_sync_polarity (struct adis_dev *adis, uint32_t sync_polarity)
 Write sync polarity encoded value. More...
 
int adis_read_sync_mode (struct adis_dev *adis, uint32_t *sync_mode)
 Read synchronization mode encoded value. More...
 
int adis_write_sync_mode (struct adis_dev *adis, uint32_t sync_mode, uint32_t ext_clk)
 Update synchronization mode. More...
 
int adis_read_alarm_selection (struct adis_dev *adis, uint32_t *alarm_selection)
 Read alarm selection encoded value. More...
 
int adis_write_alarm_selection (struct adis_dev *adis, uint32_t alarm_selection)
 Write alarm selection encoded value. More...
 
int adis_read_alarm_polarity (struct adis_dev *adis, uint32_t *alarm_polarity)
 Read alarm polarity encoded value. More...
 
int adis_write_alarm_polarity (struct adis_dev *adis, uint32_t alarm_polarity)
 Write alarm polarity encoded value. More...
 
int adis_read_alarm_enable (struct adis_dev *adis, uint32_t *alarm_enable)
 Read alarm enable encoded value. More...
 
int adis_write_alarm_enable (struct adis_dev *adis, uint32_t alarm_enable)
 Write alarm enable encoded value. More...
 
int adis_read_gpio_dir (struct adis_dev *adis, uint8_t dio_nb, uint32_t *dir)
 Read gpio configured direction. More...
 
int adis_read_gpio_lvl (struct adis_dev *adis, uint8_t dio_nb, uint32_t *level)
 Read gpio configured data level. More...
 
int adis_write_gpio_dir (struct adis_dev *adis, uint8_t dio_nb, uint32_t dir)
 Write gpio direction configuration. More...
 
int adis_write_gpio_lvl (struct adis_dev *adis, uint8_t dio_nb, uint32_t level)
 Write gpio level configuration. More...
 
int adis_read_sens_bw (struct adis_dev *adis, uint32_t *sens_bw)
 Read internal sensor bandwidth encoded value. More...
 
int adis_write_sens_bw (struct adis_dev *adis, uint32_t sens_bw)
 Write internal sensor bandwidth encoded value. More...
 
int adis_read_accl_fir_enable (struct adis_dev *adis, uint32_t *accl_fir_enable)
 Read accelerometer FIR filter control bit value. More...
 
int adis_write_accl_fir_enable (struct adis_dev *adis, uint32_t accl_fir_enable)
 Write accelerometer FIR filter control bit value. More...
 
int adis_read_gyro_fir_enable (struct adis_dev *adis, uint32_t *gyro_fir_enable)
 Read gyroscope FIR filter control bit value. More...
 
int adis_write_gyro_fir_enable (struct adis_dev *adis, uint32_t gyro_fir_enable)
 Write gyroscope FIR filter control bit value. More...
 
int adis_read_pt_of_perc_algnmt (struct adis_dev *adis, uint32_t *pt_of_perc_algnmt)
 Read point of percussion alignment enable bit value. More...
 
int adis_write_pt_of_perc_algnmt (struct adis_dev *adis, uint32_t pt_of_perc_algnmt)
 Write point of percussion alignment enable bit value. More...
 
int adis_read_linear_accl_comp (struct adis_dev *adis, uint32_t *linear_accl_comp)
 Read linear acceleration compensation enable bit value. More...
 
int adis_write_linear_accl_comp (struct adis_dev *adis, uint32_t linear_accl_comp)
 Write linear acceleration compensation enable bit value. More...
 
int adis_read_burst_sel (struct adis_dev *adis, uint32_t *burst_sel)
 Read burst selection encoded value. More...
 
int adis_write_burst_sel (struct adis_dev *adis, uint32_t burst_sel)
 Write burst selection encoded value. More...
 
int adis_read_burst32 (struct adis_dev *adis, uint32_t *burst32)
 Read burst32 enable bit value. More...
 
int adis_write_burst32 (struct adis_dev *adis, uint32_t burst32)
 Write burst32 enable bit value. More...
 
int adis_read_timestamp32 (struct adis_dev *adis, uint32_t *timestamp32)
 Read timestamp32 enable bit value. More...
 
int adis_write_timestamp32 (struct adis_dev *adis, uint32_t timestamp32)
 Write timestamp32 enable bit value. More...
 
int adis_read_sync_4khz (struct adis_dev *adis, uint32_t *sync_4khz)
 Read 4khz internal sync enable bit value. More...
 
int adis_write_sync_4khz (struct adis_dev *adis, uint32_t sync_4khz)
 Write 4khz internal sync enable bit value. More...
 
int adis_read_up_scale (struct adis_dev *adis, uint32_t *up_scale)
 Read external clock scale factor value. More...
 
int adis_write_up_scale (struct adis_dev *adis, uint32_t up_scale)
 Write external clock scale factor value. More...
 
int adis_read_dec_rate (struct adis_dev *adis, uint32_t *dec_rate)
 Read decimation rate value. More...
 
int adis_write_dec_rate (struct adis_dev *adis, uint32_t dec_rate)
 Write decimation rate value. More...
 
int adis_read_bias_corr_tbc (struct adis_dev *adis, uint32_t *bias_corr_tbc)
 Read time base control value. More...
 
int adis_write_bias_corr_tbc (struct adis_dev *adis, uint32_t bias_corr_tbc)
 Write time base control value. More...
 
int adis_read_bias_corr_en_xg (struct adis_dev *adis, uint32_t *bias_corr_en_xg)
 Read x axis gyroscope bias correction enable bit value. More...
 
int adis_write_bias_corr_en_xg (struct adis_dev *adis, uint32_t bias_corr_en_xg)
 Write x axis gyroscope bias correction enable bit value. More...
 
int adis_read_bias_corr_en_yg (struct adis_dev *adis, uint32_t *bias_corr_en_yg)
 Read y axis gyroscope bias correction enable bit value. More...
 
int adis_write_bias_corr_en_yg (struct adis_dev *adis, uint32_t bias_corr_en_yg)
 Write y axis gyroscope bias correction enable bit value. More...
 
int adis_read_bias_corr_en_zg (struct adis_dev *adis, uint32_t *bias_corr_en_zg)
 Read z axis gyroscope bias correction enable bit value. More...
 
int adis_write_bias_corr_en_zg (struct adis_dev *adis, uint32_t bias_corr_en_zg)
 Write z axis gyroscope bias correction enable bit value. More...
 
int adis_read_bias_corr_en_xa (struct adis_dev *adis, uint32_t *bias_corr_en_xa)
 Read x axis accelerometer bias correction enable bit value. More...
 
int adis_write_bias_corr_en_xa (struct adis_dev *adis, uint32_t bias_corr_en_xa)
 Write x axis accelerometer bias correction enable bit value. More...
 
int adis_read_bias_corr_en_ya (struct adis_dev *adis, uint32_t *bias_corr_en_ya)
 Read y axis accelerometer bias correction enable bit value. More...
 
int adis_write_bias_corr_en_ya (struct adis_dev *adis, uint32_t bias_corr_en_ya)
 Write y axis accelerometer bias correction enable bit value. More...
 
int adis_read_bias_corr_en_za (struct adis_dev *adis, uint32_t *bias_corr_en_za)
 Read z axis accelerometer bias correction enable bit value. More...
 
int adis_write_bias_corr_en_za (struct adis_dev *adis, uint32_t bias_corr_en_za)
 Write z axis accelerometer bias correction enable bit value. More...
 
int adis_cmd_bias_corr_update (struct adis_dev *adis)
 Command: bias correction update. More...
 
int adis_cmd_fact_calib_restore (struct adis_dev *adis)
 Command: factory calibration restore. More...
 
int adis_cmd_snsr_self_test (struct adis_dev *adis)
 Command: sensor self test. More...
 
int adis_cmd_fls_mem_update (struct adis_dev *adis)
 Command: flash memory update. More...
 
int adis_cmd_fls_mem_test (struct adis_dev *adis)
 Command: flash memory test. More...
 
int adis_cmd_fifo_flush (struct adis_dev *adis)
 Command: fifo flush. More...
 
int adis_cmd_sw_res (struct adis_dev *adis)
 Command: software reset. More...
 
int adis_cmd_write_lock (struct adis_dev *adis)
 Command: write lock. More...
 
int adis_read_proc_rev (struct adis_dev *adis, uint32_t *proc_rev)
 Read processor revision value. More...
 
int adis_read_firm_rev (struct adis_dev *adis, uint32_t *firm_rev)
 Read firmware revision value. More...
 
int adis_read_firm_d (struct adis_dev *adis, uint32_t *firm_d)
 Read firmware factory configuration day value. More...
 
int adis_read_firm_m (struct adis_dev *adis, uint32_t *firm_m)
 Read firmware factory configuration month value. More...
 
int adis_read_firm_y (struct adis_dev *adis, uint32_t *firm_y)
 Read firmware factory configuration year value. More...
 
int adis_read_boot_rev (struct adis_dev *adis, uint32_t *boot_rev)
 Read boot loader revision value. More...
 
int adis_read_prod_id (struct adis_dev *adis, uint32_t *prod_id)
 Read product id value. More...
 
int adis_read_serial_num (struct adis_dev *adis, uint32_t *serial_num)
 Read serial number value. More...
 
int adis_read_lot_num (struct adis_dev *adis, uint32_t *lot_num)
 Read lot specific number value. More...
 
int adis_read_usr_scr_1 (struct adis_dev *adis, uint32_t *usr_scr_1)
 Read user scratch register 1 value. More...
 
int adis_write_usr_scr_1 (struct adis_dev *adis, uint32_t usr_scr_1)
 Write user scratch register 1 value. More...
 
int adis_read_usr_scr_2 (struct adis_dev *adis, uint32_t *usr_scr_2)
 Read user scratch register 2 value. More...
 
int adis_write_usr_scr_2 (struct adis_dev *adis, uint32_t usr_scr_2)
 Write user scratch register 2 value. More...
 
int adis_read_usr_scr_3 (struct adis_dev *adis, uint32_t *usr_scr_3)
 Read user scratch register 3 value. More...
 
int adis_write_usr_scr_3 (struct adis_dev *adis, uint32_t usr_scr_3)
 Write user scratch register 3 value. More...
 
int adis_read_usr_scr_4 (struct adis_dev *adis, uint32_t *usr_scr_4)
 Read user scratch register 4 value. More...
 
int adis_write_usr_scr_4 (struct adis_dev *adis, uint32_t usr_scr_4)
 Write user scratch register 4 value. More...
 
int adis_read_fls_mem_wr_cntr (struct adis_dev *adis, uint32_t *fls_mem_wr_cntr)
 Read flash memory write cycle counter value. More...
 
int adis_read_fir_coef (struct adis_dev *adis, uint8_t coef_idx, uint32_t *coef)
 Read FIR Filter Coefficient C_coef_idx value. More...
 
int adis_write_fir_coef (struct adis_dev *adis, uint8_t coef_idx, uint32_t coef)
 Write FIR Filter Coefficient C_coef_idx value. More...
 
int adis_read_burst_data (struct adis_dev *adis, struct adis_burst_data *data, bool burst32, uint8_t burst_sel, bool fifo_pop, bool crc_check)
 Read burst data. More...
 
int adis_update_ext_clk_freq (struct adis_dev *adis, uint32_t clk_freq)
 Update external clock frequency. More...
 
int adis_get_sync_clk_freq (struct adis_dev *adis, uint32_t *clk_freq)
 Read adis synchronization clock frequency value in Hertz. More...
 
int adis_get_anglvel_scale (struct adis_dev *adis, struct adis_scale_fractional *anglvel_scale)
 Read adis device gyroscope scale in fractional form. More...
 
int adis_get_accl_scale (struct adis_dev *adis, struct adis_scale_fractional *accl_scale)
 Read adis device acceleration scale in fractional form. More...
 
int adis_get_deltaangl_scale (struct adis_dev *adis, struct adis_scale_fractional_log2 *deltaangl_scale)
 Read adis device delta angle scale in fractional form. More...
 
int adis_get_deltavelocity_scale (struct adis_dev *adis, struct adis_scale_fractional_log2 *deltavelocity_scale)
 Read adis device delta velocity scale in fractional form. More...
 
int adis_get_temp_scale (struct adis_dev *adis, struct adis_scale_fractional *temp_scale)
 Read adis device temperature scale in fractional form. More...
 
int adis_get_temp_offset (struct adis_dev *adis, int *temp_offset)
 Read adis device temperature offset in integer. More...
 

Detailed Description

Implementation of adis.c.

Author
RBolboac (ramon.nosp@m.a.bo.nosp@m.lboac.nosp@m.a@an.nosp@m.alog..nosp@m.com)

Copyright 2023(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:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. 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.
  3. 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.

Macro Definition Documentation

◆ ADIS_16_BIT_BURST_SIZE

#define ADIS_16_BIT_BURST_SIZE   0

◆ ADIS_32_BIT_BURST_SIZE

#define ADIS_32_BIT_BURST_SIZE   1

◆ ADIS_CHECKSUM_BUF_IDX

#define ADIS_CHECKSUM_BUF_IDX   0

◆ ADIS_CHECKSUM_SIZE

#define ADIS_CHECKSUM_SIZE   2 /* in bytes */

◆ ADIS_CNT_IDX_16_BIT_BURST

#define ADIS_CNT_IDX_16_BIT_BURST   16

◆ ADIS_CNT_IDX_32_BIT_BURST

#define ADIS_CNT_IDX_32_BIT_BURST   28

◆ ADIS_DIAG_IDX_16_BIT_BURST

#define ADIS_DIAG_IDX_16_BIT_BURST   0

◆ ADIS_DIAG_IDX_32_BIT_BURST

#define ADIS_DIAG_IDX_32_BIT_BURST   0

◆ ADIS_FIFO_NOT_PRESENT

#define ADIS_FIFO_NOT_PRESENT   0

◆ ADIS_FIFO_PRESENT

#define ADIS_FIFO_PRESENT   1

◆ ADIS_MSG_SIZE_16_BIT_BURST

#define ADIS_MSG_SIZE_16_BIT_BURST   20 /* in bytes */

◆ ADIS_MSG_SIZE_32_BIT_BURST

#define ADIS_MSG_SIZE_32_BIT_BURST   32 /* in bytes */

◆ ADIS_SIGN_BIT_POS

#define ADIS_SIGN_BIT_POS   15

◆ ADIS_TEMP_IDX_16_BIT_BURST

#define ADIS_TEMP_IDX_16_BIT_BURST   14

◆ ADIS_TEMP_IDX_32_BIT_BURST

#define ADIS_TEMP_IDX_32_BIT_BURST   26

◆ ADIS_XACCL_IDX_16_BIT_BURST

#define ADIS_XACCL_IDX_16_BIT_BURST   8

◆ ADIS_XACCL_IDX_32_BIT_BURST

#define ADIS_XACCL_IDX_32_BIT_BURST   14

◆ ADIS_XGYRO_IDX_16_BIT_BURST

#define ADIS_XGYRO_IDX_16_BIT_BURST   2

◆ ADIS_XGYRO_IDX_32_BIT_BURST

#define ADIS_XGYRO_IDX_32_BIT_BURST   2

◆ ADIS_YACCL_IDX_16_BIT_BURST

#define ADIS_YACCL_IDX_16_BIT_BURST   10

◆ ADIS_YACCL_IDX_32_BIT_BURST

#define ADIS_YACCL_IDX_32_BIT_BURST   18

◆ ADIS_YGYRO_IDX_16_BIT_BURST

#define ADIS_YGYRO_IDX_16_BIT_BURST   4

◆ ADIS_YGYRO_IDX_32_BIT_BURST

#define ADIS_YGYRO_IDX_32_BIT_BURST   6

◆ ADIS_ZACCL_IDX_16_BIT_BURST

#define ADIS_ZACCL_IDX_16_BIT_BURST   12

◆ ADIS_ZACCL_IDX_32_BIT_BURST

#define ADIS_ZACCL_IDX_32_BIT_BURST   22

◆ ADIS_ZGYRO_IDX_16_BIT_BURST

#define ADIS_ZGYRO_IDX_16_BIT_BURST   6

◆ ADIS_ZGYRO_IDX_32_BIT_BURST

#define ADIS_ZGYRO_IDX_32_BIT_BURST   10

Function Documentation

◆ adis_cmd_bias_corr_update()

int adis_cmd_bias_corr_update ( struct adis_dev adis)

Command: bias correction update.

Parameters
adis- The adis device.
Returns
0 in case of success, error code otherwise.

◆ adis_cmd_fact_calib_restore()

int adis_cmd_fact_calib_restore ( struct adis_dev adis)

Command: factory calibration restore.

Parameters
adis- The adis device.
Returns
0 in case of success, error code otherwise.

◆ adis_cmd_fifo_flush()

int adis_cmd_fifo_flush ( struct adis_dev adis)

Command: fifo flush.

Parameters
adis- The adis device.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_cmd_fls_mem_test()

int adis_cmd_fls_mem_test ( struct adis_dev adis)

Command: flash memory test.

Parameters
adis- The adis device.
Returns
0 in case of success, error code otherwise.

◆ adis_cmd_fls_mem_update()

int adis_cmd_fls_mem_update ( struct adis_dev adis)

Command: flash memory update.

Parameters
adis- The adis device.
Returns
0 in case of success, error code otherwise.

◆ adis_cmd_snsr_self_test()

int adis_cmd_snsr_self_test ( struct adis_dev adis)

Command: sensor self test.

Parameters
adis- The adis device.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_cmd_sw_res()

int adis_cmd_sw_res ( struct adis_dev adis)

Command: software reset.

Parameters
adis- The adis device.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_cmd_write_lock()

int adis_cmd_write_lock ( struct adis_dev adis)

Command: write lock.

Parameters
adis- The adis device.
Returns
0 in case of success, error code otherwise.

◆ adis_get_accl_scale()

int adis_get_accl_scale ( struct adis_dev adis,
struct adis_scale_fractional accl_scale 
)

Read adis device acceleration scale in fractional form.

Parameters
adis- The adis device.
accl_scale- The acceleration scale.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_get_anglvel_scale()

int adis_get_anglvel_scale ( struct adis_dev adis,
struct adis_scale_fractional anglvel_scale 
)

Read adis device gyroscope scale in fractional form.

Parameters
adis- The adis device.
anglvel_scale- The gyroscope scale.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_get_deltaangl_scale()

int adis_get_deltaangl_scale ( struct adis_dev adis,
struct adis_scale_fractional_log2 deltaangl_scale 
)

Read adis device delta angle scale in fractional form.

Parameters
adis- The adis device.
deltaangl_scale- The delta angle scale.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_get_deltavelocity_scale()

int adis_get_deltavelocity_scale ( struct adis_dev adis,
struct adis_scale_fractional_log2 deltavelocity_scale 
)

Read adis device delta velocity scale in fractional form.

Parameters
adis- The adis device.
deltavelocity_scale- The delta velocity scale.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_get_sync_clk_freq()

int adis_get_sync_clk_freq ( struct adis_dev adis,
uint32_t *  clk_freq 
)

Read adis synchronization clock frequency value in Hertz.

Parameters
adis- The adis device.
clk_freq- The current adis synchronization clock frequency.
Returns
0 in case of success, error code otherwise.

◆ adis_get_temp_offset()

int adis_get_temp_offset ( struct adis_dev adis,
int *  temp_offset 
)

Read adis device temperature offset in integer.

Parameters
adis- The adis device.
temp_offset- The temperature offset.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_get_temp_scale()

int adis_get_temp_scale ( struct adis_dev adis,
struct adis_scale_fractional temp_scale 
)

Read adis device temperature scale in fractional form.

Parameters
adis- The adis device.
temp_scale- The temperature scale.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_init()

int adis_init ( struct adis_dev **  adis,
const struct adis_init_param ip 
)

Initialize adis device.

Parameters
adis- The adis device.
ip- User specific initialization.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_initial_startup()

int adis_initial_startup ( struct adis_dev adis)

Device initial setup.

Parameters
adis- The adis device.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_accl_fir_enable()

int adis_read_accl_fir_enable ( struct adis_dev adis,
uint32_t *  accl_fir_enable 
)

Read accelerometer FIR filter control bit value.

Parameters
adis- The adis device.
accl_fir_enable- The accelerometer FIR filter control bit value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_alarm_enable()

int adis_read_alarm_enable ( struct adis_dev adis,
uint32_t *  alarm_enable 
)

Read alarm enable encoded value.

Parameters
adis- The adis device.
alarm_enable- The alarm enable encoded value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_alarm_polarity()

int adis_read_alarm_polarity ( struct adis_dev adis,
uint32_t *  alarm_polarity 
)

Read alarm polarity encoded value.

Parameters
adis- The adis device.
alarm_polarity- The alarm polarity encoded value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_alarm_selection()

int adis_read_alarm_selection ( struct adis_dev adis,
uint32_t *  alarm_selection 
)

Read alarm selection encoded value.

Parameters
adis- The adis device.
alarm_selection- The alarm selection encoded value. 0: DIO1 1: DIO2 2: DIO3 3: DIO4
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_bias_corr_en_xa()

int adis_read_bias_corr_en_xa ( struct adis_dev adis,
uint32_t *  bias_corr_en_xa 
)

Read x axis accelerometer bias correction enable bit value.

Parameters
adis- The adis device.
bias_corr_en_xa- The x axis accelerometer bias correction enable bit read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_bias_corr_en_xg()

int adis_read_bias_corr_en_xg ( struct adis_dev adis,
uint32_t *  bias_corr_en_xg 
)

Read x axis gyroscope bias correction enable bit value.

Parameters
adis- The adis device.
bias_corr_en_xg- The x axis gyroscope bias correction enable bit read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_bias_corr_en_ya()

int adis_read_bias_corr_en_ya ( struct adis_dev adis,
uint32_t *  bias_corr_en_ya 
)

Read y axis accelerometer bias correction enable bit value.

Parameters
adis- The adis device.
bias_corr_en_ya- The y axis accelerometer bias correction enable bit read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_bias_corr_en_yg()

int adis_read_bias_corr_en_yg ( struct adis_dev adis,
uint32_t *  bias_corr_en_yg 
)

Read y axis gyroscope bias correction enable bit value.

Parameters
adis- The adis device.
bias_corr_en_yg- The y axis gyroscope bias correction enable bit read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_bias_corr_en_za()

int adis_read_bias_corr_en_za ( struct adis_dev adis,
uint32_t *  bias_corr_en_za 
)

Read z axis accelerometer bias correction enable bit value.

Parameters
adis- The adis device.
bias_corr_en_za- The z axis accelerometer bias correction enable bit read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_bias_corr_en_zg()

int adis_read_bias_corr_en_zg ( struct adis_dev adis,
uint32_t *  bias_corr_en_zg 
)

Read z axis gyroscope bias correction enable bit value.

Parameters
adis- The adis device.
bias_corr_en_zg- The z axis gyroscope bias correction enable bit read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_bias_corr_tbc()

int adis_read_bias_corr_tbc ( struct adis_dev adis,
uint32_t *  bias_corr_tbc 
)

Read time base control value.

Parameters
adis- The adis device.
bias_corr_tbc- The time base control read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_boot_rev()

int adis_read_boot_rev ( struct adis_dev adis,
uint32_t *  boot_rev 
)

Read boot loader revision value.

Parameters
adis- The adis device.
boot_rev- The boot loader revision value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_burst32()

int adis_read_burst32 ( struct adis_dev adis,
uint32_t *  burst32 
)

Read burst32 enable bit value.

Parameters
adis- The adis device.
burst32- The burst32 enable bit value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_burst_data()

int adis_read_burst_data ( struct adis_dev adis,
struct adis_burst_data data,
bool  burst32,
uint8_t  burst_sel,
bool  fifo_pop,
bool  crc_check 
)

Read burst data.

Parameters
adis- The adis device.
data- The burst read data structure to be populated.
burst32- True if 32-bit data is requested for accel and gyro (or delta angle and delta velocity) measurements, false if 16-bit data is requested.
burst_sel- 0 if accel and gyro data is requested, 1 if delta angle and delta velocity is requested.
fifo_pop- In case FIFO is present, will pop the fifo if true. Unused if FIFO is not present.
crc_check- If true CRC will be checked, if false check will be skipped.
Returns
0 in case of success, error code otherwise. -EAGAIN in case the request has to be sent again due to data being unavailable at the time of the request.

◆ adis_read_burst_sel()

int adis_read_burst_sel ( struct adis_dev adis,
uint32_t *  burst_sel 
)

Read burst selection encoded value.

Parameters
adis- The adis device.
burst_sel- The burst selection encoded value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_data_cntr()

int adis_read_data_cntr ( struct adis_dev adis,
uint32_t *  data_cntr 
)

Read data counter value.

Parameters
adis- The adis device.
data_cntr- The read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_dec_rate()

int adis_read_dec_rate ( struct adis_dev adis,
uint32_t *  dec_rate 
)

Read decimation rate value.

Parameters
adis- The adis device.
dec_rate- The decimation rate read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_accl_failure()

int adis_read_diag_accl_failure ( struct adis_dev adis,
uint32_t *  accl_failure 
)

Diagnosis: read accelerometer self test error flag value.

Parameters
adis- The adis device.
accl_failure- Accelerometer self test error flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_aduc_mcu_fault()

int adis_read_diag_aduc_mcu_fault ( struct adis_dev adis,
uint32_t *  aduc_mcu_fault 
)

Diagnosis: read ADuC microcontroller fault flag value.

Parameters
adis- The adis device.
aduc_mcu_fault- ADuC microcontroller fault flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_boot_memory_failure()

int adis_read_diag_boot_memory_failure ( struct adis_dev adis,
uint32_t *  boot_memory_failure 
)

Diagnosis: read boot memory failure error flag value.

Parameters
adis- The adis device.
boot_memory_failure- Boot memory failure error flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_checksum_err()

void adis_read_diag_checksum_err ( struct adis_dev adis,
uint32_t *  checksum_err 
)

Diagnosis: read checksum error flag value.

Parameters
adis- The adis device.
checksum_err- Checksum error flag value.
Here is the caller graph for this function:

◆ adis_read_diag_clk_err()

int adis_read_diag_clk_err ( struct adis_dev adis,
uint32_t *  clk_err 
)

Diagnosis: read clock error flag value.

Parameters
adis- The adis device.
clk_err- Clock error flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_config_calib_crc_error()

int adis_read_diag_config_calib_crc_error ( struct adis_dev adis,
uint32_t *  config_calib_crc_error 
)

Diagnosis: read configuration and/or calibration CRC error flag value.

Parameters
adis- The adis device.
config_calib_crc_error- Configuration and/or calibration CRC error flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_data_path_overrun()

int adis_read_diag_data_path_overrun ( struct adis_dev adis,
uint32_t *  data_path_overrun_err 
)

Diagnosis: read data path overrun flag value.

Parameters
adis- The adis device.
data_path_overrun_err- Data path overrun flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_ext_5v_supply_err()

int adis_read_diag_ext_5v_supply_err ( struct adis_dev adis,
uint32_t *  ext_5v_supply_err 
)

Diagnosis: read external 5V supply error flag value.

Parameters
adis- The adis device.
ext_5v_supply_err- External 5V supply error flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_fls_mem_update_failure()

int adis_read_diag_fls_mem_update_failure ( struct adis_dev adis,
uint32_t *  fls_mem_update_failure 
)

Diagnosis: read flash memory update error flag value.

Parameters
adis- The adis device.
fls_mem_update_failure- Flash memory update error flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_fls_mem_wr_cnt_exceed()

void adis_read_diag_fls_mem_wr_cnt_exceed ( struct adis_dev adis,
uint32_t *  fls_mem_wr_cnt_exceed 
)

Diagnosis: read flash memory write counts exceeded flag value.

Parameters
adis- The adis device.
fls_mem_wr_cnt_exceed- Flash memory write counts exceeded flag value.
Here is the caller graph for this function:

◆ adis_read_diag_gyro1_failure()

int adis_read_diag_gyro1_failure ( struct adis_dev adis,
uint32_t *  gyro1_failure 
)

Diagnosis: read gyroscope1 self test error flag value.

Parameters
adis- The adis device.
gyro1_failure- Gyroscope1 self test error flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_gyro2_failure()

int adis_read_diag_gyro2_failure ( struct adis_dev adis,
uint32_t *  gyro2_failure 
)

Diagnosis: read gyroscope2 self test error flag value.

Parameters
adis- The adis device.
gyro2_failure- Gyroscope2 self test error flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_int_proc_supply_err()

int adis_read_diag_int_proc_supply_err ( struct adis_dev adis,
uint32_t *  int_proc_supply_err 
)

Diagnosis: read internal processor supply error flag value.

Parameters
adis- The adis device.
int_proc_supply_err- Internal processor supply error flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_int_reg_err()

int adis_read_diag_int_reg_err ( struct adis_dev adis,
uint32_t *  int_reg_err 
)

Diagnosis: read internal regulator error flag value.

Parameters
adis- The adis device.
int_reg_err- Internal regulator error flag value.
Returns
0 in case of success, error code otherwise.

◆ adis_read_diag_int_snsr_supply_err()

int adis_read_diag_int_snsr_supply_err ( struct adis_dev adis,
uint32_t *  int_snsr_supply_err 
)

Diagnosis: read internal sensor supply error flag value.

Parameters
adis- The adis device.
int_snsr_supply_err- Internal sensor supply error flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_mem_failure()

int adis_read_diag_mem_failure ( struct adis_dev adis,
uint32_t *  mem_failure 
)

Diagnosis: read flash memory test error flag value.

Parameters
adis- The adis device.
mem_failure- Flash memory test error flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_overrange()

int adis_read_diag_overrange ( struct adis_dev adis,
uint32_t *  overrange 
)

Diagnosis: read overrange for inertial sensors flag value.

Parameters
adis- The adis device.
overrange- Overrange for inertial sensors flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_power_supply_failure()

int adis_read_diag_power_supply_failure ( struct adis_dev adis,
uint32_t *  power_supply_failure 
)

Diagnosis: read power supply error flag value.

Parameters
adis- The adis device.
power_supply_failure- Power supply error flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_reg_nvm_err()

int adis_read_diag_reg_nvm_err ( struct adis_dev adis,
uint32_t *  reg_nvm_err 
)

Diagnosis: read register NVM error flag value.

Parameters
adis- The adis device.
reg_nvm_err- Register NVM error flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_snsr_failure()

int adis_read_diag_snsr_failure ( struct adis_dev adis,
uint32_t *  snsr_failure 
)

Diagnosis: read sensor self test error flag value.

Parameters
adis- The adis device.
snsr_failure- Sensor self test error flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_snsr_init_failure()

int adis_read_diag_snsr_init_failure ( struct adis_dev adis,
uint32_t *  snsr_init_failure 
)

Diagnosis: read sensor initialization failure flag value.

Parameters
adis- The adis device.
snsr_init_failure- Sensor initialization failure flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_spi_comm_err()

int adis_read_diag_spi_comm_err ( struct adis_dev adis,
uint32_t *  spi_comm_err 
)

Diagnosis: read spi communication error flag value.

Parameters
adis- The adis device.
spi_comm_err- Spi communication error flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_standby_mode()

int adis_read_diag_standby_mode ( struct adis_dev adis,
uint32_t *  standby_mode 
)

Diagnosis: read standby mode flag value.

Parameters
adis- The adis device.
standby_mode- Standby mode flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_stat()

int adis_read_diag_stat ( struct adis_dev adis,
struct adis_diag_flags diag_flags 
)

Read diag status register and update device diag flags.

Parameters
adis- The adis device.
diag_flags- The read diag flags.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_temp_err()

int adis_read_diag_temp_err ( struct adis_dev adis,
uint32_t *  temp_err 
)

Diagnosis: read temperature error flag value.

Parameters
adis- The adis device.
temp_err- Temperature error flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_wdg_timer_flag()

int adis_read_diag_wdg_timer_flag ( struct adis_dev adis,
uint32_t *  wdg_timer_flag 
)

Diagnosis: read watchdog timer flag value.

Parameters
adis- The adis device.
wdg_timer_flag- Watchdog timer flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_x_axis_accl_failure()

int adis_read_diag_x_axis_accl_failure ( struct adis_dev adis,
uint32_t *  x_axis_accl_failure 
)

Diagnosis: read X-Axis Accelerometer failure flag value.

Parameters
adis- The adis device.
x_axis_accl_failure- X-Axis Accelerometer failure flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_x_axis_gyro_failure()

int adis_read_diag_x_axis_gyro_failure ( struct adis_dev adis,
uint32_t *  x_axis_gyro_failure 
)

Diagnosis: read X-Axis Gyroscope failure flag value.

Parameters
adis- The adis device.
x_axis_gyro_failure- X-Axis Gyroscope failure flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_y_axis_accl_failure()

int adis_read_diag_y_axis_accl_failure ( struct adis_dev adis,
uint32_t *  y_axis_accl_failure 
)

Diagnosis: read Y-Axis Accelerometer failure flag value.

Parameters
adis- The adis device.
y_axis_accl_failure- Y-Axis Accelerometer failure flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_y_axis_gyro_failure()

int adis_read_diag_y_axis_gyro_failure ( struct adis_dev adis,
uint32_t *  y_axis_gyro_failure 
)

Diagnosis: read Y-Axis Gyroscope failure flag value.

Parameters
adis- The adis device.
y_axis_gyro_failure- Y-Axis Gyroscope failure flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_z_axis_accl_failure()

int adis_read_diag_z_axis_accl_failure ( struct adis_dev adis,
uint32_t *  z_axis_accl_failure 
)

Diagnosis: read Z-Axis Accelerometer failure flag value.

Parameters
adis- The adis device.
z_axis_accl_failure- Z-Axis Accelerometer failure flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_diag_z_axis_gyro_failure()

int adis_read_diag_z_axis_gyro_failure ( struct adis_dev adis,
uint32_t *  z_axis_gyro_failure 
)

Diagnosis: read Z-Axis Gyroscope failure flag value.

Parameters
adis- The adis device.
z_axis_gyro_failure- Z-Axis Gyroscope failure flag value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_dr_enable()

int adis_read_dr_enable ( struct adis_dev adis,
uint32_t *  dr_enable 
)

Read data ready enable encoded value.

Parameters
adis- The adis device.
dr_enable- The data ready enable encoded value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_dr_polarity()

int adis_read_dr_polarity ( struct adis_dev adis,
uint32_t *  dr_polarity 
)

Read data ready polarity encoded value.

Parameters
adis- The adis device.
dr_polarity- The data ready polarity encoded value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_dr_selection()

int adis_read_dr_selection ( struct adis_dev adis,
uint32_t *  dr_selection 
)

Read data ready selection encoded value.

Parameters
adis- The adis device.
dr_selection- The data ready selection encoded value. 0: DIO1 1: DIO2 2: DIO3 3: DIO4
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_field_s32()

int adis_read_field_s32 ( struct adis_dev adis,
struct adis_field  field,
int32_t *  field_val 
)

Read field to int32 value.

Parameters
adis- The adis device.
field- The field structure to be read
field_val- The read field value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_field_u32()

int adis_read_field_u32 ( struct adis_dev adis,
struct adis_field  field,
uint32_t *  field_val 
)

Read field to uint32 value.

Parameters
adis- The adis device.
field- The field structure to be read
field_val- The read field value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_fifo_cnt()

int adis_read_fifo_cnt ( struct adis_dev adis,
uint32_t *  fifo_cnt 
)

Read output FIFO sample count.

Parameters
adis- The adis device.
fifo_cnt- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_fifo_en()

int adis_read_fifo_en ( struct adis_dev adis,
uint32_t *  fifo_en 
)

FIFO control: read FIFO enable bit value.

Here is the caller graph for this function:

◆ adis_read_fifo_overflow()

int adis_read_fifo_overflow ( struct adis_dev adis,
uint32_t *  fifo_overflow 
)

Read FIFO overflow bit value.

Parameters
adis- The adis device.
fifo_overflow- The FIFO overflow bit read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_fifo_wm_int_en()

int adis_read_fifo_wm_int_en ( struct adis_dev adis,
uint32_t *  fifo_wm_int_en 
)

Read FIFO watermark interrupt enable bit value.

Parameters
adis- The adis device.
fifo_wm_int_en- The FIFO watermark interrupt enable bit read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_fifo_wm_int_pol()

int adis_read_fifo_wm_int_pol ( struct adis_dev adis,
uint32_t *  fifo_wm_int_pol 
)

Read FIFO watermark interrupt polarity bit value.

Parameters
adis- The adis device.
fifo_wm_int_pol- The FIFO watermark interrupt polarity bit read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_fifo_wm_lvl()

int adis_read_fifo_wm_lvl ( struct adis_dev adis,
uint32_t *  fifo_wm_lvl 
)

Read FIFO watermark threshold level value.

Parameters
adis- The adis device.
fifo_wm_lvl- The FIFO watermark threshold level read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_filt_size_var_b()

int adis_read_filt_size_var_b ( struct adis_dev adis,
uint32_t *  filt_size_var_b 
)

Read filter size variable B value.

Parameters
adis- The adis device.
filt_size_var_b- The filter size variable B read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_fir_bank_sel_xa()

int adis_read_fir_bank_sel_xa ( struct adis_dev adis,
uint32_t *  fir_bank_sel_xa 
)

Read x axis accelerometer filter bank selection encoded value.

Parameters
adis- The adis device.
fir_bank_sel_xa- The x axis accelerometer filter bank selection encoded value. 0: Bank A 1: Bank B 2: Bank C 3: Bank D
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_fir_bank_sel_xg()

int adis_read_fir_bank_sel_xg ( struct adis_dev adis,
uint32_t *  fir_bank_sel_xg 
)

Read x axis gyroscope filter bank selection encoded value.

Parameters
adis- The adis device.
fir_bank_sel_xg- The x axis gyroscope filter bank selection encoded value. 0: Bank A 1: Bank B 2: Bank C 3: Bank D
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_fir_bank_sel_ya()

int adis_read_fir_bank_sel_ya ( struct adis_dev adis,
uint32_t *  fir_bank_sel_ya 
)

Read y axis accelerometer filter bank selection encoded value.

Parameters
adis- The adis device.
fir_bank_sel_ya- The y axis accelerometer filter bank selection encoded value. 0: Bank A 1: Bank B 2: Bank C 3: Bank D
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_fir_bank_sel_yg()

int adis_read_fir_bank_sel_yg ( struct adis_dev adis,
uint32_t *  fir_bank_sel_yg 
)

Read y axis gyroscope filter bank selection encoded value.

Parameters
adis- The adis device.
fir_bank_sel_yg- The y axis gyroscope filter bank selection encoded value. 0: Bank A 1: Bank B 2: Bank C 3: Bank D
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_fir_bank_sel_za()

int adis_read_fir_bank_sel_za ( struct adis_dev adis,
uint32_t *  fir_bank_sel_za 
)

Read z axis accelerometer filter bank selection encoded value.

Parameters
adis- The adis device.
fir_bank_sel_za- The z axis accelerometer filter bank selection encoded value. 0: Bank A 1: Bank B 2: Bank C 3: Bank D
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_fir_bank_sel_zg()

int adis_read_fir_bank_sel_zg ( struct adis_dev adis,
uint32_t *  fir_bank_sel_zg 
)

Read z axis gyroscope filter bank selection encoded value.

Parameters
adis- The adis device.
fir_bank_sel_zg- The z axis gyroscope filter bank selection encoded value. 0: Bank A 1: Bank B 2: Bank C 3: Bank D
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_fir_coef()

int adis_read_fir_coef ( struct adis_dev adis,
uint8_t  coef_idx,
uint32_t *  coef 
)

Read FIR Filter Coefficient C_coef_idx value.

Parameters
adis- The adis device.
coef_idx- The coefficient id.
coef- The coefficient value.
Returns
0 in case of success, error code otherwise.

◆ adis_read_fir_coef_bank_a()

int adis_read_fir_coef_bank_a ( struct adis_dev adis,
uint8_t  coef_idx,
uint32_t *  coef 
)

Read FIR Filter Coefficient Bank A idx value.

Parameters
adis- The adis device.
coef_idx- The coefficient id.
coef- The coefficient value.
Returns
0 in case of success, error code otherwise.

◆ adis_read_fir_coef_bank_b()

int adis_read_fir_coef_bank_b ( struct adis_dev adis,
uint8_t  coef_idx,
uint32_t *  coef 
)

Read FIR Filter Coefficient Bank B idx value.

Parameters
adis- The adis device.
coef_idx- The coefficient id.
coef- The coefficient value.
Returns
0 in case of success, error code otherwise.

◆ adis_read_fir_coef_bank_c()

int adis_read_fir_coef_bank_c ( struct adis_dev adis,
uint8_t  coef_idx,
uint32_t *  coef 
)

Read FIR Filter Coefficient Bank C idx value.

Parameters
adis- The adis device.
coef_idx- The coefficient id.
coef- The coefficient value.
Returns
0 in case of success, error code otherwise.

◆ adis_read_fir_coef_bank_d()

int adis_read_fir_coef_bank_d ( struct adis_dev adis,
uint8_t  coef_idx,
uint32_t *  coef 
)

Read FIR Filter Coefficient Bank D idx value.

Parameters
adis- The adis device.
coef_idx- The coefficient id.
coef- The coefficient value.
Returns
0 in case of success, error code otherwise.

◆ adis_read_fir_en_xa()

int adis_read_fir_en_xa ( struct adis_dev adis,
uint32_t *  fir_en_xa 
)

Read x axis accelerometer filter enable bit value.

Parameters
adis- The adis device.
fir_en_xa- The x axis accelerometer filter enable bit read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_fir_en_xg()

int adis_read_fir_en_xg ( struct adis_dev adis,
uint32_t *  fir_en_xg 
)

Read x axis gyroscope filter enable bit value.

Parameters
adis- The adis device.
fir_en_xg- The x axis gyroscope filter enable bit read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_fir_en_ya()

int adis_read_fir_en_ya ( struct adis_dev adis,
uint32_t *  fir_en_ya 
)

Read y axis accelerometer filter enable bit value.

Parameters
adis- The adis device.
fir_en_ya- The y axis accelerometer filter enable bit read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_fir_en_yg()

int adis_read_fir_en_yg ( struct adis_dev adis,
uint32_t *  fir_en_yg 
)

Read y axis gyroscope filter enable bit value.

Parameters
adis- The adis device.
fir_en_yg- The y axis gyroscope filter enable bit read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_fir_en_za()

int adis_read_fir_en_za ( struct adis_dev adis,
uint32_t *  fir_en_za 
)

Read z axis accelerometer filter enable bit value.

Parameters
adis- The adis device.
fir_en_za- The z axis accelerometer filter enable bit read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_fir_en_zg()

int adis_read_fir_en_zg ( struct adis_dev adis,
uint32_t *  fir_en_zg 
)

Read z axis gyroscope filter enable bit value.

Parameters
adis- The adis device.
fir_en_zg- The z axis gyroscope filter enable bit read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_firm_d()

int adis_read_firm_d ( struct adis_dev adis,
uint32_t *  firm_d 
)

Read firmware factory configuration day value.

Parameters
adis- The adis device.
firm_d- The factory configuration day value.
Returns
0 in case of success, error code otherwise.

◆ adis_read_firm_m()

int adis_read_firm_m ( struct adis_dev adis,
uint32_t *  firm_m 
)

Read firmware factory configuration month value.

Parameters
adis- The adis device.
firm_m- The factory configuration month value.
Returns
0 in case of success, error code otherwise.

◆ adis_read_firm_rev()

int adis_read_firm_rev ( struct adis_dev adis,
uint32_t *  firm_rev 
)

Read firmware revision value.

Parameters
adis- The adis device.
firm_rev- The firmware revision value.
Returns
0 in case of success, error code otherwise.

◆ adis_read_firm_y()

int adis_read_firm_y ( struct adis_dev adis,
uint32_t *  firm_y 
)

Read firmware factory configuration year value.

Parameters
adis- The adis device.
firm_y- The factory configuration year value.
Returns
0 in case of success, error code otherwise.

◆ adis_read_fls_mem_wr_cntr()

int adis_read_fls_mem_wr_cntr ( struct adis_dev adis,
uint32_t *  fls_mem_wr_cntr 
)

Read flash memory write cycle counter value.

Parameters
adis- The adis device.
fls_mem_wr_cntr- The flash memory write cycle counter value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_gpio_dir()

int adis_read_gpio_dir ( struct adis_dev adis,
uint8_t  dio_nb,
uint32_t *  dir 
)

Read gpio configured direction.

Parameters
adis- The adis device.
dio_nb- The DIO selection encoded value. 0: DIO1 1: DIO2 2: DIO3 3: DIO4
dir- DIO direction (0 - input, 1 - output)
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_gpio_lvl()

int adis_read_gpio_lvl ( struct adis_dev adis,
uint8_t  dio_nb,
uint32_t *  level 
)

Read gpio configured data level.

Parameters
adis- The adis device.
dio_nb- The DIO selection encoded value. 0: DIO1 1: DIO2 2: DIO3 3: DIO4
level- DIO data level (0 - low, 1 - high).
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_gyro_fir_enable()

int adis_read_gyro_fir_enable ( struct adis_dev adis,
uint32_t *  gyro_fir_enable 
)

Read gyroscope FIR filter control bit value.

Parameters
adis- The adis device.
gyro_fir_enable- The gyroscope FIR filter control bit value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_gyro_meas_range()

int adis_read_gyro_meas_range ( struct adis_dev adis,
uint32_t *  gyro_meas_range 
)

Read gyroscope measurement range value.

Parameters
adis- The adis device.
gyro_meas_range- The gyroscope measurement range value.
Returns
0 in case of success, error code otherwise.

◆ adis_read_linear_accl_comp()

int adis_read_linear_accl_comp ( struct adis_dev adis,
uint32_t *  linear_accl_comp 
)

Read linear acceleration compensation enable bit value.

Parameters
adis- The adis device.
linear_accl_comp- The linear acceleration compensation enable bit value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_lot_num()

int adis_read_lot_num ( struct adis_dev adis,
uint32_t *  lot_num 
)

Read lot specific number value.

Parameters
adis- The adis device.
lot_num- The lot specific number value.
Returns
0 in case of success, error code otherwise.

◆ adis_read_lpf()

int adis_read_lpf ( struct adis_dev adis,
enum adis_chan_type  chan,
enum adis_axis_type  axis,
uint32_t *  freq 
)

Read configured filter frequency.

Parameters
adis- The adis device.
chan- The adis channel.
axis- Tha adis channel axis.
freq- The filter frequency, in Hz.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_proc_rev()

int adis_read_proc_rev ( struct adis_dev adis,
uint32_t *  proc_rev 
)

Read processor revision value.

Parameters
adis- The adis device.
proc_rev- The processor revision value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_prod_id()

int adis_read_prod_id ( struct adis_dev adis,
uint32_t *  prod_id 
)

Read product id value.

Parameters
adis- The adis device.
prod_id- The product id value.
Returns
0 in case of success, error code otherwise.

◆ adis_read_pt_of_perc_algnmt()

int adis_read_pt_of_perc_algnmt ( struct adis_dev adis,
uint32_t *  pt_of_perc_algnmt 
)

Read point of percussion alignment enable bit value.

Parameters
adis- The adis device.
pt_of_perc_algnmt- The point of percussion alignment enable bit value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_reg()

int adis_read_reg ( struct adis_dev adis,
uint32_t  reg,
uint32_t *  val,
uint32_t  size 
)

Read N bytes from register.

Parameters
adis- The adis device.
reg- The address of the lower of the two registers.
val- The value read back from the device.
size- The size of the val buffer.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_sens_bw()

int adis_read_sens_bw ( struct adis_dev adis,
uint32_t *  sens_bw 
)

Read internal sensor bandwidth encoded value.

Parameters
adis- The adis device.
sens_bw- The internal sensor bandwidth encoded value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_serial_num()

int adis_read_serial_num ( struct adis_dev adis,
uint32_t *  serial_num 
)

Read serial number value.

Parameters
adis- The adis device.
serial_num- The serial number value.
Returns
0 in case of success, error code otherwise.

◆ adis_read_spi_chksum()

int adis_read_spi_chksum ( struct adis_dev adis,
uint32_t *  checksum 
)

Read current sample SPI transaction checksum.

Parameters
adis- The adis device.
checksum- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_sync_4khz()

int adis_read_sync_4khz ( struct adis_dev adis,
uint32_t *  sync_4khz 
)

Read 4khz internal sync enable bit value.

Parameters
adis- The adis device.
sync_4khz- The 4khz internal sync enable bit value (1/0 - enabled/disabled).
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_sync_mode()

int adis_read_sync_mode ( struct adis_dev adis,
uint32_t *  sync_mode 
)

Read synchronization mode encoded value.

Parameters
adis- The adis device.
sync_mode- The synchronization mode encoded value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_sync_polarity()

int adis_read_sync_polarity ( struct adis_dev adis,
uint32_t *  sync_polarity 
)

Read sync polarity encoded value.

Parameters
adis- The adis device.
sync_polarity- The sync polarity encoded value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_sync_selection()

int adis_read_sync_selection ( struct adis_dev adis,
uint32_t *  sync_selection 
)

Read sync selection encoded value.

Parameters
adis- The adis device.
sync_selection- The sync selection encoded value. 0: DIO1 1: DIO2 2: DIO3 3: DIO4
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_temp_flags()

int adis_read_temp_flags ( struct adis_dev adis,
struct adis_temp_flags temp_flags 
)

Read temperature flags. Currently this implementation is valid only for adis16550. If further other devices support this feature, it should be checked wether the register structure remains the same. If not, a similar approach to diagnosis flags should be implemented.

Parameters
adis- The adis device.
temp_flags- The read temperature flags flags.
Returns
0 in case of success, error code otherwise.

◆ adis_read_temp_out()

int adis_read_temp_out ( struct adis_dev adis,
int32_t *  temp_out 
)

Read raw temperature data.

Parameters
adis- The adis device.
temp_out- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_time_stamp()

int adis_read_time_stamp ( struct adis_dev adis,
uint32_t *  time_stamp 
)

Read raw time stamp data.

Parameters
adis- The adis device.
time_stamp- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_timestamp32()

int adis_read_timestamp32 ( struct adis_dev adis,
uint32_t *  timestamp32 
)

Read timestamp32 enable bit value.

Parameters
adis- The adis device.
timestamp32- The timestamp32 enable bit value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_up_scale()

int adis_read_up_scale ( struct adis_dev adis,
uint32_t *  up_scale 
)

Read external clock scale factor value.

Parameters
adis- The adis device.
up_scale- The external clock scale factor read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_usr_scr_1()

int adis_read_usr_scr_1 ( struct adis_dev adis,
uint32_t *  usr_scr_1 
)

Read user scratch register 1 value.

Parameters
adis- The adis device.
usr_scr_1- The user scratch register 1 value.
Returns
0 in case of success, error code otherwise.

◆ adis_read_usr_scr_2()

int adis_read_usr_scr_2 ( struct adis_dev adis,
uint32_t *  usr_scr_2 
)

Read user scratch register 2 value.

Parameters
adis- The adis device.
usr_scr_2- The user scratch register 2 value.
Returns
0 in case of success, error code otherwise.

◆ adis_read_usr_scr_3()

int adis_read_usr_scr_3 ( struct adis_dev adis,
uint32_t *  usr_scr_3 
)

Read user scratch register 3 value.

Parameters
adis- The adis device.
usr_scr_3- The user scratch register 3 value.
Returns
0 in case of success, error code otherwise.

◆ adis_read_usr_scr_4()

int adis_read_usr_scr_4 ( struct adis_dev adis,
uint32_t *  usr_scr_4 
)

Read user scratch register 4 value.

Parameters
adis- The adis device.
usr_scr_4- The user scratch register 4 value.
Returns
0 in case of success, error code otherwise.

◆ adis_read_x_accl()

int adis_read_x_accl ( struct adis_dev adis,
int32_t *  x_accl 
)

Read raw acceleration data on x axis.

Parameters
adis- The adis device.
x_accl- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_x_deltang()

int adis_read_x_deltang ( struct adis_dev adis,
int32_t *  x_deltang 
)

Read raw delta angle data on x axis.

Parameters
adis- The adis device.
x_deltang- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_x_deltvel()

int adis_read_x_deltvel ( struct adis_dev adis,
int32_t *  x_deltvel 
)

Read raw delta velocity data on x axis.

Parameters
adis- The adis device.
x_deltvel- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_x_gyro()

int adis_read_x_gyro ( struct adis_dev adis,
int32_t *  x_gyro 
)

Read raw gyroscope data on x axis.

Parameters
adis- The adis device.
x_gyro- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_xa_bias()

int adis_read_xa_bias ( struct adis_dev adis,
int32_t *  xa_bias 
)

Read raw acceleration offset correction on x axis.

Parameters
adis- The adis device.
xa_bias- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_xa_scale()

int adis_read_xa_scale ( struct adis_dev adis,
int32_t *  xa_scale 
)

Read raw acceleration scale adjustment on x axis.

Parameters
adis- The adis device.
xa_scale- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_xg_bias()

int adis_read_xg_bias ( struct adis_dev adis,
int32_t *  xg_bias 
)

Read raw gyroscope offset correction on x axis.

Parameters
adis- The adis device.
xg_bias- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_xg_scale()

int adis_read_xg_scale ( struct adis_dev adis,
int32_t *  xg_scale 
)

Read raw gyroscope scale adjustment on x axis.

Parameters
adis- The adis device.
xg_scale- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_y_accl()

int adis_read_y_accl ( struct adis_dev adis,
int32_t *  y_accl 
)

Read raw acceleration data on y axis.

Parameters
adis- The adis device.
y_accl- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_y_deltang()

int adis_read_y_deltang ( struct adis_dev adis,
int32_t *  y_deltang 
)

Read raw delta angle data on y axis.

Parameters
adis- The adis device.
y_deltang- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_y_deltvel()

int adis_read_y_deltvel ( struct adis_dev adis,
int32_t *  y_deltvel 
)

Read raw delta velocity data on y axis.

Parameters
adis- The adis device.
y_deltvel- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_y_gyro()

int adis_read_y_gyro ( struct adis_dev adis,
int32_t *  y_gyro 
)

Read raw gyroscope data on y axis.

Parameters
adis- The adis device.
y_gyro- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_ya_bias()

int adis_read_ya_bias ( struct adis_dev adis,
int32_t *  ya_bias 
)

Read raw acceleration offset correction on y axis.

Parameters
adis- The adis device.
ya_bias- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_ya_scale()

int adis_read_ya_scale ( struct adis_dev adis,
int32_t *  ya_scale 
)

Read raw acceleration scale adjustment on y axis.

Parameters
adis- The adis device.
ya_scale- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_yg_bias()

int adis_read_yg_bias ( struct adis_dev adis,
int32_t *  yg_bias 
)

Read raw gyroscope offset correction on y axis.

Parameters
adis- The adis device.
yg_bias- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_yg_scale()

int adis_read_yg_scale ( struct adis_dev adis,
int32_t *  yg_scale 
)

Read raw gyroscope scale adjustment on y axis.

Parameters
adis- The adis device.
yg_scale- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_z_accl()

int adis_read_z_accl ( struct adis_dev adis,
int32_t *  z_accl 
)

Read raw acceleration data on z axis.

Parameters
adis- The adis device.
z_accl- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_z_deltang()

int adis_read_z_deltang ( struct adis_dev adis,
int32_t *  z_deltang 
)

Read raw delta angle data on z axis.

Parameters
adis- The adis device.
z_deltang- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_z_deltvel()

int adis_read_z_deltvel ( struct adis_dev adis,
int32_t *  z_deltvel 
)

Read raw delta velocity data on z axis.

Parameters
adis- The adis device.
z_deltvel- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_z_gyro()

int adis_read_z_gyro ( struct adis_dev adis,
int32_t *  z_gyro 
)

Read raw gyroscope data on z axis.

Parameters
adis- The adis device.
z_gyro- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_za_bias()

int adis_read_za_bias ( struct adis_dev adis,
int32_t *  za_bias 
)

Read raw acceleration offset correction on z axis.

Parameters
adis- The adis device.
za_bias- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_za_scale()

int adis_read_za_scale ( struct adis_dev adis,
int32_t *  za_scale 
)

Read raw acceleration scale adjustment on z axis.

Parameters
adis- The adis device.
za_scale- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_zg_bias()

int adis_read_zg_bias ( struct adis_dev adis,
int32_t *  zg_bias 
)

Read raw gyroscope offset correction on z axis.

Parameters
adis- The adis device.
zg_bias- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_read_zg_scale()

int adis_read_zg_scale ( struct adis_dev adis,
int32_t *  zg_scale 
)

Read raw gyroscope scale adjustment on z axis.

Parameters
adis- The adis device.
zg_scale- The raw read value.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_remove()

void adis_remove ( struct adis_dev adis)

Remove adis device.

Parameters
adis- The adis device.
Here is the caller graph for this function:

◆ adis_update_bits_base()

int adis_update_bits_base ( struct adis_dev adis,
uint32_t  reg,
const uint32_t  mask,
const uint32_t  val,
uint8_t  size 
)

Update the desired bits of reg in accordance with mask and val.

Parameters
adis- The adis device.
reg- The address of the lower of the two registers.
mask- Bitmask to change.
val- The value to be written.
size- Size of the register to update.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_update_diag_flags()

void adis_update_diag_flags ( struct adis_dev adis,
uint32_t  diag_stat 
)

Update device diagnosis flags according to the received parameter.

Parameters
adis- The adis device.
diag_stat- Diagnosis flags.
Here is the caller graph for this function:

◆ adis_update_ext_clk_freq()

int adis_update_ext_clk_freq ( struct adis_dev adis,
uint32_t  clk_freq 
)

Update external clock frequency.

Parameters
adis- The adis device.
clk_freq- New external clock frequency in Hz.
Returns
0 in case of success, error code otherwise.

◆ adis_update_temp_flags()

void adis_update_temp_flags ( struct adis_dev adis,
uint16_t  temp_reg 
)

Update device temperature flags according to the received parameter.

Parameters
adis- The adis device.
temp_reg- Temperature flags register value.

◆ adis_validate_checksum()

bool adis_validate_checksum ( uint8_t *  buffer,
uint8_t  size,
uint8_t  idx 
)

Check if the checksum for burst data is correct.

Parameters
buffer- The received burst data buffer.
size- The size of the buffer.
idx- The start index in the buffer to check the checksum.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_accl_fir_enable()

int adis_write_accl_fir_enable ( struct adis_dev adis,
uint32_t  accl_fir_enable 
)

Write accelerometer FIR filter control bit value.

Parameters
adis- The adis device.
accl_fir_enable- The accelerometer FIR filter control bit value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_alarm_enable()

int adis_write_alarm_enable ( struct adis_dev adis,
uint32_t  alarm_enable 
)

Write alarm enable encoded value.

Parameters
adis- The adis device.
alarm_enable- The alarm enable encoded value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_alarm_polarity()

int adis_write_alarm_polarity ( struct adis_dev adis,
uint32_t  alarm_polarity 
)

Write alarm polarity encoded value.

Parameters
adis- The adis device.
alarm_polarity- The alarm polarity encoded value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_alarm_selection()

int adis_write_alarm_selection ( struct adis_dev adis,
uint32_t  alarm_selection 
)

Write alarm selection encoded value.

Parameters
adis- The adis device.
alarm_selection- The alarm selection encoded value to write. 0: DIO1 1: DIO2 2: DIO3 3: DIO4
Returns
0 in case of success, error code otherwise.

◆ adis_write_bias_corr_en_xa()

int adis_write_bias_corr_en_xa ( struct adis_dev adis,
uint32_t  bias_corr_en_xa 
)

Write x axis accelerometer bias correction enable bit value.

Parameters
adis- The adis device.
bias_corr_en_xa- The x axis accelerometer bias correction enable bit value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_bias_corr_en_xg()

int adis_write_bias_corr_en_xg ( struct adis_dev adis,
uint32_t  bias_corr_en_xg 
)

Write x axis gyroscope bias correction enable bit value.

Parameters
adis- The adis device.
bias_corr_en_xg- The x axis gyroscope bias correction enable bit value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_bias_corr_en_ya()

int adis_write_bias_corr_en_ya ( struct adis_dev adis,
uint32_t  bias_corr_en_ya 
)

Write y axis accelerometer bias correction enable bit value.

Parameters
adis- The adis device.
bias_corr_en_ya- The y axis accelerometer bias correction enable bit value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_bias_corr_en_yg()

int adis_write_bias_corr_en_yg ( struct adis_dev adis,
uint32_t  bias_corr_en_yg 
)

Write y axis gyroscope bias correction enable bit value.

Parameters
adis- The adis device.
bias_corr_en_yg- The y axis gyroscope bias correction enable bit value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_bias_corr_en_za()

int adis_write_bias_corr_en_za ( struct adis_dev adis,
uint32_t  bias_corr_en_za 
)

Write z axis accelerometer bias correction enable bit value.

Parameters
adis- The adis device.
bias_corr_en_za- The z axis accelerometer bias correction enable bit value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_bias_corr_en_zg()

int adis_write_bias_corr_en_zg ( struct adis_dev adis,
uint32_t  bias_corr_en_zg 
)

Write z axis gyroscope bias correction enable bit value.

Parameters
adis- The adis device.
bias_corr_en_zg- The z axis gyroscope bias correction enable bit value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_bias_corr_tbc()

int adis_write_bias_corr_tbc ( struct adis_dev adis,
uint32_t  bias_corr_tbc 
)

Write time base control value.

Parameters
adis- The adis device.
bias_corr_tbc- The time base control value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_burst32()

int adis_write_burst32 ( struct adis_dev adis,
uint32_t  burst32 
)

Write burst32 enable bit value.

Parameters
adis- The adis device.
burst32- The burst32 enable bit value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_burst_sel()

int adis_write_burst_sel ( struct adis_dev adis,
uint32_t  burst_sel 
)

Write burst selection encoded value.

Parameters
adis- The adis device.
burst_sel- The burst selection encoded value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_dec_rate()

int adis_write_dec_rate ( struct adis_dev adis,
uint32_t  dec_rate 
)

Write decimation rate value.

Parameters
adis- The adis device.
dec_rate- The decimation rate value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_dr_enable()

int adis_write_dr_enable ( struct adis_dev adis,
uint32_t  dr_enable 
)

Write data ready enable encoded value.

Parameters
adis- The adis device.
dr_enable- The data ready enable encoded value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_dr_polarity()

int adis_write_dr_polarity ( struct adis_dev adis,
uint32_t  dr_polarity 
)

Write data ready polarity encoded value.

Parameters
adis- The adis device.
dr_polarity- The data ready polarity encoded value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_dr_selection()

int adis_write_dr_selection ( struct adis_dev adis,
uint32_t  dr_selection 
)

Write data ready selection encoded value.

Parameters
adis- The adis device.
dr_selection- The data ready selection encoded value to write. 0: DIO1 1: DIO2 2: DIO3 3: DIO4
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_field_u32()

int adis_write_field_u32 ( struct adis_dev adis,
struct adis_field  field,
uint32_t  field_val 
)

Write field from uint32 value.

Parameters
adis- The adis device.
field- The field structure to be written.
field_val- The field value to be written.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_fifo_en()

int adis_write_fifo_en ( struct adis_dev adis,
uint32_t  fifo_en 
)

Write FIFO enable bit value.

Parameters
adis- The adis device.
fifo_en- The FIFO enable bit value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_fifo_overflow()

int adis_write_fifo_overflow ( struct adis_dev adis,
uint32_t  fifo_overflow 
)

Write FIFO overflow bit value.

Parameters
adis- The adis device.
fifo_overflow- The FIFO overflow bit value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_fifo_wm_int_en()

int adis_write_fifo_wm_int_en ( struct adis_dev adis,
uint32_t  fifo_wm_int_en 
)

Write FIFO watermark interrupt enable bit value.

Parameters
adis- The adis device.
fifo_wm_int_en- The FIFO watermark interrupt enable bit value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_fifo_wm_int_pol()

int adis_write_fifo_wm_int_pol ( struct adis_dev adis,
uint32_t  fifo_wm_int_pol 
)

Write FIFO watermark interrupt polarity bit value.

Parameters
adis- The adis device.
fifo_wm_int_pol- The FIFO watermark interrupt polarity bit value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_fifo_wm_lvl()

int adis_write_fifo_wm_lvl ( struct adis_dev adis,
uint32_t  fifo_wm_lvl 
)

Write FIFO watermark threshold level value.

Parameters
adis- The adis device.
fifo_wm_lvl- The FIFO watermark threshold level value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_filt_size_var_b()

int adis_write_filt_size_var_b ( struct adis_dev adis,
uint32_t  filt_size_var_b 
)

Write filter size variable B value.

Parameters
adis- The adis device.
filt_size_var_b- The filter size variable B value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_fir_bank_sel_xa()

int adis_write_fir_bank_sel_xa ( struct adis_dev adis,
uint32_t  fir_bank_sel_xa 
)

Write x axis accelerometer filter bank selection encoded value.

Parameters
adis- The adis device.
fir_bank_sel_xa- The x axis accelerometer filter bank selection encoded value to write. 0: Bank A 1: Bank B 2: Bank C 3: Bank D
Returns
0 in case of success, error code otherwise.

◆ adis_write_fir_bank_sel_xg()

int adis_write_fir_bank_sel_xg ( struct adis_dev adis,
uint32_t  fir_bank_sel_xg 
)

Write x axis gyroscope filter bank selection encoded value.

Parameters
adis- The adis device.
fir_bank_sel_xg- The x axis gyroscope filter bank selection encoded value to write. 0: Bank A 1: Bank B 2: Bank C 3: Bank D
Returns
0 in case of success, error code otherwise.

◆ adis_write_fir_bank_sel_ya()

int adis_write_fir_bank_sel_ya ( struct adis_dev adis,
uint32_t  fir_bank_sel_ya 
)

Write y axis accelerometer filter bank selection encoded value.

Parameters
adis- The adis device.
fir_bank_sel_ya- The y axis accelerometer filter bank selection encoded value to write. 0: Bank A 1: Bank B 2: Bank C 3: Bank D
Returns
0 in case of success, error code otherwise.

◆ adis_write_fir_bank_sel_yg()

int adis_write_fir_bank_sel_yg ( struct adis_dev adis,
uint32_t  fir_bank_sel_yg 
)

Write y axis gyroscope filter bank selection encoded value.

Parameters
adis- The adis device.
fir_bank_sel_yg- The y axis gyroscope filter bank selection encoded value to write. 0: Bank A 1: Bank B 2: Bank C 3: Bank D
Returns
0 in case of success, error code otherwise.

◆ adis_write_fir_bank_sel_za()

int adis_write_fir_bank_sel_za ( struct adis_dev adis,
uint32_t  fir_bank_sel_za 
)

Write z axis accelerometer filter bank selection encoded value.

Parameters
adis- The adis device.
fir_bank_sel_za- The z axis accelerometer filter bank selection encoded value to write. 0: Bank A 1: Bank B 2: Bank C 3: Bank D
Returns
0 in case of success, error code otherwise.

◆ adis_write_fir_bank_sel_zg()

int adis_write_fir_bank_sel_zg ( struct adis_dev adis,
uint32_t  fir_bank_sel_zg 
)

Write z axis gyroscope filter bank selection encoded value.

Parameters
adis- The adis device.
fir_bank_sel_zg- The z axis gyroscope filter bank selection encoded value to write. 0: Bank A 1: Bank B 2: Bank C 3: Bank D
Returns
0 in case of success, error code otherwise.

◆ adis_write_fir_coef()

int adis_write_fir_coef ( struct adis_dev adis,
uint8_t  coef_idx,
uint32_t  coef 
)

Write FIR Filter Coefficient C_coef_idx value.

Parameters
adis- The adis device.
coef_idx- The coefficient id.
coef- The coefficient value.
Returns
0 in case of success, error code otherwise.

◆ adis_write_fir_coef_bank_a()

int adis_write_fir_coef_bank_a ( struct adis_dev adis,
uint8_t  coef_idx,
uint32_t  coef 
)

Write FIR Filter Coefficient Bank A idx value.

Parameters
adis- The adis device.
coef_idx- The coefficient id.
coef- The coefficient value.
Returns
0 in case of success, error code otherwise.

◆ adis_write_fir_coef_bank_b()

int adis_write_fir_coef_bank_b ( struct adis_dev adis,
uint8_t  coef_idx,
uint32_t  coef 
)

Write FIR Filter Coefficient Bank B idx value.

Parameters
adis- The adis device.
coef_idx- The coefficient id.
coef- The coefficient value.
Returns
0 in case of success, error code otherwise.

◆ adis_write_fir_coef_bank_c()

int adis_write_fir_coef_bank_c ( struct adis_dev adis,
uint8_t  coef_idx,
uint32_t  coef 
)

Write FIR Filter Coefficient Bank C idx value.

Parameters
adis- The adis device.
coef_idx- The coefficient id.
coef- The coefficient value.
Returns
0 in case of success, error code otherwise.

◆ adis_write_fir_coef_bank_d()

int adis_write_fir_coef_bank_d ( struct adis_dev adis,
uint8_t  coef_idx,
uint32_t  coef 
)

Write FIR Filter Coefficient Bank D idx value.

Parameters
adis- The adis device.
coef_idx- The coefficient id.
coef- The coefficient value.
Returns
0 in case of success, error code otherwise.

◆ adis_write_fir_en_xa()

int adis_write_fir_en_xa ( struct adis_dev adis,
uint32_t  fir_en_xa 
)

Write x axis accelerometer filter enable bit value.

Parameters
adis- The adis device.
fir_en_xa- The x axis accelerometer filter enable bit value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_fir_en_xg()

int adis_write_fir_en_xg ( struct adis_dev adis,
uint32_t  fir_en_xg 
)

Write x axis gyroscope filter enable bit value.

Parameters
adis- The adis device.
fir_en_xg- The x axis gyroscope filter enable bit value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_fir_en_ya()

int adis_write_fir_en_ya ( struct adis_dev adis,
uint32_t  fir_en_ya 
)

Write y axis accelerometer filter enable bit value.

Parameters
adis- The adis device.
fir_en_ya- The y axis accelerometer filter enable bit value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_fir_en_yg()

int adis_write_fir_en_yg ( struct adis_dev adis,
uint32_t  fir_en_yg 
)

Write y axis gyroscope filter enable bit value.

Parameters
adis- The adis device.
fir_en_yg- The y axis gyroscope filter enable bit value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_fir_en_za()

int adis_write_fir_en_za ( struct adis_dev adis,
uint32_t  fir_en_za 
)

Write z axis accelerometer filter enable bit value.

Parameters
adis- The adis device.
fir_en_za- The z axis accelerometer filter enable bit value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_fir_en_zg()

int adis_write_fir_en_zg ( struct adis_dev adis,
uint32_t  fir_en_zg 
)

Write z axis gyroscope filter enable bit value.

Parameters
adis- The adis device.
fir_en_zg- The z axis gyroscope filter enable bit value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_gpio_dir()

int adis_write_gpio_dir ( struct adis_dev adis,
uint8_t  dio_nb,
uint32_t  dir 
)

Write gpio direction configuration.

Parameters
adis- The adis device.
dio_nb- The DIO selection encoded value. 0: DIO1 1: DIO2 2: DIO3 3: DIO4
dir- DIO direction (0 - input, 1 - output)
Returns
0 in case of success, error code otherwise.

◆ adis_write_gpio_lvl()

int adis_write_gpio_lvl ( struct adis_dev adis,
uint8_t  dio_nb,
uint32_t  level 
)

Write gpio level configuration.

Parameters
adis- The adis device.
dio_nb- The DIO selection encoded value. 0: DIO1 1: DIO2 2: DIO3 3: DIO4
level- DIO data level (0 - low, 1 - high).
Returns
0 in case of success, error code otherwise.

◆ adis_write_gyro_fir_enable()

int adis_write_gyro_fir_enable ( struct adis_dev adis,
uint32_t  gyro_fir_enable 
)

Write gyroscope FIR filter control bit value.

Parameters
adis- The adis device.
gyro_fir_enable- The gyroscope FIR filter control bit value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_linear_accl_comp()

int adis_write_linear_accl_comp ( struct adis_dev adis,
uint32_t  linear_accl_comp 
)

Write linear acceleration compensation enable bit value.

Parameters
adis- The adis device.
linear_accl_comp- The linear acceleration compensation enable bit value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_lpf()

int adis_write_lpf ( struct adis_dev adis,
enum adis_chan_type  chan,
enum adis_axis_type  axis,
uint32_t  freq 
)

Configure filter for the given filter frequency.

Parameters
adis- The adis device.
chan- The adis channel.
axis- Tha adis channel axis.
freq- The filter frequency, in Hz.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_pt_of_perc_algnmt()

int adis_write_pt_of_perc_algnmt ( struct adis_dev adis,
uint32_t  pt_of_perc_algnmt 
)

Write point of percussion alignment enable bit value.

Parameters
adis- The adis device.
pt_of_perc_algnmt- The point of percussion alignment enable bit value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_reg()

int adis_write_reg ( struct adis_dev adis,
uint32_t  reg,
uint32_t  val,
uint32_t  size 
)

Write N bytes to register.

Parameters
adis- The adis device.
reg- The address of the lower of the two registers.
val- The value to write to device (up to 4 bytes).
size- The size of the val buffer.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_sens_bw()

int adis_write_sens_bw ( struct adis_dev adis,
uint32_t  sens_bw 
)

Write internal sensor bandwidth encoded value.

Parameters
adis- The adis device.
sens_bw- The internal sensor bandwidth encoded value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_sync_4khz()

int adis_write_sync_4khz ( struct adis_dev adis,
uint32_t  sync_4khz 
)

Write 4khz internal sync enable bit value.

Parameters
adis- The adis device.
sync_4khz- The 4khz internal sync enable bit value (1/0 - enabled/disabled).
Returns
0 in case of success, error code otherwise.

◆ adis_write_sync_mode()

int adis_write_sync_mode ( struct adis_dev adis,
uint32_t  sync_mode,
uint32_t  ext_clk 
)

Update synchronization mode.

Parameters
adis- The adis device.
sync_mode- The synchronization mode encoded value to update.
ext_clk- The external clock frequency to update, will be ignored if sync_mode is different from ADIS_SYNC_SCALED and ADIS_SYNC_DIRECT.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_sync_polarity()

int adis_write_sync_polarity ( struct adis_dev adis,
uint32_t  sync_polarity 
)

Write sync polarity encoded value.

Parameters
adis- The adis device.
sync_polarity- The sync polarity encoded value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_sync_selection()

int adis_write_sync_selection ( struct adis_dev adis,
uint32_t  sync_selection 
)

Write sync selection encoded value.

Parameters
adis- The adis device.
sync_selection- The sync selection encoded value to write. 0: DIO1 1: DIO2 2: DIO3 3: DIO4
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_timestamp32()

int adis_write_timestamp32 ( struct adis_dev adis,
uint32_t  timestamp32 
)

Write timestamp32 enable bit value.

Parameters
adis- The adis device.
timestamp32- The timestamp32 enable bit value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_up_scale()

int adis_write_up_scale ( struct adis_dev adis,
uint32_t  up_scale 
)

Write external clock scale factor value.

Parameters
adis- The adis device.
up_scale- The external clock scale factor value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_usr_scr_1()

int adis_write_usr_scr_1 ( struct adis_dev adis,
uint32_t  usr_scr_1 
)

Write user scratch register 1 value.

Parameters
adis- The adis device.
usr_scr_1- The user scratch register 1 value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_usr_scr_2()

int adis_write_usr_scr_2 ( struct adis_dev adis,
uint32_t  usr_scr_2 
)

Write user scratch register 2 value.

Parameters
adis- The adis device.
usr_scr_2- The user scratch register 2 value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_usr_scr_3()

int adis_write_usr_scr_3 ( struct adis_dev adis,
uint32_t  usr_scr_3 
)

Write user scratch register 3 value.

Parameters
adis- The adis device.
usr_scr_3- The user scratch register 3 value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_usr_scr_4()

int adis_write_usr_scr_4 ( struct adis_dev adis,
uint32_t  usr_scr_4 
)

Write user scratch register 4 value.

Parameters
adis- The adis device.
usr_scr_4- The user scratch register 4 value to write.
Returns
0 in case of success, error code otherwise.

◆ adis_write_xa_bias()

int adis_write_xa_bias ( struct adis_dev adis,
int32_t  xa_bias 
)

Write raw acceleration offset correction on x axis.

Parameters
adis- The adis device.
xa_bias- The raw value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_xa_scale()

int adis_write_xa_scale ( struct adis_dev adis,
int32_t  xa_scale 
)

Write raw acceleration scale adjustment on x axis.

Parameters
adis- The adis device.
xa_scale- The raw value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_xg_bias()

int adis_write_xg_bias ( struct adis_dev adis,
int32_t  xg_bias 
)

Write raw gyroscope offset correction on x axis.

Parameters
adis- The adis device.
xg_bias- The raw value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_xg_scale()

int adis_write_xg_scale ( struct adis_dev adis,
int32_t  xg_scale 
)

Write raw gyroscope scale adjustment on x axis.

Parameters
adis- The adis device.
xg_scale- The raw value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_ya_bias()

int adis_write_ya_bias ( struct adis_dev adis,
int32_t  ya_bias 
)

Write raw acceleration offset correction on y axis.

Parameters
adis- The adis device.
ya_bias- The raw value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_ya_scale()

int adis_write_ya_scale ( struct adis_dev adis,
int32_t  ya_scale 
)

Write raw acceleration scale adjustment on y axis.

Parameters
adis- The adis device.
ya_scale- The raw value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_yg_bias()

int adis_write_yg_bias ( struct adis_dev adis,
int32_t  yg_bias 
)

Write raw gyroscope offset correction on y axis.

Parameters
adis- The adis device.
yg_bias- The raw value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_yg_scale()

int adis_write_yg_scale ( struct adis_dev adis,
int32_t  yg_scale 
)

Write raw gyroscope scale adjustment on y axis.

Parameters
adis- The adis device.
yg_scale- The raw value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_za_bias()

int adis_write_za_bias ( struct adis_dev adis,
int32_t  za_bias 
)

Write raw acceleration offset correction on z axis.

Parameters
adis- The adis device.
za_bias- The raw value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_za_scale()

int adis_write_za_scale ( struct adis_dev adis,
int32_t  za_scale 
)

Write raw acceleration scale adjustment on z axis.

Parameters
adis- The adis device.
za_scale- The raw value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_zg_bias()

int adis_write_zg_bias ( struct adis_dev adis,
int32_t  zg_bias 
)

Write raw gyroscope offset correction on z axis.

Parameters
adis- The adis device.
zg_bias- The raw value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function:

◆ adis_write_zg_scale()

int adis_write_zg_scale ( struct adis_dev adis,
int32_t  zg_scale 
)

Write raw gyroscope scale adjustment on z axis.

Parameters
adis- The adis device.
zg_scale- The raw value to write.
Returns
0 in case of success, error code otherwise.
Here is the caller graph for this function: