Go to the documentation of this file.
57 #define ADIS_4_BYTES_SIZE 4
58 #define ADIS_2_BYTES_SIZE 2
59 #define ADIS_1_BYTE_SIZE 1
61 #define ADIS_SYNC_DEFAULT 0
62 #define ADIS_SYNC_DIRECT 1
63 #define ADIS_SYNC_SCALED 2
64 #define ADIS_SYNC_OUTPUT 3
65 #define ADIS_SYNC_PULSE 5
344 const uint32_t mask,
const uint32_t val, uint8_t size);
356 uint32_t *snsr_init_failure);
359 uint32_t *data_path_overrun_err);
362 uint32_t *fls_mem_update_failure);
367 uint32_t *standby_mode);
376 uint32_t *gyro1_failure);
379 uint32_t *gyro2_failure);
384 uint32_t *x_axis_gyro_failure);
387 uint32_t *y_axis_gyro_failure);
390 uint32_t *z_axis_gyro_failure);
393 uint32_t *x_axis_accl_failure);
396 uint32_t *y_axis_accl_failure);
399 uint32_t *z_axis_accl_failure);
402 uint32_t *aduc_mcu_fault);
405 uint32_t *config_calib_crc_error);
408 uint32_t *overrange);
414 uint32_t *power_supply_failure);
417 uint32_t *boot_memory_failure);
420 uint32_t *reg_nvm_err);
423 uint32_t *wdg_timer_flag);
426 uint32_t *int_proc_supply_err);
429 uint32_t *ext_5v_supply_err);
432 uint32_t *int_snsr_supply_err);
435 uint32_t *int_reg_err);
440 uint32_t *fls_mem_wr_cnt_exceed);
750 uint32_t *pt_of_perc_algnmt);
755 uint32_t pt_of_perc_algnmt);
760 uint32_t *linear_accl_comp);
765 uint32_t linear_accl_comp);
909 bool burst32, uint8_t burst_sel,
bool fifo_pop,
bool crc_check);
int adis_write_dr_polarity(struct adis_dev *adis, uint32_t dr_polarity)
Write data ready polarity encoded value.
Definition: adis.c:2600
@ ADIS16576_2
Definition: adis.h:105
int adis_write_gpio_lvl(struct adis_dev *adis, uint8_t dio_nb, uint32_t level)
Write gpio level configuration.
Definition: adis.c:3002
#define ADIS_SYNC_DEFAULT
Definition: adis.h:61
struct adis_field zg_bias
Definition: adis_internals.h:238
int adis_write_zg_scale(struct adis_dev *adis, int32_t zg_scale)
Write raw gyroscope scale adjustment on z axis.
Definition: adis.c:1754
int adis_write_fifo_en(struct adis_dev *adis, uint32_t fifo_en)
Write FIFO enable bit value.
Definition: adis.c:1846
@ ADIS16475_3
Definition: adis.h:84
int adis_read_za_scale(struct adis_dev *adis, int32_t *za_scale)
Read raw acceleration scale adjustment on z axis.
Definition: adis.c:1812
struct adis_field sync_mode
Definition: adis_internals.h:287
int adis_read_prod_id(struct adis_dev *adis, uint32_t *prod_id)
Read product id value.
Definition: adis.c:3790
@ ADIS16577_3
Definition: adis.h:108
struct adis_field fir_en_xa
Definition: adis_internals.h:392
uint8_t int_reg_err
Definition: adis.h:193
int adis_read_fir_en_xa(struct adis_dev *adis, uint32_t *fir_en_xa)
Read x axis accelerometer filter enable bit value.
Definition: adis.c:2140
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.
Definition: adis.c:2376
int adis_write_up_scale(struct adis_dev *adis, uint32_t up_scale)
Write external clock scale factor value.
Definition: adis.c:3337
@ ADIS16465_1
Definition: adis.h:75
int adis_cmd_snsr_self_test(struct adis_dev *adis)
Command: sensor self test.
Definition: adis.c:3612
int adis_read_xa_scale(struct adis_dev *adis, int32_t *xa_scale)
Read raw acceleration scale adjustment on x axis.
Definition: adis.c:1766
int adis_read_lot_num(struct adis_dev *adis, uint32_t *lot_num)
Read lot specific number value.
Definition: adis.c:3812
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.
Definition: adis.c:2360
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.
Definition: adis.c:3454
uint32_t diag_ext_5v_supply_err_mask
Definition: adis_internals.h:186
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
int adis_read_diag_wdg_timer_flag(struct adis_dev *adis, uint32_t *wdg_timer_flag)
Diagnosis: read watchdog timer flag value.
Definition: adis.c:1147
struct adis_field burst_sel
Definition: adis_internals.h:303
struct adis_field usr_scr_3
Definition: adis_internals.h:376
struct adis_field usr_scr_1
Definition: adis_internals.h:372
uint8_t clk_err
Definition: adis.h:151
@ ADIS16470
Definition: adis.h:81
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.
Definition: adis.c:2513
uint8_t data_path_overrun
Definition: adis.h:139
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.
Definition: adis.c:1021
uint32_t field_mask
Definition: adis_internals.h:124
int adis_cmd_fact_calib_restore(struct adis_dev *adis)
Command: factory calibration restore.
Definition: adis.c:3593
int adis_read_fir_en_za(struct adis_dev *adis, uint32_t *fir_en_za)
Read z axis accelerometer filter enable bit value.
Definition: adis.c:2188
int adis_read_temp_out(struct adis_dev *adis, int32_t *temp_out)
Read raw temperature data.
Definition: adis.c:1388
int adis_read_xg_scale(struct adis_dev *adis, int32_t *xg_scale)
Read raw gyroscope scale adjustment on x axis.
Definition: adis.c:1697
int adis_write_fir_en_xa(struct adis_dev *adis, uint32_t fir_en_xa)
Write x axis accelerometer filter enable bit value.
Definition: adis.c:2152
uint8_t fls_mem_update_failure
Definition: adis.h:141
int adis_read_alarm_enable(struct adis_dev *adis, uint32_t *alarm_enable)
Read alarm enable encoded value.
Definition: adis.c:2867
int adis_read_firm_m(struct adis_dev *adis, uint32_t *firm_m)
Read firmware factory configuration month value.
Definition: adis.c:3757
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.
Definition: adis.c:4176
int adis_read_y_deltang(struct adis_dev *adis, int32_t *y_deltang)
Read raw delta angle data on y axis.
Definition: adis.c:1448
@ ADIS_GYRO_CHAN
Definition: adis.h:116
@ ADIS16477_2
Definition: adis.h:86
int adis_read_diag_snsr_failure(struct adis_dev *adis, uint32_t *snsr_failure)
Diagnosis: read sensor self test error flag value.
Definition: adis.c:754
uint32_t diag_gyro1_failure_mask
Definition: adis_internals.h:150
uint8_t reg_nvm_err
Definition: adis.h:183
int adis_read_x_deltvel(struct adis_dev *adis, int32_t *x_deltvel)
Read raw delta velocity data on x axis.
Definition: adis.c:1486
struct adis_field dr_selection
Definition: adis_internals.h:277
#define ADIS_4_BYTES_SIZE
Definition: adis.h:57
int adis_write_za_bias(struct adis_dev *adis, int32_t za_bias)
Write raw acceleration offset correction on z axis.
Definition: adis.c:1686
int adis_write_fifo_wm_int_en(struct adis_dev *adis, uint32_t fifo_wm_int_en)
Write FIFO watermark interrupt enable bit value.
Definition: adis.c:1901
int adis_read_fifo_wm_int_pol(struct adis_dev *adis, uint32_t *fifo_wm_int_pol)
Read FIFO watermark interrupt polarity bit value.
Definition: adis.c:1913
struct adis_field coeff_bank_b
Definition: adis_internals.h:412
int adis_read_prod_id(struct adis_dev *adis, uint32_t *prod_id)
Read product id value.
Definition: adis.c:3790
uint8_t rx[8]
Definition: adis.h:288
uint32_t diag_snsr_failure_mask
Definition: adis_internals.h:144
#define ADIS_HAS_BURST_DELTA_DATA
Definition: adis_internals.h:39
int(* read_reg)(struct adis_dev *adis, uint32_t reg, uint32_t *val, uint32_t size)
Definition: adis_internals.h:468
int adis_write_timestamp32(struct adis_dev *adis, uint32_t timestamp32)
Write timestamp32 enable bit value.
Definition: adis.c:3274
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.
Definition: adis.c:2232
int adis_write_accl_fir_enable(struct adis_dev *adis, uint32_t accl_fir_enable)
Write accelerometer FIR filter control bit value.
Definition: adis.c:3074
int adis_read_z_deltvel(struct adis_dev *adis, int32_t *z_deltvel)
Read raw delta velocity data on z axis.
Definition: adis.c:1524
struct adis_field sync_polarity
Definition: adis_internals.h:285
Internal include file used for specific chip driver definitions, which are not useful for the user.
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.
Definition: adis.c:2376
int adis_write_up_scale(struct adis_dev *adis, uint32_t up_scale)
Write external clock scale factor value.
Definition: adis.c:3337
int adis_read_diag_aduc_mcu_fault(struct adis_dev *adis, uint32_t *aduc_mcu_fault)
Diagnosis: read ADuC microcontroller fault flag value.
Definition: adis.c:1000
int adis_read_diag_power_supply_failure(struct adis_dev *adis, uint32_t *power_supply_failure)
Diagnosis: read power supply error flag value.
Definition: adis.c:1084
@ ADIS16505_1
Definition: adis.h:90
int adis_read_diag_overrange(struct adis_dev *adis, uint32_t *overrange)
Diagnosis: read overrange for inertial sensors flag value.
Definition: adis.c:1042
int adis_read_fifo_cnt(struct adis_dev *adis, uint32_t *fifo_cnt)
Read output FIFO sample count.
Definition: adis.c:1543
void adis_update_temp_flags(struct adis_dev *adis, uint16_t temp_reg)
Update device temperature flags according to the received parameter.
Definition: adis.c:631
void adis_read_diag_checksum_err(struct adis_dev *adis, uint32_t *checksum_err)
Diagnosis: read checksum error flag value.
Definition: adis.c:1251
struct adis_field xg_bias
Definition: adis_internals.h:234
int32_t no_os_spi_write_and_read(struct no_os_spi_desc *desc, uint8_t *data, uint16_t bytes_number)
Write and read data to/from SPI.
Definition: no_os_spi.c:159
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.
Definition: adis.c:937
uint8_t accl_failure
Definition: adis.h:157
@ ADIS16467_3
Definition: adis.h:80
ADIS device field structure.
Definition: adis_internals.h:118
int adis_update_ext_clk_freq(struct adis_dev *adis, uint32_t clk_freq)
Update external clock frequency.
Definition: adis.c:4094
int adis_read_dec_rate(struct adis_dev *adis, uint32_t *dec_rate)
Read decimation rate value.
Definition: adis.c:3367
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.
Definition: adis.c:2216
struct adis_field xa_bias
Definition: adis_internals.h:240
int adis_read_spi_chksum(struct adis_dev *adis, uint32_t *checksum)
Read current sample SPI transaction checksum.
Definition: adis.c:1554
int adis_read_boot_rev(struct adis_dev *adis, uint32_t *boot_rev)
Read boot loader revision value.
Definition: adis.c:3779
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.
Definition: adis.c:1168
int adis_read_sync_mode(struct adis_dev *adis, uint32_t *sync_mode)
Read synchronization mode encoded value.
Definition: adis.c:2733
@ ADIS16550
Definition: adis.h:102
int adis_write_fifo_overflow(struct adis_dev *adis, uint32_t fifo_overflow)
Write FIFO overflow bit value.
Definition: adis.c:1877
int adis_initial_startup(struct adis_dev *adis)
Device initial setup.
Definition: adis.c:179
uint8_t aduc_mcu_fault
Definition: adis.h:171
ADIS device initialization parameters.
Definition: adis.h:306
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.
Definition: adis.c:3519
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.
Definition: adis.c:3545
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.
Definition: adis.c:2344
Header file of SPI Interface.
int adis_read_sync_polarity(struct adis_dev *adis, uint32_t *sync_polarity)
Read sync polarity encoded value.
Definition: adis.c:2698
int adis_cmd_fifo_flush(struct adis_dev *adis)
Command: fifo flush.
Definition: adis.c:3671
ADIS chip timeouts.
Definition: adis_internals.h:55
uint16_t temp_msb
Definition: adis.h:250
int adis_read_xg_bias(struct adis_dev *adis, int32_t *xg_bias)
Read raw gyroscope offset correction on x axis.
Definition: adis.c:1565
int adis_read_burst_sel(struct adis_dev *adis, uint32_t *burst_sel)
Read burst selection encoded value.
Definition: adis.c:3182
int adis_write_fir_en_xg(struct adis_dev *adis, uint32_t fir_en_xg)
Write x axis gyroscope filter enable bit value.
Definition: adis.c:2080
uint32_t diag_int_proc_supply_err_mask
Definition: adis_internals.h:184
uint32_t diag_power_supply_failure_mask
Definition: adis_internals.h:176
int adis_read_usr_scr_4(struct adis_dev *adis, uint32_t *usr_scr_4)
Read user scratch register 4 value.
Definition: adis.c:3889
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.
Definition: adis.c:937
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.
Definition: adis.c:3558
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.
Definition: adis.c:2405
int adis_read_gyro_meas_range(struct adis_dev *adis, uint32_t *gyro_meas_range)
Read gyroscope measurement range value.
Definition: adis.c:2056
struct adis_field z_accl
Definition: adis_internals.h:206
uint8_t gyro1_failure
Definition: adis.h:153
uint16_t filt_size_var_b_update_us
Definition: adis_internals.h:85
int adis_write_usr_scr_1(struct adis_dev *adis, uint32_t usr_scr_1)
Write user scratch register 1 value.
Definition: adis.c:3834
struct adis_field fifo_cnt
Definition: adis_internals.h:229
ADIS burst data structure.
Definition: adis.h:248
uint8_t accl_temp_y_z
Definition: adis.h:207
struct adis_field serial_num
Definition: adis_internals.h:367
enum adis_device_id dev_id
Definition: adis.h:322
bool has_paging
Definition: adis_internals.h:444
int adis_read_bias_corr_tbc(struct adis_dev *adis, uint32_t *bias_corr_tbc)
Read time base control value.
Definition: adis.c:3400
uint16_t x_accel_lsb
Definition: adis.h:259
int adis_write_bias_corr_tbc(struct adis_dev *adis, uint32_t bias_corr_tbc)
Write time base control value.
Definition: adis.c:3412
void adis_read_diag_checksum_err(struct adis_dev *adis, uint32_t *checksum_err)
Diagnosis: read checksum error flag value.
Definition: adis.c:1251
int(* read_sync_mode)(struct adis_dev *adis, uint32_t *sync_mode)
Definition: adis_internals.h:481
int adis_read_diag_accl_failure(struct adis_dev *adis, uint32_t *accl_failure)
Diagnosis: read accelerometer self test error flag value.
Definition: adis.c:854
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.
Definition: adis.c:916
struct adis_field y_deltvel
Definition: adis_internals.h:224
bool fifo_enabled
Definition: adis.h:294
int adis_read_alarm_selection(struct adis_dev *adis, uint32_t *alarm_selection)
Read alarm selection encoded value.
Definition: adis.c:2796
int adis_read_z_accl(struct adis_dev *adis, int32_t *z_accl)
Read raw acceleration data on z axis.
Definition: adis.c:1369
int adis_read_fir_en_xa(struct adis_dev *adis, uint32_t *fir_en_xa)
Read x axis accelerometer filter enable bit value.
Definition: adis.c:2140
int adis_write_ya_scale(struct adis_dev *adis, int32_t ya_scale)
Write raw acceleration scale adjustment on y axis.
Definition: adis.c:1800
int adis_read_z_deltang(struct adis_dev *adis, int32_t *z_deltang)
Read raw delta angle data on z axis.
Definition: adis.c:1467
int adis_read_up_scale(struct adis_dev *adis, uint32_t *up_scale)
Read external clock scale factor value.
Definition: adis.c:3326
uint32_t diag_spi_comm_err_mask
Definition: adis_internals.h:140
int adis_get_accl_scale(struct adis_dev *adis, struct adis_scale_fractional *accl_scale)
Read adis device acceleration scale in fractional form.
Definition: adis.c:4160
uint16_t sens_bw_update_ms
Definition: adis_internals.h:94
int adis_cmd_bias_corr_update(struct adis_dev *adis)
Command: bias correction update.
Definition: adis.c:3582
int adis_read_fir_en_za(struct adis_dev *adis, uint32_t *fir_en_za)
Read z axis accelerometer filter enable bit value.
Definition: adis.c:2188
int adis_read_xa_bias(struct adis_dev *adis, int32_t *xa_bias)
Read raw acceleration offset correction on x axis.
Definition: adis.c:1631
struct adis_field fifo_overflow
Definition: adis_internals.h:262
#define ADIS_2_BYTES_SIZE
Definition: adis.h:58
uint16_t y_gyro_msb
Definition: adis.h:256
struct adis_field z_gyro
Definition: adis_internals.h:200
#define ADIS_CHECKSUM_BUF_IDX
Definition: adis.c:58
adis_chan_type
Supported channels.
Definition: adis.h:114
int adis_write_xa_bias(struct adis_dev *adis, int32_t xa_bias)
Write raw acceleration offset correction on x axis.
Definition: adis.c:1642
int adis_read_gyro_fir_enable(struct adis_dev *adis, uint32_t *gyro_fir_enable)
Read gyroscope FIR filter control bit value.
Definition: adis.c:3086
uint32_t dividend
Definition: adis.h:229
int adis_read_y_gyro(struct adis_dev *adis, int32_t *y_gyro)
Read raw gyroscope data on y axis.
Definition: adis.c:1293
int adis_read_usr_scr_3(struct adis_dev *adis, uint32_t *usr_scr_3)
Read user scratch register 3 value.
Definition: adis.c:3867
Definition: no_os_spi.h:100
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....
Definition: adis.c:602
@ ADIS16507_1
Definition: adis.h:93
int adis_read_diag_gyro1_failure(struct adis_dev *adis, uint32_t *gyro1_failure)
Diagnosis: read gyroscope1 self test error flag value.
Definition: adis.c:814
int adis_read_usr_scr_1(struct adis_dev *adis, uint32_t *usr_scr_1)
Read user scratch register 1 value.
Definition: adis.c:3823
int adis_read_diag_temp_err(struct adis_dev *adis, uint32_t *temp_err)
Diagnosis: read temperature error flag value.
Definition: adis.c:1063
Header file of Delay functions.
int adis_write_usr_scr_4(struct adis_dev *adis, uint32_t usr_scr_4)
Write user scratch register 4 value.
Definition: adis.c:3900
int adis_read_x_gyro(struct adis_dev *adis, int32_t *x_gyro)
Read raw gyroscope data on x axis.
Definition: adis.c:1274
uint16_t y_gyro_lsb
Definition: adis.h:255
int adis_write_yg_bias(struct adis_dev *adis, int32_t yg_bias)
Write raw gyroscope offset correction on y axis.
Definition: adis.c:1598
uint16_t z_gyro_msb
Definition: adis.h:258
uint32_t diag_y_axis_accl_failure_mask
Definition: adis_internals.h:164
uint8_t overrange
Definition: adis.h:175
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.
Definition: adis.c:1210
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.
Definition: adis.c:2031
int adis_read_yg_bias(struct adis_dev *adis, int32_t *yg_bias)
Read raw gyroscope offset correction on y axis.
Definition: adis.c:1587
struct adis_field fir_en_xg
Definition: adis_internals.h:386
#define ADIS_1_BYTE_SIZE
Definition: adis.h:59
int adis_write_fir_en_xa(struct adis_dev *adis, uint32_t fir_en_xa)
Write x axis accelerometer filter enable bit value.
Definition: adis.c:2152
int adis_write_ya_bias(struct adis_dev *adis, int32_t ya_bias)
Write raw acceleration offset correction on y axis.
Definition: adis.c:1664
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.
Definition: adis.c:2296
struct adis_field dec_rate
Definition: adis_internals.h:318
int adis_read_zg_bias(struct adis_dev *adis, int32_t *zg_bias)
Read raw gyroscope offset correction on z axis.
Definition: adis.c:1609
uint32_t diag_y_axis_gyro_failure_mask
Definition: adis_internals.h:158
struct adis_field fls_mem_wr_cntr
Definition: adis_internals.h:381
int adis_read_fir_en_zg(struct adis_dev *adis, uint32_t *fir_en_zg)
Read z axis gyroscope filter enable bit value.
Definition: adis.c:2116
@ ADIS_ACCL_CHAN
Definition: adis.h:115
int adis_write_sync_4khz(struct adis_dev *adis, uint32_t sync_4khz)
Write 4khz internal sync enable bit value.
Definition: adis.c:3305
int adis_cmd_fls_mem_test(struct adis_dev *adis)
Command: flash memory test.
Definition: adis.c:3652
@ ADIS16545_1
Definition: adis.h:96
int adis_write_xg_scale(struct adis_dev *adis, int32_t xg_scale)
Write raw gyroscope scale adjustment on x axis.
Definition: adis.c:1708
int adis_read_lot_num(struct adis_dev *adis, uint32_t *lot_num)
Read lot specific number value.
Definition: adis.c:3812
@ ADIS16547_2
Definition: adis.h:100
int adis_read_yg_bias(struct adis_dev *adis, int32_t *yg_bias)
Read raw gyroscope offset correction on y axis.
Definition: adis.c:1587
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.
Definition: adis.c:3532
int adis_write_zg_bias(struct adis_dev *adis, int32_t zg_bias)
Write raw gyroscope offset correction on z axis.
Definition: adis.c:1620
int adis_read_burst32(struct adis_dev *adis, uint32_t *burst_size)
Read burst32 enable bit value.
Definition: adis.c:3222
uint8_t snsr_failure
Definition: adis.h:147
int adis_write_alarm_polarity(struct adis_dev *adis, uint32_t alarm_polarity)
Write alarm polarity encoded value.
Definition: adis.c:2844
uint8_t config_calib_crc_error
Definition: adis.h:173
@ ADIS16545_2
Definition: adis.h:97
int adis_read_time_stamp(struct adis_dev *adis, uint32_t *time_stamp)
Read raw time stamp data.
Definition: adis.c:1407
int adis_read_dr_polarity(struct adis_dev *adis, uint32_t *dr_polarity)
Read data ready polarity encoded value.
Definition: adis.c:2588
uint16_t y_accel_msb
Definition: adis.h:262
@ ADIS16475_1
Definition: adis.h:82
int adis_read_diag_snsr_init_failure(struct adis_dev *adis, uint32_t *snsr_init_failure)
Diagnosis: read sensor initialization failure flag value.
Definition: adis.c:650
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:117
struct adis_field bias_corr_en_xa
Definition: adis_internals.h:329
int adis_read_firm_d(struct adis_dev *adis, uint32_t *firm_d)
Read firmware factory configuration day value.
Definition: adis.c:3746
struct adis_field fls_mem_test
Definition: adis_internals.h:346
int adis_read_diag_mem_failure(struct adis_dev *adis, uint32_t *mem_failure)
Diagnosis: read flash memory test error flag value.
Definition: adis.c:774
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.
Definition: adis.c:2248
uint8_t fir_coef_idx_max
Definition: adis_internals.h:460
int adis_write_burst_sel(struct adis_dev *adis, uint32_t burst_sel)
Write burst selection encoded value.
Definition: adis.c:3201
int adis_read_diag_gyro1_failure(struct adis_dev *adis, uint32_t *gyro1_failure)
Diagnosis: read gyroscope1 self test error flag value.
Definition: adis.c:814
bool is_locked
Definition: adis.h:300
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.
Definition: adis.c:2513
uint32_t divisor
Definition: adis.h:231
uint8_t temp_err
Definition: adis.h:177
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.
Definition: adis.c:2312
uint16_t x_gyro_msb
Definition: adis.h:254
int adis_write_yg_scale(struct adis_dev *adis, int32_t yg_scale)
Write raw gyroscope scale adjustment on y axis.
Definition: adis.c:1731
uint32_t diag_temp_err_mask
Definition: adis_internals.h:174
int adis_write_burst32(struct adis_dev *adis, uint32_t burst32)
Write burst32 enable bit value.
Definition: adis.c:3241
uint8_t x_axis_accl_failure
Definition: adis.h:165
int adis_read_y_deltang(struct adis_dev *adis, int32_t *y_deltang)
Read raw delta angle data on y axis.
Definition: adis.c:1448
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.
Definition: adis.c:3441
int adis_write_ya_bias(struct adis_dev *adis, int32_t ya_bias)
Write raw acceleration offset correction on y axis.
Definition: adis.c:1664
@ ADIS16467_1
Definition: adis.h:78
struct adis_field bias_corr_en_zg
Definition: adis_internals.h:327
struct adis_field bias_corr_update
Definition: adis_internals.h:338
int adis_read_fifo_en(struct adis_dev *adis, uint32_t *fifo_en)
Definition: adis.c:1835
int adis_cmd_fls_mem_update(struct adis_dev *adis)
Command: flash memory update.
Definition: adis.c:3631
uint8_t burst_sel
Definition: adis.h:298
uint16_t z_gyro_lsb
Definition: adis.h:257
int adis_write_sync_polarity(struct adis_dev *adis, uint32_t sync_polarity)
Write sync polarity encoded value.
Definition: adis.c:2710
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
#define ADIS_CHECKSUM_SIZE
Definition: adis.c:57
uint32_t int_clk
Definition: adis.h:290
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.
Definition: adis.c:916
struct adis_field sync_4khz
Definition: adis_internals.h:309
int adis_read_timestamp32(struct adis_dev *adis, uint32_t *timestamp32)
Read timestamp32 enable bit value.
Definition: adis.c:3262
#define ADIS_READ_BURST_DATA_CMD_LSB
Definition: adis_internals.h:43
int adis_write_burst_sel(struct adis_dev *adis, uint32_t burst_sel)
Write burst selection encoded value.
Definition: adis.c:3201
int adis_read_usr_scr_2(struct adis_dev *adis, uint32_t *usr_scr_2)
Read user scratch register 2 value.
Definition: adis.c:3845
uint16_t data_cntr_lsb
Definition: adis.h:251
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.
Definition: adis.c:2423
int adis_read_x_deltang(struct adis_dev *adis, int32_t *x_deltang)
Read raw delta angle data on x axis.
Definition: adis.c:1429
int adis_get_anglvel_scale(struct adis_dev *adis, struct adis_scale_fractional *anglvel_scale)
Read adis device gyroscope scale in fractional form.
Definition: adis.c:4144
int adis_read_diag_power_supply_failure(struct adis_dev *adis, uint32_t *power_supply_failure)
Diagnosis: read power supply error flag value.
Definition: adis.c:1084
int adis_write_reg(struct adis_dev *adis, uint32_t reg, uint32_t val, uint32_t size)
Write N bytes to register.
Definition: adis.c:305
int(* write_reg)(struct adis_dev *adis, uint32_t reg, uint32_t val, uint32_t size)
Definition: adis_internals.h:471
int adis_write_dr_enable(struct adis_dev *adis, uint32_t dr_enable)
Write data ready enable encoded value.
Definition: adis.c:2635
int adis_write_alarm_enable(struct adis_dev *adis, uint32_t alarm_enable)
Write alarm enable encoded value.
Definition: adis.c:2879
int adis_write_fir_en_zg(struct adis_dev *adis, uint32_t fir_en_zg)
Write z axis gyroscope filter enable bit value.
Definition: adis.c:2128
int adis_read_x_accl(struct adis_dev *adis, int32_t *x_accl)
Read raw acceleration data on x axis.
Definition: adis.c:1331
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.
Definition: adis.c:2264
int adis_read_diag_boot_memory_failure(struct adis_dev *adis, uint32_t *boot_memory_failure)
Diagnosis: read boot memory failure error flag value.
Definition: adis.c:1105
struct adis_field alarm_selection
Definition: adis_internals.h:289
uint32_t diag_reg_nvm_err_mask
Definition: adis_internals.h:180
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.
Definition: adis.c:2312
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.
Definition: adis.c:3976
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.
Definition: adis.c:2232
struct adis_field ya_scale
Definition: adis_internals.h:255
struct adis_temp_flags temp_flags
Definition: adis.h:280
int adis_get_temp_scale(struct adis_dev *adis, struct adis_scale_fractional *temp_scale)
Read adis device temperature scale in fractional form.
Definition: adis.c:4208
@ ADIS16467_2
Definition: adis.h:79
#define ADIS_REG_PAGE_ID
Definition: adis_internals.h:47
int adis_read_z_gyro(struct adis_dev *adis, int32_t *z_gyro)
Read raw gyroscope data on z axis.
Definition: adis.c:1312
int adis_read_spi_chksum(struct adis_dev *adis, uint32_t *checksum)
Read current sample SPI transaction checksum.
Definition: adis.c:1554
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:115
uint8_t * tx_buff
Definition: no_os_spi.h:102
ADIS specific chip information structure.
Definition: adis_internals.h:422
uint8_t standby_mode
Definition: adis.h:145
uint32_t ext_clk
Definition: adis.h:316
ADIS fractional log2 scale format structure; scale = dividend/2^power.
Definition: adis.h:237
uint8_t x_axis_gyro_failure
Definition: adis.h:159
int adis_read_fifo_overflow(struct adis_dev *adis, uint32_t *fifo_overflow)
Read FIFO overflow bit value.
Definition: adis.c:1865
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.
Definition: adis.c:3493
int adis_read_accl_fir_enable(struct adis_dev *adis, uint32_t *accl_fir_enable)
Read accelerometer FIR filter control bit value.
Definition: adis.c:3062
int adis_read_burst_sel(struct adis_dev *adis, uint32_t *burst_sel)
Read burst selection encoded value.
Definition: adis.c:3182
int adis_read_usr_scr_1(struct adis_dev *adis, uint32_t *usr_scr_1)
Read user scratch register 1 value.
Definition: adis.c:3823
uint16_t dec_rate_max
Definition: adis_internals.h:450
struct adis_field gpio_ctrl
Definition: adis_internals.h:295
int adis_write_gpio_dir(struct adis_dev *adis, uint8_t dio_nb, uint32_t dir)
Write gpio direction configuration.
Definition: adis.c:2967
int adis_read_linear_accl_comp(struct adis_dev *adis, uint32_t *linear_accl_comp)
Read linear acceleration compensation enable bit value.
Definition: adis.c:3147
@ ADIS16500
Definition: adis.h:88
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.
Definition: adis.c:1021
uint8_t tx[12]
Definition: adis.h:286
#define ADIS_HAS_BURST32
Definition: adis_internals.h:38
struct adis_field fact_calib_restore
Definition: adis_internals.h:340
uint16_t z_accel_msb
Definition: adis.h:264
uint8_t gyro1_temp_z
Definition: adis.h:213
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.
Definition: adis.c:2405
struct adis_field fir_bank_sel_za
Definition: adis_internals.h:408
uint32_t power
Definition: adis.h:241
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
int adis_write_xa_scale(struct adis_dev *adis, int32_t xa_scale)
Write raw acceleration scale adjustment on x axis.
Definition: adis.c:1777
@ ADIS16465_3
Definition: adis.h:77
uint32_t no_os_field_prep(uint32_t mask, uint32_t val)
int adis_read_firm_d(struct adis_dev *adis, uint32_t *firm_d)
Read firmware factory configuration day value.
Definition: adis.c:3746
int adis_read_reg(struct adis_dev *adis, uint32_t reg, uint32_t *val, uint32_t size)
Read N bytes from register.
Definition: adis.c:211
int adis_read_diag_accl_failure(struct adis_dev *adis, uint32_t *accl_failure)
Diagnosis: read accelerometer self test error flag value.
Definition: adis.c:854
int adis_init(struct adis_dev **adis, const struct adis_init_param *ip)
Initialize adis device.
Definition: adis.c:99
int adis_read_x_deltvel(struct adis_dev *adis, int32_t *x_deltvel)
Read raw delta velocity data on x axis.
Definition: adis.c:1486
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.
Definition: adis.c:1999
int adis_read_z_accl(struct adis_dev *adis, int32_t *z_accl)
Read raw acceleration data on z axis.
Definition: adis.c:1369
int adis_read_diag_clk_err(struct adis_dev *adis, uint32_t *clk_err)
Diagnosis: read clock error flag value.
Definition: adis.c:794
int adis_cmd_fls_mem_test(struct adis_dev *adis)
Command: flash memory test.
Definition: adis.c:3652
int adis_read_y_accl(struct adis_dev *adis, int32_t *y_accl)
Read raw acceleration data on y axis.
Definition: adis.c:1350
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.
Definition: adis.c:895
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.
Definition: adis.c:2531
#define ADIS_READ_REG(reg)
Definition: adis_internals.h:50
struct adis_field gyro_meas_range
Definition: adis_internals.h:274
int adis_get_accl_scale(struct adis_dev *adis, struct adis_scale_fractional *accl_scale)
Read adis device acceleration scale in fractional form.
Definition: adis.c:4160
uint32_t diag_aduc_mcu_fault_mask
Definition: adis_internals.h:168
struct adis_field bias_corr_en_yg
Definition: adis_internals.h:325
int adis_cmd_bias_corr_update(struct adis_dev *adis)
Command: bias correction update.
Definition: adis.c:3582
struct adis_field fir_en_ya
Definition: adis_internals.h:394
struct adis_field y_gyro
Definition: adis_internals.h:198
ADIS device descriptor structure.
Definition: adis.h:270
int adis_read_alarm_polarity(struct adis_dev *adis, uint32_t *alarm_polarity)
Read alarm polarity encoded value.
Definition: adis.c:2832
int adis_write_za_scale(struct adis_dev *adis, int32_t za_scale)
Write raw acceleration scale adjustment on z axis.
Definition: adis.c:1823
int adis_read_ya_bias(struct adis_dev *adis, int32_t *ya_bias)
Read raw acceleration offset correction on y axis.
Definition: adis.c:1653
int adis_read_diag_temp_err(struct adis_dev *adis, uint32_t *temp_err)
Diagnosis: read temperature error flag value.
Definition: adis.c:1063
int adis_read_sens_bw(struct adis_dev *adis, uint32_t *sens_bw)
Read internal sensor bandwidth encoded value.
Definition: adis.c:3032
int adis_read_diag_reg_nvm_err(struct adis_dev *adis, uint32_t *reg_nvm_err)
Diagnosis: read register NVM error flag value.
Definition: adis.c:1126
int adis_read_x_gyro(struct adis_dev *adis, int32_t *x_gyro)
Read raw gyroscope data on x axis.
Definition: adis.c:1274
const struct adis_clk_freq_limit * sync_clk_freq_limits
Definition: adis_internals.h:428
int adis_read_fifo_wm_int_en(struct adis_dev *adis, uint32_t *fifo_wm_int_en)
Read FIFO watermark interrupt enable bit value.
Definition: adis.c:1889
uint32_t max_freq
Definition: adis_internals.h:104
@ ADIS_X_AXIS
Definition: adis.h:126
struct adis_field ya_bias
Definition: adis_internals.h:242
int adis_read_z_deltvel(struct adis_dev *adis, int32_t *z_deltvel)
Read raw delta velocity data on z axis.
Definition: adis.c:1524
struct no_os_spi_init_param * spi_init
Definition: adis.h:310
const struct adis_data_field_map_def * field_map
Definition: adis_internals.h:426
int adis_read_proc_rev(struct adis_dev *adis, uint32_t *proc_rev)
Read processor revision value.
Definition: adis.c:3724
int adis_write_ya_scale(struct adis_dev *adis, int32_t ya_scale)
Write raw acceleration scale adjustment on y axis.
Definition: adis.c:1800
int adis_read_sync_mode(struct adis_dev *adis, uint32_t *sync_mode)
Read synchronization mode encoded value.
Definition: adis.c:2733
uint32_t diag_int_snsr_supply_err_mask
Definition: adis_internals.h:188
uint16_t z_accel_lsb
Definition: adis.h:263
struct adis_field fir_en_za
Definition: adis_internals.h:396
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.
Definition: adis.c:692
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.
Definition: adis.c:1261
uint8_t gyro2_temp_z
Definition: adis.h:211
int adis_read_fifo_en(struct adis_dev *adis, uint32_t *fifo_en)
Definition: adis.c:1835
struct adis_field y_deltang
Definition: adis_internals.h:218
int adis_read_xa_scale(struct adis_dev *adis, int32_t *xa_scale)
Read raw acceleration scale adjustment on x axis.
Definition: adis.c:1766
int adis_read_gyro_fir_enable(struct adis_dev *adis, uint32_t *gyro_fir_enable)
Read gyroscope FIR filter control bit value.
Definition: adis.c:3086
int adis_read_diag_int_reg_err(struct adis_dev *adis, uint32_t *int_reg_err)
Diagnosis: read internal regulator error flag value.
Definition: adis.c:1231
int adis_cmd_fifo_flush(struct adis_dev *adis)
Command: fifo flush.
Definition: adis.c:3671
int adis_read_data_cntr(struct adis_dev *adis, uint32_t *data_cntr)
Read data counter value.
Definition: adis.c:1418
uint32_t ext_clk
Definition: adis.h:292
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.
Definition: adis.c:3519
@ ADIS16547_1
Definition: adis.h:99
struct adis_field gyro_fir_enable
Definition: adis_internals.h:313
const struct adis_chip_info * info
Definition: adis.h:276
int adis_write_fir_en_xg(struct adis_dev *adis, uint32_t fir_en_xg)
Write x axis gyroscope filter enable bit value.
Definition: adis.c:2080
int adis_read_alarm_polarity(struct adis_dev *adis, uint32_t *alarm_polarity)
Read alarm polarity encoded value.
Definition: adis.c:2832
int adis_get_sync_clk_freq(struct adis_dev *adis, uint32_t *clk_freq)
Read adis synchronization clock frequency value in Hertz.
Definition: adis.c:4122
int adis_write_fifo_en(struct adis_dev *adis, uint32_t fifo_en)
Write FIFO enable bit value.
Definition: adis.c:1846
int adis_read_sens_bw(struct adis_dev *adis, uint32_t *sens_bw)
Read internal sensor bandwidth encoded value.
Definition: adis.c:3032
struct adis_field sync_selection
Definition: adis_internals.h:283
int adis_write_dr_selection(struct adis_dev *adis, uint32_t dr_selection)
Write data ready selection encoded value.
Definition: adis.c:2568
int adis_read_sync_4khz(struct adis_dev *adis, uint32_t *sync_4khz)
Read 4khz internal sync enable bit value.
Definition: adis.c:3294
int adis_read_temp_out(struct adis_dev *adis, int32_t *temp_out)
Read raw temperature data.
Definition: adis.c:1388
@ ADIS16575_3
Definition: adis.h:104
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.
Definition: adis.c:468
int adis_read_firm_y(struct adis_dev *adis, uint32_t *firm_y)
Read firmware factory configuration year value.
Definition: adis.c:3768
struct adis_field fir_en_zg
Definition: adis_internals.h:390
int adis_read_time_stamp(struct adis_dev *adis, uint32_t *time_stamp)
Read raw time stamp data.
Definition: adis.c:1407
int adis_write_alarm_selection(struct adis_dev *adis, uint32_t alarm_selection)
Write alarm selection encoded value.
Definition: adis.c:2812
int adis_read_firm_m(struct adis_dev *adis, uint32_t *firm_m)
Read firmware factory configuration month value.
Definition: adis.c:3757
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.
Definition: adis.c:2344
int adis_read_fir_en_yg(struct adis_dev *adis, uint32_t *fir_en_yg)
Read y axis gyroscope filter enable bit value.
Definition: adis.c:2092
ADIS fractional scale format structure; scale = dividend/divisor.
Definition: adis.h:227
int adis_write_bias_corr_tbc(struct adis_dev *adis, uint32_t bias_corr_tbc)
Write time base control value.
Definition: adis.c:3412
int adis_read_fifo_overflow(struct adis_dev *adis, uint32_t *fifo_overflow)
Read FIFO overflow bit value.
Definition: adis.c:1865
bool adis_validate_checksum(uint8_t *buffer, uint8_t size, uint8_t idx)
Check if the checksum for burst data is correct.
Definition: adis.c:490
uint8_t ext_5v_supply_err
Definition: adis.h:189
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.
Definition: adis.c:2360
@ ADIS16547_3
Definition: adis.h:101
int adis_read_fls_mem_wr_cntr(struct adis_dev *adis, uint32_t *fls_mem_wr_cntr)
Read flash memory write cycle counter value.
Definition: adis.c:3911
@ ADIS16477_3
Definition: adis.h:87
int adis_write_fifo_wm_int_en(struct adis_dev *adis, uint32_t fifo_wm_int_en)
Write FIFO watermark interrupt enable bit value.
Definition: adis.c:1901
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.
Definition: adis.c:3976
@ ADIS16505_3
Definition: adis.h:92
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.
Definition: adis.c:874
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.
Definition: adis.c:2441
int adis_read_fir_en_zg(struct adis_dev *adis, uint32_t *fir_en_zg)
Read z axis gyroscope filter enable bit value.
Definition: adis.c:2116
struct adis_field x_deltvel
Definition: adis_internals.h:222
int adis_read_z_gyro(struct adis_dev *adis, int32_t *z_gyro)
Read raw gyroscope data on z axis.
Definition: adis.c:1312
struct adis_field z_deltang
Definition: adis_internals.h:220
int adis_get_temp_scale(struct adis_dev *adis, struct adis_scale_fractional *temp_scale)
Read adis device temperature scale in fractional form.
Definition: adis.c:4208
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.
Definition: adis.c:692
uint8_t reg_size
Definition: adis_internals.h:122
int adis_write_xg_bias(struct adis_dev *adis, int32_t xg_bias)
Write raw gyroscope offset correction on x axis.
Definition: adis.c:1576
struct adis_field data_cntr
Definition: adis_internals.h:213
int adis_write_fifo_wm_lvl(struct adis_dev *adis, uint32_t fifo_wm_lvl)
Write FIFO watermark threshold level value.
Definition: adis.c:1949
int adis_read_diag_gyro2_failure(struct adis_dev *adis, uint32_t *gyro2_failure)
Diagnosis: read gyroscope2 self test error flag value.
Definition: adis.c:834
struct adis_field y_accl
Definition: adis_internals.h:204
struct adis_field up_scale
Definition: adis_internals.h:316
int adis_read_fir_coef(struct adis_dev *adis, uint8_t coef_idx, uint32_t *coef)
Read FIR Filter Coefficient C_coef_idx value.
Definition: adis.c:3933
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....
Definition: adis.c:602
struct adis_field filt_size_var_b
Definition: adis_internals.h:271
uint8_t int_proc_supply_err
Definition: adis.h:187
#define ADIS_MSG_SIZE_32_BIT_BURST
Definition: adis.c:56
Implementation of adis.h.
int adis_read_boot_rev(struct adis_dev *adis, uint32_t *boot_rev)
Read boot loader revision value.
Definition: adis.c:3779
struct adis_field usr_scr_4
Definition: adis_internals.h:378
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.
Definition: adis.c:3111
int adis_write_accl_fir_enable(struct adis_dev *adis, uint32_t accl_fir_enable)
Write accelerometer FIR filter control bit value.
Definition: adis.c:3074
int adis_read_firm_y(struct adis_dev *adis, uint32_t *firm_y)
Read firmware factory configuration year value.
Definition: adis.c:3768
int adis_read_dec_rate(struct adis_dev *adis, uint32_t *dec_rate)
Read decimation rate value.
Definition: adis.c:3367
int adis_write_xa_scale(struct adis_dev *adis, int32_t xa_scale)
Write raw acceleration scale adjustment on x axis.
Definition: adis.c:1777
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.
Definition: adis.c:3467
struct adis_field sw_res
Definition: adis_internals.h:350
uint32_t diag_z_axis_gyro_failure_mask
Definition: adis_internals.h:160
int adis_read_usr_scr_3(struct adis_dev *adis, uint32_t *usr_scr_3)
Read user scratch register 3 value.
Definition: adis.c:3867
void adis_remove(struct adis_dev *adis)
Remove adis device.
Definition: adis.c:162
uint16_t fact_calib_restore_ms
Definition: adis_internals.h:61
struct adis_field firm_rev
Definition: adis_internals.h:355
int adis_write_sync_polarity(struct adis_dev *adis, uint32_t sync_polarity)
Write sync polarity encoded value.
Definition: adis.c:2710
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.
Definition: adis.c:979
uint32_t write_delay
Definition: adis_internals.h:438
int adis_read_fifo_wm_lvl(struct adis_dev *adis, uint32_t *fifo_wm_lvl)
Read FIFO watermark threshold level value.
Definition: adis.c:1937
int adis_read_timestamp32(struct adis_dev *adis, uint32_t *timestamp32)
Read timestamp32 enable bit value.
Definition: adis.c:3262
int adis_read_proc_rev(struct adis_dev *adis, uint32_t *proc_rev)
Read processor revision value.
Definition: adis.c:3724
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.
Definition: adis.c:3428
struct adis_field fifo_wm_int_en
Definition: adis_internals.h:264
uint8_t accl_temp_x_y
Definition: adis.h:209
int(* read_lpf)(struct adis_dev *adis, enum adis_chan_type chan, enum adis_axis_type axis, uint32_t *freq)
Definition: adis_internals.h:489
struct adis_field x_deltang
Definition: adis_internals.h:216
int adis_write_sync_mode(struct adis_dev *adis, uint32_t sync_mode, uint32_t ext_clk)
Update synchronization mode.
Definition: adis.c:2749
struct no_os_gpio_desc * gpio_reset
Definition: adis.h:274
@ ADIS_Y_AXIS
Definition: adis.h:127
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.
Definition: adis.c:3571
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.
Definition: adis.c:4176
int adis_read_dr_selection(struct adis_dev *adis, uint32_t *dr_selection)
Read data ready selection encoded value.
Definition: adis.c:2552
struct adis_field xa_scale
Definition: adis_internals.h:253
struct adis_field firm_m
Definition: adis_internals.h:359
int adis_write_usr_scr_1(struct adis_dev *adis, uint32_t usr_scr_1)
Write user scratch register 1 value.
Definition: adis.c:3834
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.
Definition: adis.c:3532
uint8_t boot_memory_failure
Definition: adis.h:181
@ ADIS_DELTAANGL_CHAN
Definition: adis.h:118
int adis_read_diag_gyro2_failure(struct adis_dev *adis, uint32_t *gyro2_failure)
Diagnosis: read gyroscope2 self test error flag value.
Definition: adis.c:834
int32_t no_os_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: no_os_gpio.c:104
int adis_write_alarm_enable(struct adis_dev *adis, uint32_t alarm_enable)
Write alarm enable encoded value.
Definition: adis.c:2879
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
int adis_write_za_bias(struct adis_dev *adis, int32_t za_bias)
Write raw acceleration offset correction on z axis.
Definition: adis.c:1686
int adis_get_temp_offset(struct adis_dev *adis, int *temp_offset)
Read adis device temperature offset in integer.
Definition: adis.c:4224
uint32_t cs_change_delay
Definition: adis_internals.h:440
struct adis_field write_lock
Definition: adis_internals.h:336
struct adis_field alarm_enable
Definition: adis_internals.h:293
uint16_t sw_reset_ms
Definition: adis_internals.h:77
struct adis_field zg_scale
Definition: adis_internals.h:251
int adis_read_xg_scale(struct adis_dev *adis, int32_t *xg_scale)
Read raw gyroscope scale adjustment on x axis.
Definition: adis.c:1697
uint8_t snsr_init_failure
Definition: adis.h:137
Bitfield struct which maps on the diagnosis register.
Definition: adis.h:135
uint32_t fls_mem_wr_cntr_max
Definition: adis_internals.h:454
int adis_write_gyro_fir_enable(struct adis_dev *adis, uint32_t gyro_fir_enable)
Write gyroscope FIR filter control bit value.
Definition: adis.c:3098
uint32_t diag_int_reg_err_mask
Definition: adis_internals.h:190
int adis_write_fir_coef(struct adis_dev *adis, uint8_t coef_idx, uint32_t coef)
Write FIR Filter Coefficient C_coef_idx value.
Definition: adis.c:3949
struct adis_field burst32
Definition: adis_internals.h:305
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.
Definition: adis.c:1999
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.
Definition: adis.c:2248
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.
Definition: adis.c:4192
int adis_read_y_gyro(struct adis_dev *adis, int32_t *y_gyro)
Read raw gyroscope data on y axis.
Definition: adis.c:1293
Bitfield struct which maps on the temperature fags from the temperature register.
Definition: adis.h:203
struct adis_field fifo_en
Definition: adis_internals.h:260
int adis_read_fifo_wm_int_pol(struct adis_dev *adis, uint32_t *fifo_wm_int_pol)
Read FIFO watermark interrupt polarity bit value.
Definition: adis.c:1913
uint8_t y_axis_gyro_failure
Definition: adis.h:161
struct adis_field fls_mem_update
Definition: adis_internals.h:344
struct adis_field pt_of_perc_algnmt
Definition: adis_internals.h:299
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.
Definition: adis.c:2495
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
struct adis_diag_flags diag_flags
Definition: adis.h:278
#define ADIS_SYNC_OUTPUT
Definition: adis.h:64
uint16_t dec_rate_update_us
Definition: adis_internals.h:81
int adis_read_linear_accl_comp(struct adis_dev *adis, uint32_t *linear_accl_comp)
Read linear acceleration compensation enable bit value.
Definition: adis.c:3147
int adis_read_y_deltvel(struct adis_dev *adis, int32_t *y_deltvel)
Read raw delta velocity data on y axis.
Definition: adis.c:1505
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.
Definition: adis.c:3125
int adis_write_alarm_selection(struct adis_dev *adis, uint32_t alarm_selection)
Write alarm selection encoded value.
Definition: adis.c:2812
int adis_read_gpio_lvl(struct adis_dev *adis, uint8_t dio_nb, uint32_t *level)
Read gpio configured data level.
Definition: adis.c:2937
const uint32_t flags
Definition: adis_internals.h:434
int adis_read_fifo_cnt(struct adis_dev *adis, uint32_t *fifo_cnt)
Read output FIFO sample count.
Definition: adis.c:1543
int adis_write_gpio_lvl(struct adis_dev *adis, uint8_t dio_nb, uint32_t level)
Write gpio level configuration.
Definition: adis.c:3002
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.
Definition: adis.c:3571
int adis_write_za_scale(struct adis_dev *adis, int32_t za_scale)
Write raw acceleration scale adjustment on z axis.
Definition: adis.c:1823
int adis_write_fifo_wm_int_pol(struct adis_dev *adis, uint32_t fifo_wm_int_pol)
Write FIFO watermark interrupt polarity bit value.
Definition: adis.c:1925
int adis_write_fir_en_za(struct adis_dev *adis, uint32_t fir_en_za)
Write z axis accelerometer filter enable bit value.
Definition: adis.c:2200
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.
Definition: adis.c:3480
uint8_t fls_mem_wr_cnt_exceed
Definition: adis.h:197
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.
Definition: adis.c:3545
uint8_t z_axis_gyro_failure
Definition: adis.h:163
int adis_read_x_accl(struct adis_dev *adis, int32_t *x_accl)
Read raw acceleration data on x axis.
Definition: adis.c:1331
@ ADIS_Z_AXIS
Definition: adis.h:128
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.
Definition: adis.c:2328
struct adis_field temp_out
Definition: adis_internals.h:208
int adis_read_fir_en_ya(struct adis_dev *adis, uint32_t *fir_en_ya)
Read y axis accelerometer filter enable bit value.
Definition: adis.c:2164
int adis_write_zg_scale(struct adis_dev *adis, int32_t zg_scale)
Write raw gyroscope scale adjustment on z axis.
Definition: adis.c:1754
int adis_cmd_fact_calib_restore(struct adis_dev *adis)
Command: factory calibration restore.
Definition: adis.c:3593
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.
Definition: adis.c:2216
int adis_read_diag_spi_comm_err(struct adis_dev *adis, uint32_t *spi_comm_err)
Diagnosis: read spi communication error flag value.
Definition: adis.c:713
uint32_t int_clk
Definition: adis_internals.h:462
struct adis_field fifo_flush
Definition: adis_internals.h:348
int adis_cmd_snsr_self_test(struct adis_dev *adis)
Command: sensor self test.
Definition: adis.c:3612
int32_t no_os_spi_transfer(struct no_os_spi_desc *desc, struct no_os_spi_msg *msgs, uint32_t len)
Iterate over head list and send all spi messages.
Definition: no_os_spi.c:185
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.
Definition: adis.c:1168
struct adis_field fir_bank_sel_yg
Definition: adis_internals.h:400
uint8_t gyro2_failure
Definition: adis.h:155
uint8_t int_snsr_supply_err
Definition: adis.h:191
int adis_read_y_deltvel(struct adis_dev *adis, int32_t *y_deltvel)
Read raw delta velocity data on y axis.
Definition: adis.c:1505
int adis_write_alarm_polarity(struct adis_dev *adis, uint32_t alarm_polarity)
Write alarm polarity encoded value.
Definition: adis.c:2844
#define ADIS_READ_BURST_DATA_CMD_SIZE
Definition: adis_internals.h:44
struct adis_field firm_y
Definition: adis_internals.h:361
int adis_write_zg_bias(struct adis_dev *adis, int32_t zg_bias)
Write raw gyroscope offset correction on z axis.
Definition: adis.c:1620
const struct adis_timeout * timeouts
Definition: adis_internals.h:432
int adis_write_reg(struct adis_dev *adis, uint32_t reg, uint32_t value, uint32_t size)
Write N bytes to register.
Definition: adis.c:305
uint8_t gyro2_temp_y
Definition: adis.h:215
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.
Definition: adis.c:2477
int adis_write_timestamp32(struct adis_dev *adis, uint32_t timestamp32)
Write timestamp32 enable bit value.
Definition: adis.c:3274
int adis_read_diag_reg_nvm_err(struct adis_dev *adis, uint32_t *reg_nvm_err)
Diagnosis: read register NVM error flag value.
Definition: adis.c:1126
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.
Definition: adis.c:3111
uint32_t diag_fls_mem_update_failure_mask
Definition: adis_internals.h:138
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.
Definition: adis.c:468
@ ADIS16576_3
Definition: adis.h:106
uint32_t diag_snsr_init_failure_mask
Definition: adis_internals.h:134
int adis_read_diag_standby_mode(struct adis_dev *adis, uint32_t *standby_mode)
Diagnosis: read standby mode flag value.
Definition: adis.c:733
struct adis_field fifo_wm_lvl
Definition: adis_internals.h:268
int adis_read_fir_en_yg(struct adis_dev *adis, uint32_t *fir_en_yg)
Read y axis gyroscope filter enable bit value.
Definition: adis.c:2092
const struct adis_chip_info * info
Definition: adis.h:308
struct adis_field lot_num
Definition: adis_internals.h:369
uint32_t no_os_find_last_set_bit(uint32_t word)
int adis_write_usr_scr_2(struct adis_dev *adis, uint32_t usr_scr_2)
Write user scratch register 2 value.
Definition: adis.c:3856
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.
Definition: adis.c:979
uint8_t wdg_timer_flag
Definition: adis.h:185
int adis_read_filt_size_var_b(struct adis_dev *adis, uint32_t *filt_size_var_b)
Read filter size variable B value.
Definition: adis.c:1961
int adis_read_ya_scale(struct adis_dev *adis, int32_t *ya_scale)
Read raw acceleration scale adjustment on y axis.
Definition: adis.c:1789
int adis_read_alarm_selection(struct adis_dev *adis, uint32_t *alarm_selection)
Read alarm selection encoded value.
Definition: adis.c:2796
uint32_t no_os_field_get(uint32_t mask, uint32_t word)
@ ADIS16507_3
Definition: adis.h:95
int adis_get_sync_clk_freq(struct adis_dev *adis, uint32_t *clk_freq)
Read adis synchronization clock frequency value in Hertz.
Definition: adis.c:4122
uint32_t diag_x_axis_gyro_failure_mask
Definition: adis_internals.h:156
int adis_write_usr_scr_4(struct adis_dev *adis, uint32_t usr_scr_4)
Write user scratch register 4 value.
Definition: adis.c:3900
int adis_write_fir_en_ya(struct adis_dev *adis, uint32_t fir_en_ya)
Write y axis accelerometer filter enable bit value.
Definition: adis.c:2176
struct adis_field fifo_wm_int_pol
Definition: adis_internals.h:266
adis_axis_type
Supported axes.
Definition: adis.h:125
uint32_t diag_gyro2_failure_mask
Definition: adis_internals.h:152
#define ADIS_PAGE_SIZE
Definition: adis_internals.h:46
#define NO_OS_BIT(x)
Definition: no_os_util.h:45
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.
Definition: adis.c:2296
@ ADIS16577_2
Definition: adis.h:107
int adis_write_dec_rate(struct adis_dev *adis, uint32_t dec_rate)
Write decimation rate value.
Definition: adis.c:3378
int adis_get_temp_offset(struct adis_dev *adis, int *temp_offset)
Read adis device temperature offset in integer.
Definition: adis.c:4224
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
int adis_read_fir_coef(struct adis_dev *adis, uint8_t coef_idx, uint32_t *coef)
Read FIR Filter Coefficient C_coef_idx value.
Definition: adis.c:3933
struct adis_field za_scale
Definition: adis_internals.h:257
uint16_t reg_addr
Definition: adis_internals.h:120
int adis_read_fifo_wm_int_en(struct adis_dev *adis, uint32_t *fifo_wm_int_en)
Read FIFO watermark interrupt enable bit value.
Definition: adis.c:1889
@ ADIS16505_2
Definition: adis.h:91
int adis_read_ya_scale(struct adis_dev *adis, int32_t *ya_scale)
Read raw acceleration scale adjustment on y axis.
Definition: adis.c:1789
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.
Definition: adis.c:874
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.
Definition: adis.c:2441
int(* get_offset)(struct adis_dev *adis, int *offset, enum adis_chan_type chan_type)
Definition: adis_internals.h:477
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.
Definition: adis.c:2423
int adis_read_fir_en_xg(struct adis_dev *adis, uint32_t *fir_en_xg)
Read x axis gyroscope filter enable bit value.
Definition: adis.c:2068
int adis_read_diag_stat(struct adis_dev *adis, struct adis_diag_flags *diag_flags)
Read diag status register and update device diag flags.
Definition: adis.c:576
int adis_read_gpio_lvl(struct adis_dev *adis, uint8_t dio_nb, uint32_t *level)
Read gpio configured data level.
Definition: adis.c:2937
struct adis_field time_stamp
Definition: adis_internals.h:211
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.
Definition: adis.c:1261
#define ADIS_MSG_SIZE_16_BIT_BURST
Definition: adis.c:55
uint8_t checksum_err
Definition: adis.h:195
uint8_t gyro1_temp_y
Definition: adis.h:217
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.
Definition: adis.c:3493
int adis_read_gpio_dir(struct adis_dev *adis, uint8_t dio_nb, uint32_t *dir)
Read gpio configured direction.
Definition: adis.c:2907
int adis_read_accl_fir_enable(struct adis_dev *adis, uint32_t *accl_fir_enable)
Read accelerometer FIR filter control bit value.
Definition: adis.c:3062
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.
Definition: adis.c:2328
int adis_write_fifo_wm_lvl(struct adis_dev *adis, uint32_t fifo_wm_lvl)
Write FIFO watermark threshold level value.
Definition: adis.c:1949
int adis_read_yg_scale(struct adis_dev *adis, int32_t *yg_scale)
Read raw gyroscope scale adjustment on y axis.
Definition: adis.c:1720
struct adis_field usr_scr_2
Definition: adis_internals.h:374
struct adis_field proc_rev
Definition: adis_internals.h:353
int adis_read_zg_scale(struct adis_dev *adis, int32_t *zg_scale)
Read raw gyroscope scale adjustment on z axis.
Definition: adis.c:1743
int adis_read_fir_en_ya(struct adis_dev *adis, uint32_t *fir_en_ya)
Read y axis accelerometer filter enable bit value.
Definition: adis.c:2164
uint16_t temp_lsb
Definition: adis.h:249
void no_os_udelay(uint32_t usecs)
Wait until usecs microseconds passed.
Definition: aducm3029_delay.c:114
struct adis_field linear_accl_comp
Definition: adis_internals.h:301
int adis_read_sync_4khz(struct adis_dev *adis, uint32_t *sync_4khz)
Read 4khz internal sync enable bit value.
Definition: adis.c:3294
int adis_write_burst32(struct adis_dev *adis, uint32_t burst_size)
Write burst32 enable bit value.
Definition: adis.c:3241
@ ADIS16475_2
Definition: adis.h:83
int adis_cmd_sw_res(struct adis_dev *adis)
Command: software reset.
Definition: adis.c:3682
uint8_t sync_mode_max
Definition: adis_internals.h:452
int adis_write_xa_bias(struct adis_dev *adis, int32_t xa_bias)
Write raw acceleration offset correction on x axis.
Definition: adis.c:1642
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.
Definition: adis.c:958
int adis_read_fifo_wm_lvl(struct adis_dev *adis, uint32_t *fifo_wm_lvl)
Read FIFO watermark threshold level value.
Definition: adis.c:1937
struct adis_field alarm_polarity
Definition: adis_internals.h:291
struct adis_field z_deltvel
Definition: adis_internals.h:226
int adis_read_field_u32(struct adis_dev *adis, struct adis_field field, uint32_t *field_val)
Read field to uint32 value.
Definition: adis.c:404
uint32_t diag_clk_err_mask
Definition: adis_internals.h:148
int adis_write_fir_en_yg(struct adis_dev *adis, uint32_t fir_en_yg)
Write y axis gyroscope filter enable bit value.
Definition: adis.c:2104
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.
Definition: adis.c:3441
struct adis_field bias_corr_en_xg
Definition: adis_internals.h:323
int adis_read_reg(struct adis_dev *adis, uint32_t reg, uint32_t *val, uint32_t size)
Read N bytes from register.
Definition: adis.c:211
int adis_read_data_cntr(struct adis_dev *adis, uint32_t *data_cntr)
Read data counter value.
Definition: adis.c:1418
uint16_t reset_ms
Definition: adis_internals.h:57
int adis_init(struct adis_dev **adis, const struct adis_init_param *ip)
Initialize adis device.
Definition: adis.c:99
uint32_t no_os_get_unaligned_be32(uint8_t *buf)
int32_t no_os_gpio_set_value(struct no_os_gpio_desc *desc, uint8_t value)
Set the value of the specified GPIO.
Definition: no_os_gpio.c:197
bool burst32
Definition: adis.h:296
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.
Definition: adis.c:2477
uint32_t read_delay
Definition: adis_internals.h:436
int adis_read_za_scale(struct adis_dev *adis, int32_t *za_scale)
Read raw acceleration scale adjustment on z axis.
Definition: adis.c:1812
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.
Definition: adis.c:2280
int adis_read_yg_scale(struct adis_dev *adis, int32_t *yg_scale)
Read raw gyroscope scale adjustment on y axis.
Definition: adis.c:1720
int adis_read_zg_scale(struct adis_dev *adis, int32_t *zg_scale)
Read raw gyroscope scale adjustment on z axis.
Definition: adis.c:1743
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.
Definition: adis.c:3506
int adis_read_diag_aduc_mcu_fault(struct adis_dev *adis, uint32_t *aduc_mcu_fault)
Diagnosis: read ADuC microcontroller fault flag value.
Definition: adis.c:1000
int adis_read_diag_data_path_overrun(struct adis_dev *adis, uint32_t *data_path_overrun_err)
Diagnosis: read data path overrun flag value.
Definition: adis.c:671
int adis_write_filt_size_var_b(struct adis_dev *adis, uint32_t filt_size_var_b)
Write filter size variable B value.
Definition: adis.c:1973
int adis_read_z_deltang(struct adis_dev *adis, int32_t *z_deltang)
Read raw delta angle data on z axis.
Definition: adis.c:1467
struct adis_field x_accl
Definition: adis_internals.h:202
int(* write_sync_mode)(struct adis_dev *adis, uint32_t sync_mode, uint32_t ext_clk)
Definition: adis_internals.h:483
int adis_read_diag_standby_mode(struct adis_dev *adis, uint32_t *standby_mode)
Diagnosis: read standby mode flag value.
Definition: adis.c:733
int adis_read_diag_stat(struct adis_dev *adis, struct adis_diag_flags *diag_flags)
Read diag status register and update device diag flags.
Definition: adis.c:576
int adis_write_sync_mode(struct adis_dev *adis, uint32_t sync_mode, uint32_t ext_clk)
Update synchronization mode.
Definition: adis.c:2749
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.
Definition: adis.c:3428
int adis_write_fir_coef(struct adis_dev *adis, uint8_t coef_idx, uint32_t coef)
Write FIR Filter Coefficient C_coef_idx value.
Definition: adis.c:3949
uint16_t data_cntr_msb
Definition: adis.h:252
int adis_write_sync_selection(struct adis_dev *adis, uint32_t sync_selection)
Write sync selection encoded value.
Definition: adis.c:2678
int adis_write_fifo_overflow(struct adis_dev *adis, uint32_t fifo_overflow)
Write FIFO overflow bit value.
Definition: adis.c:1877
int adis_read_burst32(struct adis_dev *adis, uint32_t *burst32)
Read burst32 enable bit value.
Definition: adis.c:3222
int adis_write_usr_scr_3(struct adis_dev *adis, uint32_t usr_scr_3)
Write user scratch register 3 value.
Definition: adis.c:3878
@ ADIS16501
Definition: adis.h:89
int adis_read_ya_bias(struct adis_dev *adis, int32_t *ya_bias)
Read raw acceleration offset correction on y axis.
Definition: adis.c:1653
#define ADIS_WRITE_REG(reg)
Definition: adis_internals.h:49
struct adis_field coeff_bank_a
Definition: adis_internals.h:410
uint32_t diag_config_calib_crc_error_mask
Definition: adis_internals.h:170
uint8_t spi_comm_err
Definition: adis.h:143
int adis_read_usr_scr_4(struct adis_dev *adis, uint32_t *usr_scr_4)
Read user scratch register 4 value.
Definition: adis.c:3889
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.
Definition: adis.c:2392
struct adis_field yg_scale
Definition: adis_internals.h:249
int adis_write_sens_bw(struct adis_dev *adis, uint32_t sens_bw)
Write internal sensor bandwidth encoded value.
Definition: adis.c:3043
struct adis_field bias_corr_tbc
Definition: adis_internals.h:321
int adis_cmd_sw_res(struct adis_dev *adis)
Command: software reset.
Definition: adis.c:3682
uint32_t sync_mode
Definition: adis.h:320
int adis_write_fir_en_ya(struct adis_dev *adis, uint32_t fir_en_ya)
Write y axis accelerometer filter enable bit value.
Definition: adis.c:2176
ADIS filed map definition structure.
Definition: adis_internals.h:130
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.
Definition: adis.c:2531
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.
Definition: adis.c:3125
int adis_write_dr_enable(struct adis_dev *adis, uint32_t dr_enable)
Write data ready enable encoded value.
Definition: adis.c:2635
struct adis_field dr_enable
Definition: adis_internals.h:281
int adis_read_diag_snsr_failure(struct adis_dev *adis, uint32_t *snsr_failure)
Diagnosis: read sensor self test error flag value.
Definition: adis.c:754
struct adis_field yg_bias
Definition: adis_internals.h:236
int adis_write_gyro_fir_enable(struct adis_dev *adis, uint32_t gyro_fir_enable)
Write gyroscope FIR filter control bit value.
Definition: adis.c:3098
struct adis_field dr_polarity
Definition: adis_internals.h:279
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.
Definition: adis.c:3467
struct adis_field firm_d
Definition: adis_internals.h:357
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.
Definition: adis.c:2264
int32_t no_os_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by no_os_spi_init().
Definition: no_os_spi.c:116
uint32_t diag_data_path_overrun_mask
Definition: adis_internals.h:136
adis_device_id
Supported device ids.
Definition: adis.h:74
int adis_read_diag_wdg_timer_flag(struct adis_dev *adis, uint32_t *wdg_timer_flag)
Diagnosis: read watchdog timer flag value.
Definition: adis.c:1147
struct adis_field fir_bank_sel_zg
Definition: adis_internals.h:402
int adis_write_gpio_dir(struct adis_dev *adis, uint8_t dio_nb, uint32_t dir)
Write gpio direction configuration.
Definition: adis.c:2967
int adis_read_serial_num(struct adis_dev *adis, uint32_t *serial_num)
Read serial number value.
Definition: adis.c:3801
int(* read_burst_data)(struct adis_dev *adis, struct adis_burst_data *data, bool burst32, uint8_t burst_sel, bool fifo_pop, bool crc_check)
Definition: adis_internals.h:474
Header file of GPIO Interface.
struct adis_field temp_flags
Definition: adis_internals.h:193
uint8_t gyro1_temp_x
Definition: adis.h:221
uint8_t y_axis_accl_failure
Definition: adis.h:167
int adis_write_sens_bw(struct adis_dev *adis, uint32_t sens_bw)
Write internal sensor bandwidth encoded value.
Definition: adis.c:3043
int adis_read_dr_selection(struct adis_dev *adis, uint32_t *dr_selection)
Read data ready selection encoded value.
Definition: adis.c:2552
int(* write_lpf)(struct adis_dev *adis, enum adis_chan_type chan, enum adis_axis_type axis, uint32_t freq)
Definition: adis_internals.h:486
int(* get_scale)(struct adis_dev *adis, uint32_t *scale_m1, uint32_t *scale_m2, enum adis_chan_type chan_type)
Definition: adis_internals.h:464
struct adis_field fir_bank_sel_xa
Definition: adis_internals.h:404
int adis_write_sync_selection(struct adis_dev *adis, uint32_t sync_selection)
Write sync selection encoded value.
Definition: adis.c:2678
uint32_t diag_accl_failure_mask
Definition: adis_internals.h:154
int adis_read_fls_mem_wr_cntr(struct adis_dev *adis, uint32_t *fls_mem_wr_cntr)
Read flash memory write cycle counter value.
Definition: adis.c:3911
uint16_t x_accel_msb
Definition: adis.h:260
int adis_write_linear_accl_comp(struct adis_dev *adis, uint32_t linear_accl_comp)
Write linear acceleration compensation enable bit value.
Definition: adis.c:3161
int adis_write_dr_polarity(struct adis_dev *adis, uint32_t dr_polarity)
Write data ready polarity encoded value.
Definition: adis.c:2600
uint8_t z_axis_accl_failure
Definition: adis.h:169
@ ADIS16507_2
Definition: adis.h:94
struct no_os_spi_desc * spi_desc
Definition: adis.h:272
struct adis_field coeff_bank_c
Definition: adis_internals.h:414
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.
Definition: adis.c:2392
uint16_t msc_reg_update_us
Definition: adis_internals.h:89
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.
Definition: adis.c:1210
int32_t no_os_spi_init(struct no_os_spi_desc **desc, const struct no_os_spi_init_param *param)
Initialize the SPI communication peripheral.
Definition: no_os_spi.c:52
uint32_t diag_boot_memory_failure_mask
Definition: adis_internals.h:178
int adis_write_dr_selection(struct adis_dev *adis, uint32_t dr_selection)
Write data ready selection encoded value.
Definition: adis.c:2568
uint16_t no_os_get_unaligned_be16(uint8_t *buf)
@ ADIS_DELTAVEL_CHAN
Definition: adis.h:119
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.
Definition: adis.c:1189
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.
Definition: adis.c:2459
struct adis_field snsr_self_test
Definition: adis_internals.h:342
int adis_write_xg_bias(struct adis_dev *adis, int32_t xg_bias)
Write raw gyroscope offset correction on x axis.
Definition: adis.c:1576
int adis_write_field_u32(struct adis_dev *adis, struct adis_field field, uint32_t field_val)
Write field from uint32 value.
Definition: adis.c:449
@ ADIS16477_1
Definition: adis.h:85
struct adis_field coeff_c0
Definition: adis_internals.h:384
struct no_os_gpio_init_param * gpio_reset
Definition: adis.h:312
int adis_read_sync_polarity(struct adis_dev *adis, uint32_t *sync_polarity)
Read sync polarity encoded value.
Definition: adis.c:2698
int adis_initial_startup(struct adis_dev *adis)
Device initial setup.
Definition: adis.c:179
int adis_read_diag_overrange(struct adis_dev *adis, uint32_t *overrange)
Diagnosis: read overrange for inertial sensors flag value.
Definition: adis.c:1042
uint8_t power_supply_failure
Definition: adis.h:179
int adis_read_field_s32(struct adis_dev *adis, struct adis_field field, int32_t *field_val)
Read field to int32 value.
Definition: adis.c:425
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.
Definition: adis.c:3454
struct adis_field boot_rev
Definition: adis_internals.h:363
int adis_cmd_fls_mem_update(struct adis_dev *adis)
Command: flash memory update.
Definition: adis.c:3631
uint32_t diag_wdg_timer_flag_mask
Definition: adis_internals.h:182
struct adis_field bias_corr_en_za
Definition: adis_internals.h:333
int adis_read_y_accl(struct adis_dev *adis, int32_t *y_accl)
Read raw acceleration data on y axis.
Definition: adis.c:1350
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.
Definition: adis.c:4192
Header file of utility functions.
#define ADIS_SYNC_SCALED
Definition: adis.h:63
int adis_write_yg_bias(struct adis_dev *adis, int32_t yg_bias)
Write raw gyroscope offset correction on y axis.
Definition: adis.c:1598
uint32_t dividend
Definition: adis.h:239
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.
Definition: adis.c:3506
uint16_t x_gyro_lsb
Definition: adis.h:253
uint32_t diag_overrange_mask
Definition: adis_internals.h:172
int adis_write_fir_en_yg(struct adis_dev *adis, uint32_t fir_en_yg)
Write y axis gyroscope filter enable bit value.
Definition: adis.c:2104
@ ADIS16465_2
Definition: adis.h:76
int adis_read_gyro_meas_range(struct adis_dev *adis, uint32_t *gyro_meas_range)
Read gyroscope measurement range value.
Definition: adis.c:2056
struct adis_field x_gyro
Definition: adis_internals.h:196
struct adis_field bias_corr_en_ya
Definition: adis_internals.h:331
uint8_t gyro2_temp_x
Definition: adis.h:219
int32_t no_os_sign_extend32(uint32_t value, int index)
int adis_read_za_bias(struct adis_dev *adis, int32_t *za_bias)
Read raw acceleration offset correction on z axis.
Definition: adis.c:1675
int adis_read_dr_enable(struct adis_dev *adis, uint32_t *dr_enable)
Read data ready enable encoded value.
Definition: adis.c:2623
int adis_get_anglvel_scale(struct adis_dev *adis, struct adis_scale_fractional *anglvel_scale)
Read adis device gyroscope scale in fractional form.
Definition: adis.c:4144
int adis_read_alarm_enable(struct adis_dev *adis, uint32_t *alarm_enable)
Read alarm enable encoded value.
Definition: adis.c:2867
struct adis_field fir_bank_sel_ya
Definition: adis_internals.h:406
int adis_cmd_write_lock(struct adis_dev *adis)
Command: write lock.
Definition: adis.c:3703
struct adis_field xg_scale
Definition: adis_internals.h:247
int adis_write_fifo_wm_int_pol(struct adis_dev *adis, uint32_t fifo_wm_int_pol)
Write FIFO watermark interrupt polarity bit value.
Definition: adis.c:1925
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.
Definition: adis.c:1189
struct adis_field fir_bank_sel_xg
Definition: adis_internals.h:398
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.
Definition: adis.c:2459
#define pr_warning(fmt, args...)
Definition: no_os_print_log.h:97
int adis_read_diag_int_reg_err(struct adis_dev *adis, uint32_t *int_reg_err)
Diagnosis: read internal regulator error flag value.
Definition: adis.c:1231
struct adis_field accl_fir_enable
Definition: adis_internals.h:311
int adis_read_diag_boot_memory_failure(struct adis_dev *adis, uint32_t *boot_memory_failure)
Diagnosis: read boot memory failure error flag value.
Definition: adis.c:1105
void adis_remove(struct adis_dev *adis)
Remove adis device.
Definition: adis.c:162
const struct adis_clk_freq_limit sampling_clk_limits
Definition: adis_internals.h:430
uint16_t fls_mem_test_ms
Definition: adis_internals.h:73
uint16_t filt_size_var_b_max
Definition: adis_internals.h:448
int adis_read_diag_mem_failure(struct adis_dev *adis, uint32_t *mem_failure)
Diagnosis: read flash memory test error flag value.
Definition: adis.c:774
uint16_t fls_mem_update_ms
Definition: adis_internals.h:69
uint16_t self_test_ms
Definition: adis_internals.h:65
int adis_read_filt_size_var_b(struct adis_dev *adis, uint32_t *filt_size_var_b)
Read filter size variable B value.
Definition: adis.c:1961
int adis_read_firm_rev(struct adis_dev *adis, uint32_t *firm_rev)
Read firmware revision value.
Definition: adis.c:3735
int adis_read_diag_data_path_overrun(struct adis_dev *adis, uint32_t *data_path_overrun_err)
Diagnosis: read data path overrun flag value.
Definition: adis.c:671
int32_t no_os_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: no_os_gpio.c:147
int adis_read_diag_spi_comm_err(struct adis_dev *adis, uint32_t *spi_comm_err)
Diagnosis: read spi communication error flag value.
Definition: adis.c:713
int adis_write_xg_scale(struct adis_dev *adis, int32_t xg_scale)
Write raw gyroscope scale adjustment on x axis.
Definition: adis.c:1708
int adis_read_bias_corr_tbc(struct adis_dev *adis, uint32_t *bias_corr_tbc)
Read time base control value.
Definition: adis.c:3400
int adis_read_sync_selection(struct adis_dev *adis, uint32_t *sync_selection)
Read sync selection encoded value.
Definition: adis.c:2662
int adis_write_fir_en_za(struct adis_dev *adis, uint32_t fir_en_za)
Write z axis accelerometer filter enable bit value.
Definition: adis.c:2200
int adis_read_dr_polarity(struct adis_dev *adis, uint32_t *dr_polarity)
Read data ready polarity encoded value.
Definition: adis.c:2588
#define ADIS_READ_BURST_DATA_CMD_MSB
Definition: adis_internals.h:42
int adis_read_za_bias(struct adis_dev *adis, int32_t *za_bias)
Read raw acceleration offset correction on z axis.
Definition: adis.c:1675
int adis_read_dr_enable(struct adis_dev *adis, uint32_t *dr_enable)
Read data ready enable encoded value.
Definition: adis.c:2623
int adis_read_diag_snsr_init_failure(struct adis_dev *adis, uint32_t *snsr_init_failure)
Diagnosis: read sensor initialization failure flag value.
Definition: adis.c:650
uint32_t diag_x_axis_accl_failure_mask
Definition: adis_internals.h:162
uint16_t y_accel_lsb
Definition: adis.h:261
struct adis_field spi_chksum
Definition: adis_internals.h:231
int adis_write_usr_scr_3(struct adis_dev *adis, uint32_t usr_scr_3)
Write user scratch register 3 value.
Definition: adis.c:3878
int adis_write_dec_rate(struct adis_dev *adis, uint32_t dec_rate)
Write decimation rate value.
Definition: adis.c:3378
void adis_update_diag_flags(struct adis_dev *adis, uint32_t diag_stat)
Update device diagnosis flags according to the received parameter.
Definition: adis.c:506
struct adis_field diag_stat
Definition: adis_internals.h:132
int adis_write_yg_scale(struct adis_dev *adis, int32_t yg_scale)
Write raw gyroscope scale adjustment on y axis.
Definition: adis.c:1731
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.
Definition: adis.c:2031
int adis_read_serial_num(struct adis_dev *adis, uint32_t *serial_num)
Read serial number value.
Definition: adis.c:3801
uint8_t accl_temp_z_x
Definition: adis.h:205
int adis_read_usr_scr_2(struct adis_dev *adis, uint32_t *usr_scr_2)
Read user scratch register 2 value.
Definition: adis.c:3845
uint32_t diag_mem_failure_mask
Definition: adis_internals.h:146
int adis_read_up_scale(struct adis_dev *adis, uint32_t *up_scale)
Read external clock scale factor value.
Definition: adis.c:3326
int adis_read_fir_en_xg(struct adis_dev *adis, uint32_t *fir_en_xg)
Read x axis gyroscope filter enable bit value.
Definition: adis.c:2068
@ ADIS16575_2
Definition: adis.h:103
int adis_update_ext_clk_freq(struct adis_dev *adis, uint32_t clk_freq)
Update external clock frequency.
Definition: adis.c:4094
int adis_read_xa_bias(struct adis_dev *adis, int32_t *xa_bias)
Read raw acceleration offset correction on x axis.
Definition: adis.c:1631
Error macro definition for ARM Compiler.
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.
Definition: adis.c:958
int adis_cmd_write_lock(struct adis_dev *adis)
Command: write lock.
Definition: adis.c:3703
int adis_read_zg_bias(struct adis_dev *adis, int32_t *zg_bias)
Read raw gyroscope offset correction on z axis.
Definition: adis.c:1609
enum adis_device_id dev_id
Definition: adis.h:282
int adis_write_usr_scr_2(struct adis_dev *adis, uint32_t usr_scr_2)
Write user scratch register 2 value.
Definition: adis.c:3856
int adis_read_gpio_dir(struct adis_dev *adis, uint8_t dio_nb, uint32_t *dir)
Read gpio configured direction.
Definition: adis.c:2907
uint32_t diag_standby_mode_mask
Definition: adis_internals.h:142
struct adis_field timestamp32
Definition: adis_internals.h:307
uint8_t bias_corr_tbc_max
Definition: adis_internals.h:458
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.
Definition: adis.c:2495
struct adis_field fir_en_yg
Definition: adis_internals.h:388
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.
Definition: adis.c:2280
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.
Definition: adis.c:895
struct adis_field coeff_bank_d
Definition: adis_internals.h:416
struct adis_field prod_id
Definition: adis_internals.h:365
uint8_t mem_failure
Definition: adis.h:149
int adis_read_diag_clk_err(struct adis_dev *adis, uint32_t *clk_err)
Diagnosis: read clock error flag value.
Definition: adis.c:794
int adis_write_sync_4khz(struct adis_dev *adis, uint32_t sync_4khz)
Write 4khz internal sync enable bit value.
Definition: adis.c:3305
int adis_read_xg_bias(struct adis_dev *adis, int32_t *xg_bias)
Read raw gyroscope offset correction on x axis.
Definition: adis.c:1565
int adis_read_firm_rev(struct adis_dev *adis, uint32_t *firm_rev)
Read firmware revision value.
Definition: adis.c:3735
@ ADIS16545_3
Definition: adis.h:98
struct adis_field sens_bw
Definition: adis_internals.h:297
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.
Definition: adis.c:3558
struct adis_field za_bias
Definition: adis_internals.h:244
int adis_read_x_deltang(struct adis_dev *adis, int32_t *x_deltang)
Read raw delta angle data on x axis.
Definition: adis.c:1429
uint32_t diag_z_axis_accl_failure_mask
Definition: adis_internals.h:166
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140
@ ADIS_TEMP_CHAN
Definition: adis.h:117
int adis_write_filt_size_var_b(struct adis_dev *adis, uint32_t filt_size_var_b)
Write filter size variable B value.
Definition: adis.c:1973
uint32_t current_page
Definition: adis.h:284
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.
Definition: adis.c:3480
int adis_write_fir_en_zg(struct adis_dev *adis, uint32_t fir_en_zg)
Write z axis gyroscope filter enable bit value.
Definition: adis.c:2128
int adis_read_sync_selection(struct adis_dev *adis, uint32_t *sync_selection)
Read sync selection encoded value.
Definition: adis.c:2662
int adis_write_linear_accl_comp(struct adis_dev *adis, uint32_t linear_accl_comp)
Write linear acceleration compensation enable bit value.
Definition: adis.c:3161
int32_t no_os_gpio_get_optional(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Get the value of an optional GPIO.
Definition: no_os_gpio.c:75