no-OS
Classes | Macros | Enumerations | Functions
adis.h File Reference

Implementation of adis.h. More...

#include "no_os_spi.h"
#include "no_os_util.h"
#include <errno.h>
#include <stdlib.h>
#include <stdbool.h>
Include dependency graph for adis.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  adis_diag_flags
 Bitfield struct which maps on the diagnosis register. More...
 
struct  adis_temp_flags
 Bitfield struct which maps on the temperature fags from the temperature register. More...
 
struct  adis_scale_fractional
 ADIS fractional scale format structure; scale = dividend/divisor. More...
 
struct  adis_scale_fractional_log2
 ADIS fractional log2 scale format structure; scale = dividend/2^power. More...
 
struct  adis_burst_data
 ADIS burst data structure. More...
 
struct  adis_dev
 ADIS device descriptor structure. More...
 
struct  adis_init_param
 ADIS device initialization parameters. More...
 

Macros

#define STATIC   static
 
#define ADIS_4_BYTES_SIZE   4
 
#define ADIS_2_BYTES_SIZE   2
 
#define ADIS_1_BYTE_SIZE   1
 
#define ADIS_SYNC_DEFAULT   0
 
#define ADIS_SYNC_DIRECT   1
 
#define ADIS_SYNC_SCALED   2
 
#define ADIS_SYNC_OUTPUT   3
 
#define ADIS_SYNC_PULSE   5
 

Enumerations

enum  adis_device_id {
  ADIS16465_1,
  ADIS16465_2,
  ADIS16465_3,
  ADIS16467_1,
  ADIS16467_2,
  ADIS16467_3,
  ADIS16470,
  ADIS16475_1,
  ADIS16475_2,
  ADIS16475_3,
  ADIS16477_1,
  ADIS16477_2,
  ADIS16477_3,
  ADIS16500,
  ADIS16501,
  ADIS16505_1,
  ADIS16505_2,
  ADIS16505_3,
  ADIS16507_1,
  ADIS16507_2,
  ADIS16507_3,
  ADIS16545_1,
  ADIS16545_2,
  ADIS16545_3,
  ADIS16547_1,
  ADIS16547_2,
  ADIS16547_3,
  ADIS16550,
  ADIS16575_2,
  ADIS16575_3,
  ADIS16576_2,
  ADIS16576_3,
  ADIS16577_2,
  ADIS16577_3
}
 Supported device ids. More...
 
enum  adis_chan_type {
  ADIS_ACCL_CHAN,
  ADIS_GYRO_CHAN,
  ADIS_TEMP_CHAN,
  ADIS_DELTAANGL_CHAN,
  ADIS_DELTAVEL_CHAN
}
 Supported channels. More...
 
enum  adis_axis_type {
  ADIS_X_AXIS,
  ADIS_Y_AXIS,
  ADIS_Z_AXIS
}
 Supported axes. More...
 

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 value, uint32_t size)
 Write N bytes to register. 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...
 
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...
 
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_write_gpio_dir (struct adis_dev *adis, uint8_t dio_nb, uint32_t dir)
 Write gpio direction configuration. 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_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 *burst_size)
 Read burst32 enable bit value. More...
 
int adis_write_burst32 (struct adis_dev *adis, uint32_t burst_size)
 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.h.

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.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Macro Definition Documentation

◆ ADIS_1_BYTE_SIZE

#define ADIS_1_BYTE_SIZE   1

◆ ADIS_2_BYTES_SIZE

#define ADIS_2_BYTES_SIZE   2

◆ ADIS_4_BYTES_SIZE

#define ADIS_4_BYTES_SIZE   4

◆ ADIS_SYNC_DEFAULT

#define ADIS_SYNC_DEFAULT   0

◆ ADIS_SYNC_DIRECT

#define ADIS_SYNC_DIRECT   1

◆ ADIS_SYNC_OUTPUT

#define ADIS_SYNC_OUTPUT   3

◆ ADIS_SYNC_PULSE

#define ADIS_SYNC_PULSE   5

◆ ADIS_SYNC_SCALED

#define ADIS_SYNC_SCALED   2

◆ STATIC

#define STATIC   static

Enumeration Type Documentation

◆ adis_axis_type

Supported axes.

Enumerator
ADIS_X_AXIS 
ADIS_Y_AXIS 
ADIS_Z_AXIS 

◆ adis_chan_type

Supported channels.

Enumerator
ADIS_ACCL_CHAN 
ADIS_GYRO_CHAN 
ADIS_TEMP_CHAN 
ADIS_DELTAANGL_CHAN 
ADIS_DELTAVEL_CHAN 

◆ adis_device_id

Supported device ids.

Enumerator
ADIS16465_1 
ADIS16465_2 
ADIS16465_3 
ADIS16467_1 
ADIS16467_2 
ADIS16467_3 
ADIS16470 
ADIS16475_1 
ADIS16475_2 
ADIS16475_3 
ADIS16477_1 
ADIS16477_2 
ADIS16477_3 
ADIS16500 
ADIS16501 
ADIS16505_1 
ADIS16505_2 
ADIS16505_3 
ADIS16507_1 
ADIS16507_2 
ADIS16507_3 
ADIS16545_1 
ADIS16545_2 
ADIS16545_3 
ADIS16547_1 
ADIS16547_2 
ADIS16547_3 
ADIS16550 
ADIS16575_2 
ADIS16575_3 
ADIS16576_2 
ADIS16576_3 
ADIS16577_2 
ADIS16577_3 

Function Documentation

◆ adis_cmd_bias_corr_update()

int adis_cmd_bias_corr_update ( struct adis_dev adis)

Command: bias correction update.

Global commands: perform bias correction update command.

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.

Global commands: perform factory calibration restore command.

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.

Global commands: perform fifo flush command.

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.

Global commands: perform flash memory test command.

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.

Global commands: perform flash memory update command.

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.

Global commands: perform sensor self test command.

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.

Global commands: perform software reset command.

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.

Global commands: perform write lock command.

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.

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.

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.

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.

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.

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.

Read adis device temperature offset in integer form.

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.

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.

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.

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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Continuous bias estimation: read X-axis accelerometer bias correction enable bit.

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.

Continuous bias estimation: read X-axis gyroscope bias correction enable bit.

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.

Continuous bias estimation: read Y-axis accelerometer bias correction enable bit.

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.

Continuous bias estimation: read Y-axis gyroscope bias correction enable bit.

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.

Continuous bias estimation: read Z-axis accelerometer bias correction enable bit.

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.

Continuous bias estimation: read Z-axis gyroscope bias correction enable bit.

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.

Continuous bias estimation: read time bias control.

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.

Device identification data: read boot loader revision.

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.

Miscellaneous control: 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.

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.

Miscellaneous control: 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.

Synchronization data: read raw data counter data.

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.

Decimation filter: 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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Miscellaneous control: 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_fifo_cnt()

int adis_read_fifo_cnt ( struct adis_dev adis,
uint32_t *  fifo_cnt 
)

Read output FIFO sample count.

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.

FIFO overflow: read FIFO enable 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.

FIFO control: 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.

FIFO control: 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.

FIFO control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

FIR Coefficients: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Device identification data: read firmware revision day.

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.

Device identification data: read firmware revision month.

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.

Device identification data: read firmware revision.

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.

Device identification data: read firmware revision year.

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.

Flash counter: 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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Range identifier: 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.

Miscellaneous control: 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.

Device identification data: read lot specific number.

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.

Filter control: 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.

Device identification data: read processor revision.

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.

Device identification data: read product identification.

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.

Miscellaneous control: 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.

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.

Miscellaneous control: 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.

Device identification data: read serial number.

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.

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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Read temperature register and update temperature flags.

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.

Temperature data: 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.

Synchronization data: 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.

Miscellaneous control: 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.

Sync input frequency multiplier: 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.

Scratch pad registers: read scratch register 1.

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.

Scratch pad registers: read scratch register 2.

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.

Scratch pad registers: read scratch register 3.

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.

Scratch pad registers: read scratch register 4.

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.

Acceleration data: 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.

Delta angle data: 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.

Delta velocity data: 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.

Gyroscope data: 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.

Acceleration calibration offset: 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.

Acceleration scale adjustment: read raw acceleration scale correction 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.

Gyroscope calibration offset: 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.

Gyroscope scale adjustment: read raw gyroscope scale correction 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.

Acceleration data: 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.

Delta angle data: 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.

Delta velocity data: 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.

Gyroscope data: 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.

Acceleration calibration offset: 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.

Acceleration scale adjustment: read raw acceleration scale correction 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.

Gyroscope calibration offset: 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.

Gyroscope scale adjustment: read raw gyroscope scale correction 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.

Acceleration data: 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.

Delta angle data: 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.

Delta velocity data: 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.

Gyroscope data: 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.

Acceleration calibration offset: 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.

Acceleration scale adjustment: read raw acceleration scale correction 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.

Gyroscope calibration offset: 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.

Gyroscope scale adjustment: read raw gyroscope scale correction 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.

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.

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_ext_clk_freq()

int adis_update_ext_clk_freq ( struct adis_dev adis,
uint32_t  clk_freq 
)

Update external clock frequency.

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_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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Continuous bias estimation: write X-axis accelerometer bias correction enable bit.

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.

Continuous bias estimation: write X-axis gyroscope bias correction enable bit.

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.

Continuous bias estimation: write Y-axis accelerometer bias correction enable bit.

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.

Continuous bias estimation: write Y-axis gyroscope bias correction enable bit.

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.

Continuous bias estimation: write Z-axis accelerometer bias correction enable bit.

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.

Continuous bias estimation: write Z-axis gyroscope bias correction enable bit.

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.

Continuous bias estimation: write time bias control.

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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Decimation filter: 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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Miscellaneous control: 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_fifo_en()

int adis_write_fifo_en ( struct adis_dev adis,
uint32_t  fifo_en 
)

Write FIFO enable bit value.

FIFO control: 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.

FIFO control: 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.

FIFO control: 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.

FIFO control: 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.

FIFO control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

FIR Coefficients: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Filter control: 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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Filter control: 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.

Miscellaneous control: 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.

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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Miscellaneous control: write synchronization mode encoded value.

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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Miscellaneous control: 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.

Sync input frequency multiplier: 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.

Scratch pad registers: write scratch register 1.

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.

Scratch pad registers: write scratch register 2.

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.

Scratch pad registers: write scratch register 3.

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.

Scratch pad registers: write scratch register 4.

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.

Acceleration calibration offset: 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.

Acceleration scale adjustment: write raw acceleration scale correction 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.

Gyroscope calibration offset: 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.

Gyroscope scale adjustment: write raw gyroscope scale correction 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.

Acceleration calibration offset: 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.

Acceleration scale adjustment: write raw acceleration scale correction 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.

Gyroscope calibration offset: 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.

Gyroscope scale adjustment: write raw gyroscope scale correction 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.

Acceleration calibration offset: 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.

Acceleration scale adjustment: write raw acceleration scale correction 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.

Gyroscope calibration offset: 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.

Gyroscope scale adjustment: write raw gyroscope scale correction 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: