no-OS
adis.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef __ADIS_H__
35 #define __ADIS_H__
36 
37 #ifdef TEST
38 #define STATIC
39 #else
40 #define STATIC static
41 #endif
42 
43 /******************************************************************************/
44 /***************************** Include Files **********************************/
45 /******************************************************************************/
46 
47 #include "no_os_spi.h"
48 #include "no_os_util.h"
49 #include <errno.h>
50 #include <stdlib.h>
51 #include <stdbool.h>
52 
53 /******************************************************************************/
54 /********************** Macros and Constants Definitions **********************/
55 /******************************************************************************/
56 
57 #define ADIS_4_BYTES_SIZE 4
58 #define ADIS_2_BYTES_SIZE 2
59 #define ADIS_1_BYTE_SIZE 1
60 
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
66 
67 /******************************************************************************/
68 /*************************** Types Declarations *******************************/
69 /******************************************************************************/
70 
109 };
110 
120 };
121 
129 };
130 
131 
137  uint8_t snsr_init_failure : 1;
139  uint8_t data_path_overrun : 1;
143  uint8_t spi_comm_err : 1;
145  uint8_t standby_mode : 1;
147  uint8_t snsr_failure : 1;
149  uint8_t mem_failure : 1;
151  uint8_t clk_err : 1;
153  uint8_t gyro1_failure : 1;
155  uint8_t gyro2_failure : 1;
157  uint8_t accl_failure : 1;
159  uint8_t x_axis_gyro_failure : 2;
161  uint8_t y_axis_gyro_failure : 2;
163  uint8_t z_axis_gyro_failure : 2;
165  uint8_t x_axis_accl_failure : 2;
167  uint8_t y_axis_accl_failure : 2;
169  uint8_t z_axis_accl_failure : 2;
171  uint8_t aduc_mcu_fault : 1;
175  uint8_t overrange : 1;
177  uint8_t temp_err : 1;
179  uint8_t power_supply_failure : 1;
181  uint8_t boot_memory_failure : 1;
183  uint8_t reg_nvm_err : 1;
185  uint8_t wdg_timer_flag : 1;
187  uint8_t int_proc_supply_err : 1;
189  uint8_t ext_5v_supply_err : 1;
191  uint8_t int_snsr_supply_err : 1;
193  uint8_t int_reg_err : 1;
195  uint8_t checksum_err : 1;
198 };
199 
205  uint8_t accl_temp_z_x : 1;
207  uint8_t accl_temp_y_z : 1;
209  uint8_t accl_temp_x_y : 1;
211  uint8_t gyro2_temp_z : 1;
213  uint8_t gyro1_temp_z : 1;
215  uint8_t gyro2_temp_y : 1;
217  uint8_t gyro1_temp_y : 1;
219  uint8_t gyro2_temp_x : 1;
221  uint8_t gyro1_temp_x : 1;
222 };
223 
229  uint32_t dividend;
231  uint32_t divisor;
232 };
233 
239  uint32_t dividend;
241  uint32_t power;
242 };
243 
244 
249  uint16_t temp_lsb;
250  uint16_t temp_msb;
251  uint16_t data_cntr_lsb;
252  uint16_t data_cntr_msb;
253  uint16_t x_gyro_lsb;
254  uint16_t x_gyro_msb;
255  uint16_t y_gyro_lsb;
256  uint16_t y_gyro_msb;
257  uint16_t z_gyro_lsb;
258  uint16_t z_gyro_msb;
259  uint16_t x_accel_lsb;
260  uint16_t x_accel_msb;
261  uint16_t y_accel_lsb;
262  uint16_t y_accel_msb;
263  uint16_t z_accel_lsb;
264  uint16_t z_accel_msb;
265 };
266 
270 struct adis_dev {
276  const struct adis_chip_info *info;
284  uint32_t current_page;
286  uint8_t tx[12];
288  uint8_t rx[8];
290  uint32_t int_clk;
292  uint32_t ext_clk;
296  bool burst32;
298  uint8_t burst_sel;
300  bool is_locked;
301 };
302 
307  /* Chip specific information. */
308  const struct adis_chip_info *info;
316  uint32_t ext_clk;
320  uint32_t sync_mode;
323 };
324 
325 /******************************************************************************/
326 /************************ Functions Declarations ******************************/
327 /******************************************************************************/
328 
330 int adis_init(struct adis_dev **adis, const struct adis_init_param *ip);
332 void adis_remove(struct adis_dev *adis);
334 int adis_initial_startup(struct adis_dev *adis);
335 
337 int adis_read_reg(struct adis_dev *adis, uint32_t reg, uint32_t *val,
338  uint32_t size);
340 int adis_write_reg(struct adis_dev *adis, uint32_t reg, uint32_t value,
341  uint32_t size);
343 int adis_update_bits_base(struct adis_dev *adis, uint32_t reg,
344  const uint32_t mask, const uint32_t val, uint8_t size);
345 
347 int adis_read_diag_stat(struct adis_dev *adis,
348  struct adis_diag_flags *diag_flags);
349 
351 int adis_read_temp_flags(struct adis_dev *adis,
352  struct adis_temp_flags *temp_flags);
353 
356  uint32_t *snsr_init_failure);
359  uint32_t *data_path_overrun_err);
362  uint32_t *fls_mem_update_failure);
364 int adis_read_diag_spi_comm_err(struct adis_dev *adis, uint32_t *spi_comm_err);
366 int adis_read_diag_standby_mode(struct adis_dev *adis,
367  uint32_t *standby_mode);
369 int adis_read_diag_snsr_failure(struct adis_dev *adis, uint32_t *snsr_failure);
371 int adis_read_diag_mem_failure(struct adis_dev *adis, uint32_t *mem_failure);
373 int adis_read_diag_clk_err(struct adis_dev *adis, uint32_t *clk_err);
375 int adis_read_diag_gyro1_failure(struct adis_dev *adis,
376  uint32_t *gyro1_failure);
378 int adis_read_diag_gyro2_failure(struct adis_dev *adis,
379  uint32_t *gyro2_failure);
381 int adis_read_diag_accl_failure(struct adis_dev *adis, uint32_t *accl_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);
401 int adis_read_diag_aduc_mcu_fault(struct adis_dev *adis,
402  uint32_t *aduc_mcu_fault);
405  uint32_t *config_calib_crc_error);
407 int adis_read_diag_overrange(struct adis_dev *adis,
408  uint32_t *overrange);
410 int adis_read_diag_temp_err(struct adis_dev *adis,
411  uint32_t *temp_err);
414  uint32_t *power_supply_failure);
417  uint32_t *boot_memory_failure);
419 int adis_read_diag_reg_nvm_err(struct adis_dev *adis,
420  uint32_t *reg_nvm_err);
422 int adis_read_diag_wdg_timer_flag(struct adis_dev *adis,
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);
434 int adis_read_diag_int_reg_err(struct adis_dev *adis,
435  uint32_t *int_reg_err);
437 void adis_read_diag_checksum_err(struct adis_dev *adis, uint32_t *checksum_err);
440  uint32_t *fls_mem_wr_cnt_exceed);
441 
443 int adis_read_x_gyro(struct adis_dev *adis, int32_t *x_gyro);
445 int adis_read_y_gyro(struct adis_dev *adis, int32_t *y_gyro);
447 int adis_read_z_gyro(struct adis_dev *adis, int32_t *z_gyro);
448 
450 int adis_read_x_accl(struct adis_dev *adis, int32_t *x_accl);
452 int adis_read_y_accl(struct adis_dev *adis, int32_t *y_accl);
454 int adis_read_z_accl(struct adis_dev *adis, int32_t *z_accl);
455 
457 int adis_read_temp_out(struct adis_dev *adis, int32_t *temp_out);
458 
460 int adis_read_time_stamp(struct adis_dev *adis, uint32_t *time_stamp);
462 int adis_read_data_cntr(struct adis_dev *adis, uint32_t *data_cntr);
463 
465 int adis_read_x_deltang(struct adis_dev *adis, int32_t *x_deltang);
467 int adis_read_y_deltang(struct adis_dev *adis, int32_t *y_deltang);
469 int adis_read_z_deltang(struct adis_dev *adis, int32_t *z_deltang);
470 
472 int adis_read_x_deltvel(struct adis_dev *adis, int32_t *x_deltvel);
474 int adis_read_y_deltvel(struct adis_dev *adis, int32_t *y_deltvel);
476 int adis_read_z_deltvel(struct adis_dev *adis, int32_t *z_deltvel);
477 
479 int adis_read_fifo_cnt(struct adis_dev *adis, uint32_t *fifo_cnt);
481 int adis_read_spi_chksum(struct adis_dev *adis, uint32_t *checksum);
482 
486 int adis_read_xg_bias(struct adis_dev *adis, int32_t *xg_bias);
490 int adis_write_xg_bias(struct adis_dev *adis, int32_t xg_bias);
494 int adis_read_yg_bias(struct adis_dev *adis, int32_t *yg_bias);
498 int adis_write_yg_bias(struct adis_dev *adis, int32_t yg_bias);
502 int adis_read_zg_bias(struct adis_dev *adis, int32_t *zg_bias);
506 int adis_write_zg_bias(struct adis_dev *adis, int32_t zg_bias);
507 
511 int adis_read_xa_bias(struct adis_dev *adis, int32_t *xa_bias);
515 int adis_write_xa_bias(struct adis_dev *adis, int32_t xa_bias);
519 int adis_read_ya_bias(struct adis_dev *adis, int32_t *ya_bias);
523 int adis_write_ya_bias(struct adis_dev *adis, int32_t ya_bias);
527 int adis_read_za_bias(struct adis_dev *adis, int32_t *za_bias);
531 int adis_write_za_bias(struct adis_dev *adis, int32_t za_bias);
532 
536 int adis_read_xg_scale(struct adis_dev *adis, int32_t *xg_scale);
540 int adis_write_xg_scale(struct adis_dev *adis, int32_t xg_scale);
544 int adis_read_yg_scale(struct adis_dev *adis, int32_t *yg_scale);
548 int adis_write_yg_scale(struct adis_dev *adis, int32_t yg_scale);
552 int adis_read_zg_scale(struct adis_dev *adis, int32_t *zg_scale);
556 int adis_write_zg_scale(struct adis_dev *adis, int32_t zg_scale);
560 int adis_read_xa_scale(struct adis_dev *adis, int32_t *xa_scale);
564 int adis_write_xa_scale(struct adis_dev *adis, int32_t xa_scale);
568 int adis_read_ya_scale(struct adis_dev *adis, int32_t *ya_scale);
572 int adis_write_ya_scale(struct adis_dev *adis, int32_t ya_scale);
576 int adis_read_za_scale(struct adis_dev *adis, int32_t *za_scale);
580 int adis_write_za_scale(struct adis_dev *adis, int32_t za_scale);
581 
583 int adis_read_fifo_en(struct adis_dev *adis, uint32_t *fifo_en);
585 int adis_write_fifo_en(struct adis_dev *adis, uint32_t fifo_en);
587 int adis_read_fifo_overflow(struct adis_dev *adis, uint32_t *fifo_overflow);
589 int adis_write_fifo_overflow(struct adis_dev *adis, uint32_t fifo_overflow);
591 int adis_read_fifo_wm_int_en(struct adis_dev *adis, uint32_t *fifo_wm_int_en);
593 int adis_write_fifo_wm_int_en(struct adis_dev *adis, uint32_t fifo_wm_int_en);
595 int adis_read_fifo_wm_int_pol(struct adis_dev *adis, uint32_t *fifo_wm_int_pol);
597 int adis_write_fifo_wm_int_pol(struct adis_dev *adis, uint32_t fifo_wm_int_pol);
599 int adis_read_fifo_wm_lvl(struct adis_dev *adis, uint32_t *fifo_wm_lvl);
601 int adis_write_fifo_wm_lvl(struct adis_dev *adis, uint32_t fifo_wm_lvl);
602 
604 int adis_read_filt_size_var_b(struct adis_dev *adis, uint32_t *filt_size_var_b);
606 int adis_write_filt_size_var_b(struct adis_dev *adis, uint32_t filt_size_var_b);
608 int adis_read_lpf(struct adis_dev *adis, enum adis_chan_type chan,
609  enum adis_axis_type axis, uint32_t *freq);
611 int adis_write_lpf(struct adis_dev *adis, enum adis_chan_type chan,
612  enum adis_axis_type axis, uint32_t freq);
614 int adis_read_gyro_meas_range(struct adis_dev *adis, uint32_t *gyro_meas_range);
615 
617 int adis_read_fir_en_xg(struct adis_dev *adis, uint32_t *fir_en_xg);
619 int adis_write_fir_en_xg(struct adis_dev *adis, uint32_t fir_en_xg);
621 int adis_read_fir_en_yg(struct adis_dev *adis, uint32_t *fir_en_yg);
623 int adis_write_fir_en_yg(struct adis_dev *adis, uint32_t fir_en_yg);
625 int adis_read_fir_en_zg(struct adis_dev *adis, uint32_t *fir_en_zg);
627 int adis_write_fir_en_zg(struct adis_dev *adis, uint32_t fir_en_zg);
629 int adis_read_fir_en_xa(struct adis_dev *adis, uint32_t *fir_en_xa);
631 int adis_write_fir_en_xa(struct adis_dev *adis, uint32_t fir_en_xa);
633 int adis_read_fir_en_ya(struct adis_dev *adis, uint32_t *fir_en_ya);
635 int adis_write_fir_en_ya(struct adis_dev *adis, uint32_t fir_en_ya);
637 int adis_read_fir_en_za(struct adis_dev *adis, uint32_t *fir_en_za);
639 int adis_write_fir_en_za(struct adis_dev *adis, uint32_t fir_en_za);
641 int adis_read_fir_bank_sel_xg(struct adis_dev *adis, uint32_t *fir_bank_sel_xg);
643 int adis_write_fir_bank_sel_xg(struct adis_dev *adis, uint32_t fir_bank_sel_xg);
645 int adis_read_fir_bank_sel_yg(struct adis_dev *adis, uint32_t *fir_bank_sel_yg);
647 int adis_write_fir_bank_sel_yg(struct adis_dev *adis, uint32_t fir_bank_sel_yg);
649 int adis_read_fir_bank_sel_zg(struct adis_dev *adis, uint32_t *fir_bank_sel_zg);
651 int adis_write_fir_bank_sel_zg(struct adis_dev *adis, uint32_t fir_bank_sel_zg);
653 int adis_read_fir_bank_sel_xa(struct adis_dev *adis, uint32_t *fir_bank_sel_xa);
655 int adis_write_fir_bank_sel_xa(struct adis_dev *adis, uint32_t fir_bank_sel_xa);
657 int adis_read_fir_bank_sel_ya(struct adis_dev *adis, uint32_t *fir_bank_sel_ya);
659 int adis_write_fir_bank_sel_ya(struct adis_dev *adis, uint32_t fir_bank_sel_ya);
661 int adis_read_fir_bank_sel_za(struct adis_dev *adis, uint32_t *fir_bank_sel_za);
663 int adis_write_fir_bank_sel_za(struct adis_dev *adis, uint32_t fir_bank_sel_za);
665 int adis_read_fir_coef_bank_a(struct adis_dev *adis, uint8_t coef_idx,
666  uint32_t *coef);
668 int adis_write_fir_coef_bank_a(struct adis_dev *adis, uint8_t coef_idx,
669  uint32_t coef);
671 int adis_read_fir_coef_bank_b(struct adis_dev *adis, uint8_t coef_idx,
672  uint32_t *coef);
674 int adis_write_fir_coef_bank_b(struct adis_dev *adis, uint8_t coef_idx,
675  uint32_t coef);
677 int adis_read_fir_coef_bank_c(struct adis_dev *adis, uint8_t coef_idx,
678  uint32_t *coef);
680 int adis_write_fir_coef_bank_c(struct adis_dev *adis, uint8_t coef_idx,
681  uint32_t coef);
683 int adis_read_fir_coef_bank_d(struct adis_dev *adis, uint8_t coef_idx,
684  uint32_t *coef);
686 int adis_write_fir_coef_bank_d(struct adis_dev *adis, uint8_t coef_idx,
687  uint32_t coef);
688 
690 int adis_read_dr_selection(struct adis_dev *adis, uint32_t *dr_selection);
692 int adis_write_dr_selection(struct adis_dev *adis, uint32_t dr_selection);
694 int adis_read_dr_polarity(struct adis_dev *adis, uint32_t *dr_polarity);
696 int adis_write_dr_polarity(struct adis_dev *adis, uint32_t dr_polarity);
698 int adis_read_dr_enable(struct adis_dev *adis, uint32_t *dr_enable);
700 int adis_write_dr_enable(struct adis_dev *adis, uint32_t dr_enable);
702 int adis_read_sync_selection(struct adis_dev *adis, uint32_t *sync_selection);
704 int adis_write_sync_selection(struct adis_dev *adis, uint32_t sync_selection);
706 int adis_read_sync_polarity(struct adis_dev *adis, uint32_t *sync_polarity);
708 int adis_write_sync_polarity(struct adis_dev *adis, uint32_t sync_polarity);
710 int adis_read_sync_mode(struct adis_dev *adis, uint32_t *sync_mode);
712 int adis_write_sync_mode(struct adis_dev *adis, uint32_t sync_mode,
713  uint32_t ext_clk);
715 int adis_read_alarm_selection(struct adis_dev *adis, uint32_t *alarm_selection);
717 int adis_write_alarm_selection(struct adis_dev *adis, uint32_t alarm_selection);
719 int adis_read_alarm_polarity(struct adis_dev *adis, uint32_t *alarm_polarity);
721 int adis_write_alarm_polarity(struct adis_dev *adis, uint32_t alarm_polarity);
723 int adis_read_alarm_enable(struct adis_dev *adis, uint32_t *alarm_enable);
725 int adis_write_alarm_enable(struct adis_dev *adis, uint32_t alarm_enable);
727 int adis_read_gpio_dir(struct adis_dev *adis, uint8_t dio_nb, uint32_t *dir);
729 int adis_write_gpio_dir(struct adis_dev *adis, uint8_t dio_nb, uint32_t dir);
731 int adis_read_gpio_lvl(struct adis_dev *adis, uint8_t dio_nb, uint32_t *level);
733 int adis_write_gpio_lvl(struct adis_dev *adis, uint8_t dio_nb, uint32_t level);
735 int adis_read_sens_bw(struct adis_dev *adis, uint32_t *sens_bw);
737 int adis_write_sens_bw(struct adis_dev *adis, uint32_t sens_bw);
739 int adis_read_accl_fir_enable(struct adis_dev *adis, uint32_t *accl_fir_enable);
741 int adis_write_accl_fir_enable(struct adis_dev *adis, uint32_t accl_fir_enable);
743 int adis_read_gyro_fir_enable(struct adis_dev *adis, uint32_t *gyro_fir_enable);
745 int adis_write_gyro_fir_enable(struct adis_dev *adis, uint32_t gyro_fir_enable);
749 int adis_read_pt_of_perc_algnmt(struct adis_dev *adis,
750  uint32_t *pt_of_perc_algnmt);
754 int adis_write_pt_of_perc_algnmt(struct adis_dev *adis,
755  uint32_t pt_of_perc_algnmt);
759 int adis_read_linear_accl_comp(struct adis_dev *adis,
760  uint32_t *linear_accl_comp);
764 int adis_write_linear_accl_comp(struct adis_dev *adis,
765  uint32_t linear_accl_comp);
767 int adis_read_burst_sel(struct adis_dev *adis, uint32_t *burst_sel);
769 int adis_write_burst_sel(struct adis_dev *adis, uint32_t burst_sel);
771 int adis_read_burst32(struct adis_dev *adis, uint32_t *burst_size);
773 int adis_write_burst32(struct adis_dev *adis, uint32_t burst_size);
775 int adis_read_timestamp32(struct adis_dev *adis, uint32_t *timestamp32);
777 int adis_write_timestamp32(struct adis_dev *adis, uint32_t timestamp32);
779 int adis_read_sync_4khz(struct adis_dev *adis, uint32_t *sync_4khz);
781 int adis_write_sync_4khz(struct adis_dev *adis, uint32_t sync_4khz);
782 
784 int adis_read_up_scale(struct adis_dev *adis, uint32_t *up_scale);
786 int adis_write_up_scale(struct adis_dev *adis, uint32_t up_scale);
787 
789 int adis_read_dec_rate(struct adis_dev *adis, uint32_t *dec_rate);
791 int adis_write_dec_rate(struct adis_dev *adis, uint32_t dec_rate);
792 
794 int adis_read_bias_corr_tbc(struct adis_dev *adis, uint32_t *bias_corr_tbc);
796 int adis_write_bias_corr_tbc(struct adis_dev *adis, uint32_t bias_corr_tbc);
800 int adis_read_bias_corr_en_xg(struct adis_dev *adis, uint32_t *bias_corr_en_xg);
804 int adis_write_bias_corr_en_xg(struct adis_dev *adis, uint32_t bias_corr_en_xg);
808 int adis_read_bias_corr_en_yg(struct adis_dev *adis, uint32_t *bias_corr_en_yg);
812 int adis_write_bias_corr_en_yg(struct adis_dev *adis, uint32_t bias_corr_en_yg);
816 int adis_read_bias_corr_en_zg(struct adis_dev *adis, uint32_t *bias_corr_en_zg);
820 int adis_write_bias_corr_en_zg(struct adis_dev *adis, uint32_t bias_corr_en_zg);
824 int adis_read_bias_corr_en_xa(struct adis_dev *adis, uint32_t *bias_corr_en_xa);
828 int adis_write_bias_corr_en_xa(struct adis_dev *adis, uint32_t bias_corr_en_xa);
832 int adis_read_bias_corr_en_ya(struct adis_dev *adis, uint32_t *bias_corr_en_ya);
836 int adis_write_bias_corr_en_ya(struct adis_dev *adis, uint32_t bias_corr_en_ya);
840 int adis_read_bias_corr_en_za(struct adis_dev *adis, uint32_t *bias_corr_en_za);
844 int adis_write_bias_corr_en_za(struct adis_dev *adis, uint32_t bias_corr_en_za);
845 
847 int adis_cmd_bias_corr_update(struct adis_dev *adis);
849 int adis_cmd_fact_calib_restore(struct adis_dev *adis);
851 int adis_cmd_snsr_self_test(struct adis_dev *adis);
853 int adis_cmd_fls_mem_update(struct adis_dev *adis);
855 int adis_cmd_fls_mem_test(struct adis_dev *adis);
857 int adis_cmd_fifo_flush(struct adis_dev *adis);
859 int adis_cmd_sw_res(struct adis_dev *adis);
861 int adis_cmd_write_lock(struct adis_dev *adis);
862 
864 int adis_read_proc_rev(struct adis_dev *adis, uint32_t *proc_rev);
866 int adis_read_firm_rev(struct adis_dev *adis, uint32_t *firm_rev);
868 int adis_read_firm_d(struct adis_dev *adis, uint32_t *firm_d);
870 int adis_read_firm_m(struct adis_dev *adis, uint32_t *firm_m);
872 int adis_read_firm_y(struct adis_dev *adis, uint32_t *firm_y);
874 int adis_read_boot_rev(struct adis_dev *adis, uint32_t *boot_rev);
876 int adis_read_prod_id(struct adis_dev *adis, uint32_t *prod_id);
878 int adis_read_serial_num(struct adis_dev *adis, uint32_t *serial_num);
880 int adis_read_lot_num(struct adis_dev *adis, uint32_t *lot_num);
881 
883 int adis_read_usr_scr_1(struct adis_dev *adis, uint32_t *usr_scr_1);
885 int adis_write_usr_scr_1(struct adis_dev *adis, uint32_t usr_scr_1);
887 int adis_read_usr_scr_2(struct adis_dev *adis, uint32_t *usr_scr_2);
889 int adis_write_usr_scr_2(struct adis_dev *adis, uint32_t usr_scr_2);
891 int adis_read_usr_scr_3(struct adis_dev *adis, uint32_t *usr_scr_3);
893 int adis_write_usr_scr_3(struct adis_dev *adis, uint32_t usr_scr_3);
895 int adis_read_usr_scr_4(struct adis_dev *adis, uint32_t *usr_scr_4);
897 int adis_write_usr_scr_4(struct adis_dev *adis, uint32_t usr_scr_4);
898 
900 int adis_read_fls_mem_wr_cntr(struct adis_dev *adis, uint32_t *fls_mem_wr_cntr);
901 
903 int adis_read_fir_coef(struct adis_dev *adis, uint8_t coef_idx, uint32_t *coef);
905 int adis_write_fir_coef(struct adis_dev *adis, uint8_t coef_idx, uint32_t coef);
906 
908 int adis_read_burst_data(struct adis_dev *adis, struct adis_burst_data *data,
909  bool burst32, uint8_t burst_sel, bool fifo_pop, bool crc_check);
910 
912 int adis_update_ext_clk_freq(struct adis_dev *adis, uint32_t clk_freq);
913 
915 int adis_get_sync_clk_freq(struct adis_dev *adis, uint32_t *clk_freq);
916 
918 int adis_get_anglvel_scale(struct adis_dev *adis,
919  struct adis_scale_fractional *anglvel_scale);
920 
922 int adis_get_accl_scale(struct adis_dev *adis,
923  struct adis_scale_fractional *accl_scale);
924 
926 int adis_get_deltaangl_scale(struct adis_dev *adis,
927  struct adis_scale_fractional_log2 *deltaangl_scale);
928 
930 int adis_get_deltavelocity_scale(struct adis_dev *adis,
931  struct adis_scale_fractional_log2 *deltavelocity_scale);
932 
934 int adis_get_temp_scale(struct adis_dev *adis,
935  struct adis_scale_fractional *temp_scale);
936 
938 int adis_get_temp_offset(struct adis_dev *adis, int *temp_offset);
939 #endif
adis_write_dr_polarity
int adis_write_dr_polarity(struct adis_dev *adis, uint32_t dr_polarity)
Write data ready polarity encoded value.
Definition: adis.c:2601
ADIS16576_2
@ ADIS16576_2
Definition: adis.h:105
adis_write_gpio_lvl
int adis_write_gpio_lvl(struct adis_dev *adis, uint8_t dio_nb, uint32_t level)
Write gpio level configuration.
Definition: adis.c:3003
ADIS_SYNC_DEFAULT
#define ADIS_SYNC_DEFAULT
Definition: adis.h:61
adis_data_field_map_def::zg_bias
struct adis_field zg_bias
Definition: adis_internals.h:238
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.
Definition: adis.c:1755
adis_write_fifo_en
int adis_write_fifo_en(struct adis_dev *adis, uint32_t fifo_en)
Write FIFO enable bit value.
Definition: adis.c:1847
ADIS16475_3
@ ADIS16475_3
Definition: adis.h:84
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.
Definition: adis.c:1813
adis_data_field_map_def::sync_mode
struct adis_field sync_mode
Definition: adis_internals.h:287
adis_read_prod_id
int adis_read_prod_id(struct adis_dev *adis, uint32_t *prod_id)
Read product id value.
Definition: adis.c:3791
ADIS16577_3
@ ADIS16577_3
Definition: adis.h:108
adis_data_field_map_def::fir_en_xa
struct adis_field fir_en_xa
Definition: adis_internals.h:392
adis_diag_flags::int_reg_err
uint8_t int_reg_err
Definition: adis.h:193
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.
Definition: adis.c:2141
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.
Definition: adis.c:2377
adis_write_up_scale
int adis_write_up_scale(struct adis_dev *adis, uint32_t up_scale)
Write external clock scale factor value.
Definition: adis.c:3338
ADIS16465_1
@ ADIS16465_1
Definition: adis.h:75
adis_cmd_snsr_self_test
int adis_cmd_snsr_self_test(struct adis_dev *adis)
Command: sensor self test.
Definition: adis.c:3613
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.
Definition: adis.c:1767
adis_read_lot_num
int adis_read_lot_num(struct adis_dev *adis, uint32_t *lot_num)
Read lot specific number value.
Definition: adis.c:3813
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.
Definition: adis.c:2361
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.
Definition: adis.c:3455
no_os_alloc.h
adis_data_field_map_def::diag_ext_5v_supply_err_mask
uint32_t diag_ext_5v_supply_err_mask
Definition: adis_internals.h:186
no_os_gpio_init_param
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
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.
Definition: adis.c:1148
adis_data_field_map_def::burst_sel
struct adis_field burst_sel
Definition: adis_internals.h:303
adis_data_field_map_def::usr_scr_3
struct adis_field usr_scr_3
Definition: adis_internals.h:376
adis_data_field_map_def::usr_scr_1
struct adis_field usr_scr_1
Definition: adis_internals.h:372
adis_diag_flags::clk_err
uint8_t clk_err
Definition: adis.h:151
ADIS16470
@ ADIS16470
Definition: adis.h:81
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.
Definition: adis.c:2514
adis_diag_flags::data_path_overrun
uint8_t data_path_overrun
Definition: adis.h:139
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.
Definition: adis.c:1022
adis_field::field_mask
uint32_t field_mask
Definition: adis_internals.h:124
adis_cmd_fact_calib_restore
int adis_cmd_fact_calib_restore(struct adis_dev *adis)
Command: factory calibration restore.
Definition: adis.c:3594
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.
Definition: adis.c:2189
adis_read_temp_out
int adis_read_temp_out(struct adis_dev *adis, int32_t *temp_out)
Read raw temperature data.
Definition: adis.c:1389
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.
Definition: adis.c:1698
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.
Definition: adis.c:2153
adis_diag_flags::fls_mem_update_failure
uint8_t fls_mem_update_failure
Definition: adis.h:141
adis_read_alarm_enable
int adis_read_alarm_enable(struct adis_dev *adis, uint32_t *alarm_enable)
Read alarm enable encoded value.
Definition: adis.c:2868
adis_read_firm_m
int adis_read_firm_m(struct adis_dev *adis, uint32_t *firm_m)
Read firmware factory configuration month value.
Definition: adis.c:3758
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.
Definition: adis.c:4177
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.
Definition: adis.c:1449
ADIS_GYRO_CHAN
@ ADIS_GYRO_CHAN
Definition: adis.h:116
ADIS16477_2
@ ADIS16477_2
Definition: adis.h:86
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.
Definition: adis.c:755
adis_data_field_map_def::diag_gyro1_failure_mask
uint32_t diag_gyro1_failure_mask
Definition: adis_internals.h:150
adis_diag_flags::reg_nvm_err
uint8_t reg_nvm_err
Definition: adis.h:183
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.
Definition: adis.c:1487
adis_data_field_map_def::dr_selection
struct adis_field dr_selection
Definition: adis_internals.h:277
ADIS_4_BYTES_SIZE
#define ADIS_4_BYTES_SIZE
Definition: adis.h:57
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.
Definition: adis.c:1687
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.
Definition: adis.c:1902
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.
Definition: adis.c:1914
adis_data_field_map_def::coeff_bank_b
struct adis_field coeff_bank_b
Definition: adis_internals.h:412
adis_read_prod_id
int adis_read_prod_id(struct adis_dev *adis, uint32_t *prod_id)
Read product id value.
Definition: adis.c:3791
adis_dev::rx
uint8_t rx[8]
Definition: adis.h:288
adis_data_field_map_def::diag_snsr_failure_mask
uint32_t diag_snsr_failure_mask
Definition: adis_internals.h:144
ADIS_HAS_BURST_DELTA_DATA
#define ADIS_HAS_BURST_DELTA_DATA
Definition: adis_internals.h:39
adis_chip_info::read_reg
int(* read_reg)(struct adis_dev *adis, uint32_t reg, uint32_t *val, uint32_t size)
Definition: adis_internals.h:468
adis_write_timestamp32
int adis_write_timestamp32(struct adis_dev *adis, uint32_t timestamp32)
Write timestamp32 enable bit value.
Definition: adis.c:3275
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.
Definition: adis.c:2233
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.
Definition: adis.c:3075
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.
Definition: adis.c:1525
adis_data_field_map_def::sync_polarity
struct adis_field sync_polarity
Definition: adis_internals.h:285
adis_internals.h
Internal include file used for specific chip driver definitions, which are not useful for the user.
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.
Definition: adis.c:2377
adis_write_up_scale
int adis_write_up_scale(struct adis_dev *adis, uint32_t up_scale)
Write external clock scale factor value.
Definition: adis.c:3338
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.
Definition: adis.c:1001
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.
Definition: adis.c:1085
ADIS16505_1
@ ADIS16505_1
Definition: adis.h:90
adis_read_diag_overrange
int adis_read_diag_overrange(struct adis_dev *adis, uint32_t *overrange)
Diagnosis: read overrange for inertial sensors flag value.
Definition: adis.c:1043
adis_read_fifo_cnt
int adis_read_fifo_cnt(struct adis_dev *adis, uint32_t *fifo_cnt)
Read output FIFO sample count.
Definition: adis.c:1544
adis_update_temp_flags
void adis_update_temp_flags(struct adis_dev *adis, uint16_t temp_reg)
Update device temperature flags according to the received parameter.
Definition: adis.c:632
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.
Definition: adis.c:1252
adis_data_field_map_def::xg_bias
struct adis_field xg_bias
Definition: adis_internals.h:234
no_os_spi_write_and_read
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
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.
Definition: adis.c:938
adis_diag_flags::accl_failure
uint8_t accl_failure
Definition: adis.h:157
ADIS16467_3
@ ADIS16467_3
Definition: adis.h:80
adis_field
ADIS device field structure.
Definition: adis_internals.h:118
adis_update_ext_clk_freq
int adis_update_ext_clk_freq(struct adis_dev *adis, uint32_t clk_freq)
Update external clock frequency.
Definition: adis.c:4095
adis_read_dec_rate
int adis_read_dec_rate(struct adis_dev *adis, uint32_t *dec_rate)
Read decimation rate value.
Definition: adis.c:3368
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.
Definition: adis.c:2217
adis_data_field_map_def::xa_bias
struct adis_field xa_bias
Definition: adis_internals.h:240
adis_read_spi_chksum
int adis_read_spi_chksum(struct adis_dev *adis, uint32_t *checksum)
Read current sample SPI transaction checksum.
Definition: adis.c:1555
adis_read_boot_rev
int adis_read_boot_rev(struct adis_dev *adis, uint32_t *boot_rev)
Read boot loader revision value.
Definition: adis.c:3780
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.
Definition: adis.c:1169
adis_read_sync_mode
int adis_read_sync_mode(struct adis_dev *adis, uint32_t *sync_mode)
Read synchronization mode encoded value.
Definition: adis.c:2734
ADIS16550
@ ADIS16550
Definition: adis.h:102
adis_write_fifo_overflow
int adis_write_fifo_overflow(struct adis_dev *adis, uint32_t fifo_overflow)
Write FIFO overflow bit value.
Definition: adis.c:1878
adis_initial_startup
int adis_initial_startup(struct adis_dev *adis)
Device initial setup.
Definition: adis.c:179
adis_diag_flags::aduc_mcu_fault
uint8_t aduc_mcu_fault
Definition: adis.h:171
adis_init_param
ADIS device initialization parameters.
Definition: adis.h:306
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.
Definition: adis.c:3520
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.
Definition: adis.c:3546
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.
Definition: adis.c:2345
no_os_spi.h
Header file of SPI Interface.
adis_read_sync_polarity
int adis_read_sync_polarity(struct adis_dev *adis, uint32_t *sync_polarity)
Read sync polarity encoded value.
Definition: adis.c:2699
adis_cmd_fifo_flush
int adis_cmd_fifo_flush(struct adis_dev *adis)
Command: fifo flush.
Definition: adis.c:3672
adis_timeout
ADIS chip timeouts.
Definition: adis_internals.h:55
adis_burst_data::temp_msb
uint16_t temp_msb
Definition: adis.h:250
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.
Definition: adis.c:1566
adis_read_burst_sel
int adis_read_burst_sel(struct adis_dev *adis, uint32_t *burst_sel)
Read burst selection encoded value.
Definition: adis.c:3183
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.
Definition: adis.c:2081
adis_data_field_map_def::diag_int_proc_supply_err_mask
uint32_t diag_int_proc_supply_err_mask
Definition: adis_internals.h:184
adis_data_field_map_def::diag_power_supply_failure_mask
uint32_t diag_power_supply_failure_mask
Definition: adis_internals.h:176
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.
Definition: adis.c:3890
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.
Definition: adis.c:938
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.
Definition: adis.c:3559
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.
Definition: adis.c:2406
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.
Definition: adis.c:2057
adis_data_field_map_def::z_accl
struct adis_field z_accl
Definition: adis_internals.h:206
adis_diag_flags::gyro1_failure
uint8_t gyro1_failure
Definition: adis.h:153
adis_timeout::filt_size_var_b_update_us
uint16_t filt_size_var_b_update_us
Definition: adis_internals.h:85
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.
Definition: adis.c:3835
adis_data_field_map_def::fifo_cnt
struct adis_field fifo_cnt
Definition: adis_internals.h:229
adis_burst_data
ADIS burst data structure.
Definition: adis.h:248
adis_temp_flags::accl_temp_y_z
uint8_t accl_temp_y_z
Definition: adis.h:207
adis_data_field_map_def::serial_num
struct adis_field serial_num
Definition: adis_internals.h:367
adis_init_param::dev_id
enum adis_device_id dev_id
Definition: adis.h:322
adis_chip_info::has_paging
bool has_paging
Definition: adis_internals.h:444
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.
Definition: adis.c:3401
adis_burst_data::x_accel_lsb
uint16_t x_accel_lsb
Definition: adis.h:259
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.
Definition: adis.c:3413
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.
Definition: adis.c:1252
adis_chip_info::read_sync_mode
int(* read_sync_mode)(struct adis_dev *adis, uint32_t *sync_mode)
Definition: adis_internals.h:481
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.
Definition: adis.c:855
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.
Definition: adis.c:917
adis_data_field_map_def::y_deltvel
struct adis_field y_deltvel
Definition: adis_internals.h:224
adis_dev::fifo_enabled
bool fifo_enabled
Definition: adis.h:294
adis_read_alarm_selection
int adis_read_alarm_selection(struct adis_dev *adis, uint32_t *alarm_selection)
Read alarm selection encoded value.
Definition: adis.c:2797
adis_read_z_accl
int adis_read_z_accl(struct adis_dev *adis, int32_t *z_accl)
Read raw acceleration data on z axis.
Definition: adis.c:1370
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.
Definition: adis.c:2141
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.
Definition: adis.c:1801
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.
Definition: adis.c:1468
adis_read_up_scale
int adis_read_up_scale(struct adis_dev *adis, uint32_t *up_scale)
Read external clock scale factor value.
Definition: adis.c:3327
adis_data_field_map_def::diag_spi_comm_err_mask
uint32_t diag_spi_comm_err_mask
Definition: adis_internals.h:140
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.
Definition: adis.c:4161
adis_timeout::sens_bw_update_ms
uint16_t sens_bw_update_ms
Definition: adis_internals.h:94
adis_cmd_bias_corr_update
int adis_cmd_bias_corr_update(struct adis_dev *adis)
Command: bias correction update.
Definition: adis.c:3583
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.
Definition: adis.c:2189
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.
Definition: adis.c:1632
adis_data_field_map_def::fifo_overflow
struct adis_field fifo_overflow
Definition: adis_internals.h:262
ADIS_2_BYTES_SIZE
#define ADIS_2_BYTES_SIZE
Definition: adis.h:58
adis_burst_data::y_gyro_msb
uint16_t y_gyro_msb
Definition: adis.h:256
adis_data_field_map_def::z_gyro
struct adis_field z_gyro
Definition: adis_internals.h:200
ADIS_CHECKSUM_BUF_IDX
#define ADIS_CHECKSUM_BUF_IDX
Definition: adis.c:58
adis_chan_type
adis_chan_type
Supported channels.
Definition: adis.h:114
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.
Definition: adis.c:1643
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.
Definition: adis.c:3087
adis_scale_fractional::dividend
uint32_t dividend
Definition: adis.h:229
adis_read_y_gyro
int adis_read_y_gyro(struct adis_dev *adis, int32_t *y_gyro)
Read raw gyroscope data on y axis.
Definition: adis.c:1294
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.
Definition: adis.c:3868
no_os_spi_msg
Definition: no_os_spi.h:100
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....
Definition: adis.c:603
ADIS16507_1
@ ADIS16507_1
Definition: adis.h:93
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.
Definition: adis.c:815
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.
Definition: adis.c:3824
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.
Definition: adis.c:1064
no_os_delay.h
Header file of Delay functions.
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.
Definition: adis.c:3901
adis_read_x_gyro
int adis_read_x_gyro(struct adis_dev *adis, int32_t *x_gyro)
Read raw gyroscope data on x axis.
Definition: adis.c:1275
adis_burst_data::y_gyro_lsb
uint16_t y_gyro_lsb
Definition: adis.h:255
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.
Definition: adis.c:1599
adis_burst_data::z_gyro_msb
uint16_t z_gyro_msb
Definition: adis.h:258
adis_data_field_map_def::diag_y_axis_accl_failure_mask
uint32_t diag_y_axis_accl_failure_mask
Definition: adis_internals.h:164
adis_diag_flags::overrange
uint8_t overrange
Definition: adis.h:175
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.
Definition: adis.c:1211
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.
Definition: adis.c:2032
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.
Definition: adis.c:1588
adis_data_field_map_def::fir_en_xg
struct adis_field fir_en_xg
Definition: adis_internals.h:386
ADIS_1_BYTE_SIZE
#define ADIS_1_BYTE_SIZE
Definition: adis.h:59
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.
Definition: adis.c:2153
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.
Definition: adis.c:1665
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.
Definition: adis.c:2297
adis_data_field_map_def::dec_rate
struct adis_field dec_rate
Definition: adis_internals.h:318
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.
Definition: adis.c:1610
adis_data_field_map_def::diag_y_axis_gyro_failure_mask
uint32_t diag_y_axis_gyro_failure_mask
Definition: adis_internals.h:158
adis_data_field_map_def::fls_mem_wr_cntr
struct adis_field fls_mem_wr_cntr
Definition: adis_internals.h:381
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.
Definition: adis.c:2117
ADIS_ACCL_CHAN
@ ADIS_ACCL_CHAN
Definition: adis.h:115
adis_write_sync_4khz
int adis_write_sync_4khz(struct adis_dev *adis, uint32_t sync_4khz)
Write 4khz internal sync enable bit value.
Definition: adis.c:3306
adis_cmd_fls_mem_test
int adis_cmd_fls_mem_test(struct adis_dev *adis)
Command: flash memory test.
Definition: adis.c:3653
ADIS16545_1
@ ADIS16545_1
Definition: adis.h:96
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.
Definition: adis.c:1709
adis_read_lot_num
int adis_read_lot_num(struct adis_dev *adis, uint32_t *lot_num)
Read lot specific number value.
Definition: adis.c:3813
ADIS16547_2
@ ADIS16547_2
Definition: adis.h:100
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.
Definition: adis.c:1588
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.
Definition: adis.c:3533
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.
Definition: adis.c:1621
adis_read_burst32
int adis_read_burst32(struct adis_dev *adis, uint32_t *burst_size)
Read burst32 enable bit value.
Definition: adis.c:3223
adis_diag_flags::snsr_failure
uint8_t snsr_failure
Definition: adis.h:147
adis_write_alarm_polarity
int adis_write_alarm_polarity(struct adis_dev *adis, uint32_t alarm_polarity)
Write alarm polarity encoded value.
Definition: adis.c:2845
adis_diag_flags::config_calib_crc_error
uint8_t config_calib_crc_error
Definition: adis.h:173
ADIS16545_2
@ ADIS16545_2
Definition: adis.h:97
adis_read_time_stamp
int adis_read_time_stamp(struct adis_dev *adis, uint32_t *time_stamp)
Read raw time stamp data.
Definition: adis.c:1408
adis_read_dr_polarity
int adis_read_dr_polarity(struct adis_dev *adis, uint32_t *dr_polarity)
Read data ready polarity encoded value.
Definition: adis.c:2589
adis_burst_data::y_accel_msb
uint16_t y_accel_msb
Definition: adis.h:262
ADIS16475_1
@ ADIS16475_1
Definition: adis.h:82
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.
Definition: adis.c:651
NO_OS_GPIO_HIGH
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:117
adis_data_field_map_def::bias_corr_en_xa
struct adis_field bias_corr_en_xa
Definition: adis_internals.h:329
adis_read_firm_d
int adis_read_firm_d(struct adis_dev *adis, uint32_t *firm_d)
Read firmware factory configuration day value.
Definition: adis.c:3747
adis_data_field_map_def::fls_mem_test
struct adis_field fls_mem_test
Definition: adis_internals.h:346
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.
Definition: adis.c:775
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.
Definition: adis.c:2249
adis_chip_info::fir_coef_idx_max
uint8_t fir_coef_idx_max
Definition: adis_internals.h:460
no_os_print_log.h
Print messages helpers.
adis_write_burst_sel
int adis_write_burst_sel(struct adis_dev *adis, uint32_t burst_sel)
Write burst selection encoded value.
Definition: adis.c:3202
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.
Definition: adis.c:815
adis_dev::is_locked
bool is_locked
Definition: adis.h:300
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.
Definition: adis.c:2514
adis_scale_fractional::divisor
uint32_t divisor
Definition: adis.h:231
adis_diag_flags::temp_err
uint8_t temp_err
Definition: adis.h:177
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.
Definition: adis.c:2313
adis_burst_data::x_gyro_msb
uint16_t x_gyro_msb
Definition: adis.h:254
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.
Definition: adis.c:1732
adis_data_field_map_def::diag_temp_err_mask
uint32_t diag_temp_err_mask
Definition: adis_internals.h:174
adis_write_burst32
int adis_write_burst32(struct adis_dev *adis, uint32_t burst32)
Write burst32 enable bit value.
Definition: adis.c:3242
adis_diag_flags::x_axis_accl_failure
uint8_t x_axis_accl_failure
Definition: adis.h:165
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.
Definition: adis.c:1449
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.
Definition: adis.c:3442
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.
Definition: adis.c:1665
ADIS16467_1
@ ADIS16467_1
Definition: adis.h:78
adis_data_field_map_def::bias_corr_en_zg
struct adis_field bias_corr_en_zg
Definition: adis_internals.h:327
adis_data_field_map_def::bias_corr_update
struct adis_field bias_corr_update
Definition: adis_internals.h:338
adis_read_fifo_en
int adis_read_fifo_en(struct adis_dev *adis, uint32_t *fifo_en)
Definition: adis.c:1836
adis_cmd_fls_mem_update
int adis_cmd_fls_mem_update(struct adis_dev *adis)
Command: flash memory update.
Definition: adis.c:3632
adis_dev::burst_sel
uint8_t burst_sel
Definition: adis.h:298
adis_burst_data::z_gyro_lsb
uint16_t z_gyro_lsb
Definition: adis.h:257
adis_write_sync_polarity
int adis_write_sync_polarity(struct adis_dev *adis, uint32_t sync_polarity)
Write sync polarity encoded value.
Definition: adis.c:2711
no_os_calloc
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
NO_OS_ARRAY_SIZE
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
ADIS_CHECKSUM_SIZE
#define ADIS_CHECKSUM_SIZE
Definition: adis.c:57
adis_dev::int_clk
uint32_t int_clk
Definition: adis.h:290
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.
Definition: adis.c:917
adis_data_field_map_def::sync_4khz
struct adis_field sync_4khz
Definition: adis_internals.h:309
adis_read_timestamp32
int adis_read_timestamp32(struct adis_dev *adis, uint32_t *timestamp32)
Read timestamp32 enable bit value.
Definition: adis.c:3263
ADIS_READ_BURST_DATA_CMD_LSB
#define ADIS_READ_BURST_DATA_CMD_LSB
Definition: adis_internals.h:43
adis_write_burst_sel
int adis_write_burst_sel(struct adis_dev *adis, uint32_t burst_sel)
Write burst selection encoded value.
Definition: adis.c:3202
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.
Definition: adis.c:3846
adis_burst_data::data_cntr_lsb
uint16_t data_cntr_lsb
Definition: adis.h:251
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.
Definition: adis.c:2424
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.
Definition: adis.c:1430
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.
Definition: adis.c:4145
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.
Definition: adis.c:1085
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.
Definition: adis.c:305
adis_chip_info::write_reg
int(* write_reg)(struct adis_dev *adis, uint32_t reg, uint32_t val, uint32_t size)
Definition: adis_internals.h:471
adis_write_dr_enable
int adis_write_dr_enable(struct adis_dev *adis, uint32_t dr_enable)
Write data ready enable encoded value.
Definition: adis.c:2636
adis_write_alarm_enable
int adis_write_alarm_enable(struct adis_dev *adis, uint32_t alarm_enable)
Write alarm enable encoded value.
Definition: adis.c:2880
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.
Definition: adis.c:2129
adis_read_x_accl
int adis_read_x_accl(struct adis_dev *adis, int32_t *x_accl)
Read raw acceleration data on x axis.
Definition: adis.c:1332
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.
Definition: adis.c:2265
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.
Definition: adis.c:1106
adis_data_field_map_def::alarm_selection
struct adis_field alarm_selection
Definition: adis_internals.h:289
adis_data_field_map_def::diag_reg_nvm_err_mask
uint32_t diag_reg_nvm_err_mask
Definition: adis_internals.h:180
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.
Definition: adis.c:2313
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.
Definition: adis.c:3977
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.
Definition: adis.c:2233
adis_data_field_map_def::ya_scale
struct adis_field ya_scale
Definition: adis_internals.h:255
adis_dev::temp_flags
struct adis_temp_flags temp_flags
Definition: adis.h:280
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.
Definition: adis.c:4209
ADIS16467_2
@ ADIS16467_2
Definition: adis.h:79
ADIS_REG_PAGE_ID
#define ADIS_REG_PAGE_ID
Definition: adis_internals.h:47
adis_read_z_gyro
int adis_read_z_gyro(struct adis_dev *adis, int32_t *z_gyro)
Read raw gyroscope data on z axis.
Definition: adis.c:1313
adis_read_spi_chksum
int adis_read_spi_chksum(struct adis_dev *adis, uint32_t *checksum)
Read current sample SPI transaction checksum.
Definition: adis.c:1555
NO_OS_GPIO_LOW
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:115
no_os_spi_msg::tx_buff
uint8_t * tx_buff
Definition: no_os_spi.h:102
adis_chip_info
ADIS specific chip information structure.
Definition: adis_internals.h:422
adis_diag_flags::standby_mode
uint8_t standby_mode
Definition: adis.h:145
adis_init_param::ext_clk
uint32_t ext_clk
Definition: adis.h:316
adis_scale_fractional_log2
ADIS fractional log2 scale format structure; scale = dividend/2^power.
Definition: adis.h:237
adis_diag_flags::x_axis_gyro_failure
uint8_t x_axis_gyro_failure
Definition: adis.h:159
adis_read_fifo_overflow
int adis_read_fifo_overflow(struct adis_dev *adis, uint32_t *fifo_overflow)
Read FIFO overflow bit value.
Definition: adis.c:1866
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.
Definition: adis.c:3494
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.
Definition: adis.c:3063
adis_read_burst_sel
int adis_read_burst_sel(struct adis_dev *adis, uint32_t *burst_sel)
Read burst selection encoded value.
Definition: adis.c:3183
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.
Definition: adis.c:3824
adis_chip_info::dec_rate_max
uint16_t dec_rate_max
Definition: adis_internals.h:450
adis_data_field_map_def::gpio_ctrl
struct adis_field gpio_ctrl
Definition: adis_internals.h:295
adis_write_gpio_dir
int adis_write_gpio_dir(struct adis_dev *adis, uint8_t dio_nb, uint32_t dir)
Write gpio direction configuration.
Definition: adis.c:2968
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.
Definition: adis.c:3148
ADIS16500
@ ADIS16500
Definition: adis.h:88
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.
Definition: adis.c:1022
adis_dev::tx
uint8_t tx[12]
Definition: adis.h:286
ADIS_HAS_BURST32
#define ADIS_HAS_BURST32
Definition: adis_internals.h:38
adis_data_field_map_def::fact_calib_restore
struct adis_field fact_calib_restore
Definition: adis_internals.h:340
adis_burst_data::z_accel_msb
uint16_t z_accel_msb
Definition: adis.h:264
adis_temp_flags::gyro1_temp_z
uint8_t gyro1_temp_z
Definition: adis.h:213
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.
Definition: adis.c:2406
adis_data_field_map_def::fir_bank_sel_za
struct adis_field fir_bank_sel_za
Definition: adis_internals.h:408
adis_scale_fractional_log2::power
uint32_t power
Definition: adis.h:241
no_os_mdelay
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
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.
Definition: adis.c:1778
ADIS16465_3
@ ADIS16465_3
Definition: adis.h:77
no_os_field_prep
uint32_t no_os_field_prep(uint32_t mask, uint32_t val)
adis_read_firm_d
int adis_read_firm_d(struct adis_dev *adis, uint32_t *firm_d)
Read firmware factory configuration day value.
Definition: adis.c:3747
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.
Definition: adis.c:211
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.
Definition: adis.c:855
adis_init
int adis_init(struct adis_dev **adis, const struct adis_init_param *ip)
Initialize adis device.
Definition: adis.c:99
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.
Definition: adis.c:1487
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.
Definition: adis.c:2000
adis_read_z_accl
int adis_read_z_accl(struct adis_dev *adis, int32_t *z_accl)
Read raw acceleration data on z axis.
Definition: adis.c:1370
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.
Definition: adis.c:795
adis_cmd_fls_mem_test
int adis_cmd_fls_mem_test(struct adis_dev *adis)
Command: flash memory test.
Definition: adis.c:3653
adis_read_y_accl
int adis_read_y_accl(struct adis_dev *adis, int32_t *y_accl)
Read raw acceleration data on y axis.
Definition: adis.c:1351
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.
Definition: adis.c:896
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.
Definition: adis.c:2532
ADIS_READ_REG
#define ADIS_READ_REG(reg)
Definition: adis_internals.h:50
adis_data_field_map_def::gyro_meas_range
struct adis_field gyro_meas_range
Definition: adis_internals.h:274
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.
Definition: adis.c:4161
adis_data_field_map_def::diag_aduc_mcu_fault_mask
uint32_t diag_aduc_mcu_fault_mask
Definition: adis_internals.h:168
adis_data_field_map_def::bias_corr_en_yg
struct adis_field bias_corr_en_yg
Definition: adis_internals.h:325
adis_cmd_bias_corr_update
int adis_cmd_bias_corr_update(struct adis_dev *adis)
Command: bias correction update.
Definition: adis.c:3583
adis_data_field_map_def::fir_en_ya
struct adis_field fir_en_ya
Definition: adis_internals.h:394
adis_data_field_map_def::y_gyro
struct adis_field y_gyro
Definition: adis_internals.h:198
adis_dev
ADIS device descriptor structure.
Definition: adis.h:270
adis_read_alarm_polarity
int adis_read_alarm_polarity(struct adis_dev *adis, uint32_t *alarm_polarity)
Read alarm polarity encoded value.
Definition: adis.c:2833
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.
Definition: adis.c:1824
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.
Definition: adis.c:1654
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.
Definition: adis.c:1064
adis_read_sens_bw
int adis_read_sens_bw(struct adis_dev *adis, uint32_t *sens_bw)
Read internal sensor bandwidth encoded value.
Definition: adis.c:3033
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.
Definition: adis.c:1127
adis_read_x_gyro
int adis_read_x_gyro(struct adis_dev *adis, int32_t *x_gyro)
Read raw gyroscope data on x axis.
Definition: adis.c:1275
adis_chip_info::sync_clk_freq_limits
const struct adis_clk_freq_limit * sync_clk_freq_limits
Definition: adis_internals.h:428
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.
Definition: adis.c:1890
adis_clk_freq_limit::max_freq
uint32_t max_freq
Definition: adis_internals.h:104
ADIS_X_AXIS
@ ADIS_X_AXIS
Definition: adis.h:126
adis_data_field_map_def::ya_bias
struct adis_field ya_bias
Definition: adis_internals.h:242
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.
Definition: adis.c:1525
adis_init_param::spi_init
struct no_os_spi_init_param * spi_init
Definition: adis.h:310
adis_chip_info::field_map
const struct adis_data_field_map_def * field_map
Definition: adis_internals.h:426
adis_read_proc_rev
int adis_read_proc_rev(struct adis_dev *adis, uint32_t *proc_rev)
Read processor revision value.
Definition: adis.c:3725
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.
Definition: adis.c:1801
adis_read_sync_mode
int adis_read_sync_mode(struct adis_dev *adis, uint32_t *sync_mode)
Read synchronization mode encoded value.
Definition: adis.c:2734
adis_data_field_map_def::diag_int_snsr_supply_err_mask
uint32_t diag_int_snsr_supply_err_mask
Definition: adis_internals.h:188
adis_burst_data::z_accel_lsb
uint16_t z_accel_lsb
Definition: adis.h:263
adis_data_field_map_def::fir_en_za
struct adis_field fir_en_za
Definition: adis_internals.h:396
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.
Definition: adis.c:693
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.
Definition: adis.c:1262
adis_temp_flags::gyro2_temp_z
uint8_t gyro2_temp_z
Definition: adis.h:211
adis_read_fifo_en
int adis_read_fifo_en(struct adis_dev *adis, uint32_t *fifo_en)
Definition: adis.c:1836
adis_data_field_map_def::y_deltang
struct adis_field y_deltang
Definition: adis_internals.h:218
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.
Definition: adis.c:1767
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.
Definition: adis.c:3087
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.
Definition: adis.c:1232
adis_cmd_fifo_flush
int adis_cmd_fifo_flush(struct adis_dev *adis)
Command: fifo flush.
Definition: adis.c:3672
adis_read_data_cntr
int adis_read_data_cntr(struct adis_dev *adis, uint32_t *data_cntr)
Read data counter value.
Definition: adis.c:1419
adis_dev::ext_clk
uint32_t ext_clk
Definition: adis.h:292
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.
Definition: adis.c:3520
ADIS16547_1
@ ADIS16547_1
Definition: adis.h:99
adis_data_field_map_def::gyro_fir_enable
struct adis_field gyro_fir_enable
Definition: adis_internals.h:313
adis_dev::info
const struct adis_chip_info * info
Definition: adis.h:276
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.
Definition: adis.c:2081
adis_read_alarm_polarity
int adis_read_alarm_polarity(struct adis_dev *adis, uint32_t *alarm_polarity)
Read alarm polarity encoded value.
Definition: adis.c:2833
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.
Definition: adis.c:4123
adis_write_fifo_en
int adis_write_fifo_en(struct adis_dev *adis, uint32_t fifo_en)
Write FIFO enable bit value.
Definition: adis.c:1847
adis_read_sens_bw
int adis_read_sens_bw(struct adis_dev *adis, uint32_t *sens_bw)
Read internal sensor bandwidth encoded value.
Definition: adis.c:3033
adis_data_field_map_def::sync_selection
struct adis_field sync_selection
Definition: adis_internals.h:283
adis_write_dr_selection
int adis_write_dr_selection(struct adis_dev *adis, uint32_t dr_selection)
Write data ready selection encoded value.
Definition: adis.c:2569
adis_read_sync_4khz
int adis_read_sync_4khz(struct adis_dev *adis, uint32_t *sync_4khz)
Read 4khz internal sync enable bit value.
Definition: adis.c:3295
adis_read_temp_out
int adis_read_temp_out(struct adis_dev *adis, int32_t *temp_out)
Read raw temperature data.
Definition: adis.c:1389
ADIS16575_3
@ ADIS16575_3
Definition: adis.h:104
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.
Definition: adis.c:468
adis_read_firm_y
int adis_read_firm_y(struct adis_dev *adis, uint32_t *firm_y)
Read firmware factory configuration year value.
Definition: adis.c:3769
adis_data_field_map_def::fir_en_zg
struct adis_field fir_en_zg
Definition: adis_internals.h:390
adis_read_time_stamp
int adis_read_time_stamp(struct adis_dev *adis, uint32_t *time_stamp)
Read raw time stamp data.
Definition: adis.c:1408
adis_write_alarm_selection
int adis_write_alarm_selection(struct adis_dev *adis, uint32_t alarm_selection)
Write alarm selection encoded value.
Definition: adis.c:2813
adis_read_firm_m
int adis_read_firm_m(struct adis_dev *adis, uint32_t *firm_m)
Read firmware factory configuration month value.
Definition: adis.c:3758
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.
Definition: adis.c:2345
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.
Definition: adis.c:2093
adis_scale_fractional
ADIS fractional scale format structure; scale = dividend/divisor.
Definition: adis.h:227
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.
Definition: adis.c:3413
adis_read_fifo_overflow
int adis_read_fifo_overflow(struct adis_dev *adis, uint32_t *fifo_overflow)
Read FIFO overflow bit value.
Definition: adis.c:1866
adis_validate_checksum
bool adis_validate_checksum(uint8_t *buffer, uint8_t size, uint8_t idx)
Check if the checksum for burst data is correct.
Definition: adis.c:490
adis_diag_flags::ext_5v_supply_err
uint8_t ext_5v_supply_err
Definition: adis.h:189
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.
Definition: adis.c:2361
ADIS16547_3
@ ADIS16547_3
Definition: adis.h:101
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.
Definition: adis.c:3912
ADIS16477_3
@ ADIS16477_3
Definition: adis.h:87
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.
Definition: adis.c:1902
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.
Definition: adis.c:3977
ADIS16505_3
@ ADIS16505_3
Definition: adis.h:92
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.
Definition: adis.c:875
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.
Definition: adis.c:2442
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.
Definition: adis.c:2117
adis_data_field_map_def::x_deltvel
struct adis_field x_deltvel
Definition: adis_internals.h:222
adis_read_z_gyro
int adis_read_z_gyro(struct adis_dev *adis, int32_t *z_gyro)
Read raw gyroscope data on z axis.
Definition: adis.c:1313
adis_data_field_map_def::z_deltang
struct adis_field z_deltang
Definition: adis_internals.h:220
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.
Definition: adis.c:4209
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.
Definition: adis.c:693
adis_field::reg_size
uint8_t reg_size
Definition: adis_internals.h:122
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.
Definition: adis.c:1577
adis_data_field_map_def::data_cntr
struct adis_field data_cntr
Definition: adis_internals.h:213
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.
Definition: adis.c:1950
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.
Definition: adis.c:835
adis_data_field_map_def::y_accl
struct adis_field y_accl
Definition: adis_internals.h:204
adis_data_field_map_def::up_scale
struct adis_field up_scale
Definition: adis_internals.h:316
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.
Definition: adis.c:3934
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....
Definition: adis.c:603
adis_data_field_map_def::filt_size_var_b
struct adis_field filt_size_var_b
Definition: adis_internals.h:271
adis_diag_flags::int_proc_supply_err
uint8_t int_proc_supply_err
Definition: adis.h:187
ADIS_MSG_SIZE_32_BIT_BURST
#define ADIS_MSG_SIZE_32_BIT_BURST
Definition: adis.c:56
adis.h
Implementation of adis.h.
adis_read_boot_rev
int adis_read_boot_rev(struct adis_dev *adis, uint32_t *boot_rev)
Read boot loader revision value.
Definition: adis.c:3780
adis_data_field_map_def::usr_scr_4
struct adis_field usr_scr_4
Definition: adis_internals.h:378
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.
Definition: adis.c:3112
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.
Definition: adis.c:3075
adis_read_firm_y
int adis_read_firm_y(struct adis_dev *adis, uint32_t *firm_y)
Read firmware factory configuration year value.
Definition: adis.c:3769
adis_read_dec_rate
int adis_read_dec_rate(struct adis_dev *adis, uint32_t *dec_rate)
Read decimation rate value.
Definition: adis.c:3368
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.
Definition: adis.c:1778
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.
Definition: adis.c:3468
adis_data_field_map_def::sw_res
struct adis_field sw_res
Definition: adis_internals.h:350
adis_data_field_map_def::diag_z_axis_gyro_failure_mask
uint32_t diag_z_axis_gyro_failure_mask
Definition: adis_internals.h:160
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.
Definition: adis.c:3868
adis_remove
void adis_remove(struct adis_dev *adis)
Remove adis device.
Definition: adis.c:162
adis_timeout::fact_calib_restore_ms
uint16_t fact_calib_restore_ms
Definition: adis_internals.h:61
adis_data_field_map_def::firm_rev
struct adis_field firm_rev
Definition: adis_internals.h:355
adis_write_sync_polarity
int adis_write_sync_polarity(struct adis_dev *adis, uint32_t sync_polarity)
Write sync polarity encoded value.
Definition: adis.c:2711
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.
Definition: adis.c:980
adis_chip_info::write_delay
uint32_t write_delay
Definition: adis_internals.h:438
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.
Definition: adis.c:1938
adis_read_timestamp32
int adis_read_timestamp32(struct adis_dev *adis, uint32_t *timestamp32)
Read timestamp32 enable bit value.
Definition: adis.c:3263
adis_read_proc_rev
int adis_read_proc_rev(struct adis_dev *adis, uint32_t *proc_rev)
Read processor revision value.
Definition: adis.c:3725
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.
Definition: adis.c:3429
adis_data_field_map_def::fifo_wm_int_en
struct adis_field fifo_wm_int_en
Definition: adis_internals.h:264
adis_temp_flags::accl_temp_x_y
uint8_t accl_temp_x_y
Definition: adis.h:209
adis_chip_info::read_lpf
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
adis_data_field_map_def::x_deltang
struct adis_field x_deltang
Definition: adis_internals.h:216
adis_write_sync_mode
int adis_write_sync_mode(struct adis_dev *adis, uint32_t sync_mode, uint32_t ext_clk)
Update synchronization mode.
Definition: adis.c:2750
adis_dev::gpio_reset
struct no_os_gpio_desc * gpio_reset
Definition: adis.h:274
ADIS_Y_AXIS
@ ADIS_Y_AXIS
Definition: adis.h:127
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.
Definition: adis.c:3572
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.
Definition: adis.c:4177
adis_read_dr_selection
int adis_read_dr_selection(struct adis_dev *adis, uint32_t *dr_selection)
Read data ready selection encoded value.
Definition: adis.c:2553
adis_data_field_map_def::xa_scale
struct adis_field xa_scale
Definition: adis_internals.h:253
adis_data_field_map_def::firm_m
struct adis_field firm_m
Definition: adis_internals.h:359
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.
Definition: adis.c:3835
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.
Definition: adis.c:3533
adis_diag_flags::boot_memory_failure
uint8_t boot_memory_failure
Definition: adis.h:181
ADIS_DELTAANGL_CHAN
@ ADIS_DELTAANGL_CHAN
Definition: adis.h:118
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.
Definition: adis.c:835
no_os_gpio_remove
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
adis_write_alarm_enable
int adis_write_alarm_enable(struct adis_dev *adis, uint32_t alarm_enable)
Write alarm enable encoded value.
Definition: adis.c:2880
no_os_spi_desc
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
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.
Definition: adis.c:1687
adis_get_temp_offset
int adis_get_temp_offset(struct adis_dev *adis, int *temp_offset)
Read adis device temperature offset in integer.
Definition: adis.c:4225
adis_chip_info::cs_change_delay
uint32_t cs_change_delay
Definition: adis_internals.h:440
adis_data_field_map_def::write_lock
struct adis_field write_lock
Definition: adis_internals.h:336
adis_data_field_map_def::alarm_enable
struct adis_field alarm_enable
Definition: adis_internals.h:293
adis_timeout::sw_reset_ms
uint16_t sw_reset_ms
Definition: adis_internals.h:77
adis_data_field_map_def::zg_scale
struct adis_field zg_scale
Definition: adis_internals.h:251
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.
Definition: adis.c:1698
adis_diag_flags::snsr_init_failure
uint8_t snsr_init_failure
Definition: adis.h:137
adis_diag_flags
Bitfield struct which maps on the diagnosis register.
Definition: adis.h:135
adis_chip_info::fls_mem_wr_cntr_max
uint32_t fls_mem_wr_cntr_max
Definition: adis_internals.h:454
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.
Definition: adis.c:3099
adis_data_field_map_def::diag_int_reg_err_mask
uint32_t diag_int_reg_err_mask
Definition: adis_internals.h:190
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.
Definition: adis.c:3950
adis_data_field_map_def::burst32
struct adis_field burst32
Definition: adis_internals.h:305
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.
Definition: adis.c:2000
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.
Definition: adis.c:2249
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.
Definition: adis.c:4193
adis_read_y_gyro
int adis_read_y_gyro(struct adis_dev *adis, int32_t *y_gyro)
Read raw gyroscope data on y axis.
Definition: adis.c:1294
adis_temp_flags
Bitfield struct which maps on the temperature fags from the temperature register.
Definition: adis.h:203
adis_data_field_map_def::fifo_en
struct adis_field fifo_en
Definition: adis_internals.h:260
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.
Definition: adis.c:1914
adis_diag_flags::y_axis_gyro_failure
uint8_t y_axis_gyro_failure
Definition: adis.h:161
adis_data_field_map_def::fls_mem_update
struct adis_field fls_mem_update
Definition: adis_internals.h:344
adis_data_field_map_def::pt_of_perc_algnmt
struct adis_field pt_of_perc_algnmt
Definition: adis_internals.h:299
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.
Definition: adis.c:2496
no_os_gpio_desc
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
adis_dev::diag_flags
struct adis_diag_flags diag_flags
Definition: adis.h:278
ADIS_SYNC_OUTPUT
#define ADIS_SYNC_OUTPUT
Definition: adis.h:64
adis_timeout::dec_rate_update_us
uint16_t dec_rate_update_us
Definition: adis_internals.h:81
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.
Definition: adis.c:3148
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.
Definition: adis.c:1506
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.
Definition: adis.c:3126
adis_write_alarm_selection
int adis_write_alarm_selection(struct adis_dev *adis, uint32_t alarm_selection)
Write alarm selection encoded value.
Definition: adis.c:2813
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.
Definition: adis.c:2938
adis_chip_info::flags
const uint32_t flags
Definition: adis_internals.h:434
adis_read_fifo_cnt
int adis_read_fifo_cnt(struct adis_dev *adis, uint32_t *fifo_cnt)
Read output FIFO sample count.
Definition: adis.c:1544
adis_write_gpio_lvl
int adis_write_gpio_lvl(struct adis_dev *adis, uint8_t dio_nb, uint32_t level)
Write gpio level configuration.
Definition: adis.c:3003
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.
Definition: adis.c:3572
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.
Definition: adis.c:1824
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.
Definition: adis.c:1926
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.
Definition: adis.c:2201
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.
Definition: adis.c:3481
adis_diag_flags::fls_mem_wr_cnt_exceed
uint8_t fls_mem_wr_cnt_exceed
Definition: adis.h:197
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.
Definition: adis.c:3546
adis_diag_flags::z_axis_gyro_failure
uint8_t z_axis_gyro_failure
Definition: adis.h:163
adis_read_x_accl
int adis_read_x_accl(struct adis_dev *adis, int32_t *x_accl)
Read raw acceleration data on x axis.
Definition: adis.c:1332
ADIS_Z_AXIS
@ ADIS_Z_AXIS
Definition: adis.h:128
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.
Definition: adis.c:2329
adis_data_field_map_def::temp_out
struct adis_field temp_out
Definition: adis_internals.h:208
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.
Definition: adis.c:2165
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.
Definition: adis.c:1755
adis_cmd_fact_calib_restore
int adis_cmd_fact_calib_restore(struct adis_dev *adis)
Command: factory calibration restore.
Definition: adis.c:3594
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.
Definition: adis.c:2217
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.
Definition: adis.c:714
adis_chip_info::int_clk
uint32_t int_clk
Definition: adis_internals.h:462
adis_data_field_map_def::fifo_flush
struct adis_field fifo_flush
Definition: adis_internals.h:348
adis_cmd_snsr_self_test
int adis_cmd_snsr_self_test(struct adis_dev *adis)
Command: sensor self test.
Definition: adis.c:3613
no_os_spi_transfer
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
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.
Definition: adis.c:1169
adis_data_field_map_def::fir_bank_sel_yg
struct adis_field fir_bank_sel_yg
Definition: adis_internals.h:400
adis_diag_flags::gyro2_failure
uint8_t gyro2_failure
Definition: adis.h:155
adis_diag_flags::int_snsr_supply_err
uint8_t int_snsr_supply_err
Definition: adis.h:191
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.
Definition: adis.c:1506
adis_write_alarm_polarity
int adis_write_alarm_polarity(struct adis_dev *adis, uint32_t alarm_polarity)
Write alarm polarity encoded value.
Definition: adis.c:2845
ADIS_READ_BURST_DATA_CMD_SIZE
#define ADIS_READ_BURST_DATA_CMD_SIZE
Definition: adis_internals.h:44
adis_data_field_map_def::firm_y
struct adis_field firm_y
Definition: adis_internals.h:361
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.
Definition: adis.c:1621
adis_chip_info::timeouts
const struct adis_timeout * timeouts
Definition: adis_internals.h:432
adis_write_reg
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
adis_temp_flags::gyro2_temp_y
uint8_t gyro2_temp_y
Definition: adis.h:215
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.
Definition: adis.c:2478
adis_write_timestamp32
int adis_write_timestamp32(struct adis_dev *adis, uint32_t timestamp32)
Write timestamp32 enable bit value.
Definition: adis.c:3275
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.
Definition: adis.c:1127
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.
Definition: adis.c:3112
adis_data_field_map_def::diag_fls_mem_update_failure_mask
uint32_t diag_fls_mem_update_failure_mask
Definition: adis_internals.h:138
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.
Definition: adis.c:468
ADIS16576_3
@ ADIS16576_3
Definition: adis.h:106
adis_data_field_map_def::diag_snsr_init_failure_mask
uint32_t diag_snsr_init_failure_mask
Definition: adis_internals.h:134
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.
Definition: adis.c:734
adis_data_field_map_def::fifo_wm_lvl
struct adis_field fifo_wm_lvl
Definition: adis_internals.h:268
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.
Definition: adis.c:2093
adis_init_param::info
const struct adis_chip_info * info
Definition: adis.h:308
adis_data_field_map_def::lot_num
struct adis_field lot_num
Definition: adis_internals.h:369
no_os_find_last_set_bit
uint32_t no_os_find_last_set_bit(uint32_t word)
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.
Definition: adis.c:3857
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.
Definition: adis.c:980
adis_diag_flags::wdg_timer_flag
uint8_t wdg_timer_flag
Definition: adis.h:185
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.
Definition: adis.c:1962
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.
Definition: adis.c:1790
adis_read_alarm_selection
int adis_read_alarm_selection(struct adis_dev *adis, uint32_t *alarm_selection)
Read alarm selection encoded value.
Definition: adis.c:2797
no_os_field_get
uint32_t no_os_field_get(uint32_t mask, uint32_t word)
ADIS16507_3
@ ADIS16507_3
Definition: adis.h:95
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.
Definition: adis.c:4123
adis_data_field_map_def::diag_x_axis_gyro_failure_mask
uint32_t diag_x_axis_gyro_failure_mask
Definition: adis_internals.h:156
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.
Definition: adis.c:3901
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.
Definition: adis.c:2177
adis_data_field_map_def::fifo_wm_int_pol
struct adis_field fifo_wm_int_pol
Definition: adis_internals.h:266
adis_axis_type
adis_axis_type
Supported axes.
Definition: adis.h:125
adis_data_field_map_def::diag_gyro2_failure_mask
uint32_t diag_gyro2_failure_mask
Definition: adis_internals.h:152
ADIS_PAGE_SIZE
#define ADIS_PAGE_SIZE
Definition: adis_internals.h:46
NO_OS_BIT
#define NO_OS_BIT(x)
Definition: no_os_util.h:45
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.
Definition: adis.c:2297
ADIS16577_2
@ ADIS16577_2
Definition: adis.h:107
adis_write_dec_rate
int adis_write_dec_rate(struct adis_dev *adis, uint32_t dec_rate)
Write decimation rate value.
Definition: adis.c:3379
adis_get_temp_offset
int adis_get_temp_offset(struct adis_dev *adis, int *temp_offset)
Read adis device temperature offset in integer.
Definition: adis.c:4225
no_os_free
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
adis_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.
Definition: adis.c:3934
adis_data_field_map_def::za_scale
struct adis_field za_scale
Definition: adis_internals.h:257
adis_field::reg_addr
uint16_t reg_addr
Definition: adis_internals.h:120
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.
Definition: adis.c:1890
ADIS16505_2
@ ADIS16505_2
Definition: adis.h:91
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.
Definition: adis.c:1790
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.
Definition: adis.c:875
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.
Definition: adis.c:2442
adis_chip_info::get_offset
int(* get_offset)(struct adis_dev *adis, int *offset, enum adis_chan_type chan_type)
Definition: adis_internals.h:477
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.
Definition: adis.c:2424
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.
Definition: adis.c:2069
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.
Definition: adis.c:577
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.
Definition: adis.c:2938
adis_data_field_map_def::time_stamp
struct adis_field time_stamp
Definition: adis_internals.h:211
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.
Definition: adis.c:1262
ADIS_MSG_SIZE_16_BIT_BURST
#define ADIS_MSG_SIZE_16_BIT_BURST
Definition: adis.c:55
adis_diag_flags::checksum_err
uint8_t checksum_err
Definition: adis.h:195
adis_temp_flags::gyro1_temp_y
uint8_t gyro1_temp_y
Definition: adis.h:217
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.
Definition: adis.c:3494
adis_read_gpio_dir
int adis_read_gpio_dir(struct adis_dev *adis, uint8_t dio_nb, uint32_t *dir)
Read gpio configured direction.
Definition: adis.c:2908
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.
Definition: adis.c:3063
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.
Definition: adis.c:2329
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.
Definition: adis.c:1950
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.
Definition: adis.c:1721
adis_data_field_map_def::usr_scr_2
struct adis_field usr_scr_2
Definition: adis_internals.h:374
adis_data_field_map_def::proc_rev
struct adis_field proc_rev
Definition: adis_internals.h:353
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.
Definition: adis.c:1744
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.
Definition: adis.c:2165
adis_burst_data::temp_lsb
uint16_t temp_lsb
Definition: adis.h:249
no_os_udelay
void no_os_udelay(uint32_t usecs)
Wait until usecs microseconds passed.
Definition: aducm3029_delay.c:114
adis_data_field_map_def::linear_accl_comp
struct adis_field linear_accl_comp
Definition: adis_internals.h:301
adis_read_sync_4khz
int adis_read_sync_4khz(struct adis_dev *adis, uint32_t *sync_4khz)
Read 4khz internal sync enable bit value.
Definition: adis.c:3295
adis_write_burst32
int adis_write_burst32(struct adis_dev *adis, uint32_t burst_size)
Write burst32 enable bit value.
Definition: adis.c:3242
ADIS16475_2
@ ADIS16475_2
Definition: adis.h:83
adis_cmd_sw_res
int adis_cmd_sw_res(struct adis_dev *adis)
Command: software reset.
Definition: adis.c:3683
adis_chip_info::sync_mode_max
uint8_t sync_mode_max
Definition: adis_internals.h:452
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.
Definition: adis.c:1643
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.
Definition: adis.c:959
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.
Definition: adis.c:1938
adis_data_field_map_def::alarm_polarity
struct adis_field alarm_polarity
Definition: adis_internals.h:291
adis_data_field_map_def::z_deltvel
struct adis_field z_deltvel
Definition: adis_internals.h:226
adis_read_field_u32
int adis_read_field_u32(struct adis_dev *adis, struct adis_field field, uint32_t *field_val)
Read field to uint32 value.
Definition: adis.c:404
adis_data_field_map_def::diag_clk_err_mask
uint32_t diag_clk_err_mask
Definition: adis_internals.h:148
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.
Definition: adis.c:2105
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.
Definition: adis.c:3442
adis_data_field_map_def::bias_corr_en_xg
struct adis_field bias_corr_en_xg
Definition: adis_internals.h:323
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.
Definition: adis.c:211
adis_read_data_cntr
int adis_read_data_cntr(struct adis_dev *adis, uint32_t *data_cntr)
Read data counter value.
Definition: adis.c:1419
adis_timeout::reset_ms
uint16_t reset_ms
Definition: adis_internals.h:57
adis_init
int adis_init(struct adis_dev **adis, const struct adis_init_param *ip)
Initialize adis device.
Definition: adis.c:99
no_os_get_unaligned_be32
uint32_t no_os_get_unaligned_be32(uint8_t *buf)
no_os_gpio_set_value
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
adis_dev::burst32
bool burst32
Definition: adis.h:296
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.
Definition: adis.c:2478
adis_chip_info::read_delay
uint32_t read_delay
Definition: adis_internals.h:436
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.
Definition: adis.c:1813
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.
Definition: adis.c:2281
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.
Definition: adis.c:1721
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.
Definition: adis.c:1744
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.
Definition: adis.c:3507
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.
Definition: adis.c:1001
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.
Definition: adis.c:672
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.
Definition: adis.c:1974
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.
Definition: adis.c:1468
adis_data_field_map_def::x_accl
struct adis_field x_accl
Definition: adis_internals.h:202
adis_chip_info::write_sync_mode
int(* write_sync_mode)(struct adis_dev *adis, uint32_t sync_mode, uint32_t ext_clk)
Definition: adis_internals.h:483
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.
Definition: adis.c:734
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.
Definition: adis.c:577
adis_write_sync_mode
int adis_write_sync_mode(struct adis_dev *adis, uint32_t sync_mode, uint32_t ext_clk)
Update synchronization mode.
Definition: adis.c:2750
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.
Definition: adis.c:3429
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.
Definition: adis.c:3950
adis_burst_data::data_cntr_msb
uint16_t data_cntr_msb
Definition: adis.h:252
adis_write_sync_selection
int adis_write_sync_selection(struct adis_dev *adis, uint32_t sync_selection)
Write sync selection encoded value.
Definition: adis.c:2679
adis_write_fifo_overflow
int adis_write_fifo_overflow(struct adis_dev *adis, uint32_t fifo_overflow)
Write FIFO overflow bit value.
Definition: adis.c:1878
adis_read_burst32
int adis_read_burst32(struct adis_dev *adis, uint32_t *burst32)
Read burst32 enable bit value.
Definition: adis.c:3223
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.
Definition: adis.c:3879
ADIS16501
@ ADIS16501
Definition: adis.h:89
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.
Definition: adis.c:1654
ADIS_WRITE_REG
#define ADIS_WRITE_REG(reg)
Definition: adis_internals.h:49
adis_data_field_map_def::coeff_bank_a
struct adis_field coeff_bank_a
Definition: adis_internals.h:410
adis_data_field_map_def::diag_config_calib_crc_error_mask
uint32_t diag_config_calib_crc_error_mask
Definition: adis_internals.h:170
adis_diag_flags::spi_comm_err
uint8_t spi_comm_err
Definition: adis.h:143
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.
Definition: adis.c:3890
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.
Definition: adis.c:2393
adis_data_field_map_def::yg_scale
struct adis_field yg_scale
Definition: adis_internals.h:249
adis_write_sens_bw
int adis_write_sens_bw(struct adis_dev *adis, uint32_t sens_bw)
Write internal sensor bandwidth encoded value.
Definition: adis.c:3044
adis_data_field_map_def::bias_corr_tbc
struct adis_field bias_corr_tbc
Definition: adis_internals.h:321
adis_cmd_sw_res
int adis_cmd_sw_res(struct adis_dev *adis)
Command: software reset.
Definition: adis.c:3683
adis_init_param::sync_mode
uint32_t sync_mode
Definition: adis.h:320
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.
Definition: adis.c:2177
adis_data_field_map_def
ADIS filed map definition structure.
Definition: adis_internals.h:130
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.
Definition: adis.c:2532
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.
Definition: adis.c:3126
adis_write_dr_enable
int adis_write_dr_enable(struct adis_dev *adis, uint32_t dr_enable)
Write data ready enable encoded value.
Definition: adis.c:2636
adis_data_field_map_def::dr_enable
struct adis_field dr_enable
Definition: adis_internals.h:281
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.
Definition: adis.c:755
adis_data_field_map_def::yg_bias
struct adis_field yg_bias
Definition: adis_internals.h:236
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.
Definition: adis.c:3099
adis_data_field_map_def::dr_polarity
struct adis_field dr_polarity
Definition: adis_internals.h:279
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.
Definition: adis.c:3468
adis_data_field_map_def::firm_d
struct adis_field firm_d
Definition: adis_internals.h:357
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.
Definition: adis.c:2265
no_os_spi_remove
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
adis_data_field_map_def::diag_data_path_overrun_mask
uint32_t diag_data_path_overrun_mask
Definition: adis_internals.h:136
adis_device_id
adis_device_id
Supported device ids.
Definition: adis.h:74
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.
Definition: adis.c:1148
adis_data_field_map_def::fir_bank_sel_zg
struct adis_field fir_bank_sel_zg
Definition: adis_internals.h:402
adis_write_gpio_dir
int adis_write_gpio_dir(struct adis_dev *adis, uint8_t dio_nb, uint32_t dir)
Write gpio direction configuration.
Definition: adis.c:2968
adis_read_serial_num
int adis_read_serial_num(struct adis_dev *adis, uint32_t *serial_num)
Read serial number value.
Definition: adis.c:3802
adis_chip_info::read_burst_data
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
no_os_gpio.h
Header file of GPIO Interface.
adis_data_field_map_def::temp_flags
struct adis_field temp_flags
Definition: adis_internals.h:193
adis_temp_flags::gyro1_temp_x
uint8_t gyro1_temp_x
Definition: adis.h:221
adis_diag_flags::y_axis_accl_failure
uint8_t y_axis_accl_failure
Definition: adis.h:167
adis_write_sens_bw
int adis_write_sens_bw(struct adis_dev *adis, uint32_t sens_bw)
Write internal sensor bandwidth encoded value.
Definition: adis.c:3044
adis_read_dr_selection
int adis_read_dr_selection(struct adis_dev *adis, uint32_t *dr_selection)
Read data ready selection encoded value.
Definition: adis.c:2553
adis_chip_info::write_lpf
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
adis_chip_info::get_scale
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
adis_data_field_map_def::fir_bank_sel_xa
struct adis_field fir_bank_sel_xa
Definition: adis_internals.h:404
adis_write_sync_selection
int adis_write_sync_selection(struct adis_dev *adis, uint32_t sync_selection)
Write sync selection encoded value.
Definition: adis.c:2679
adis_data_field_map_def::diag_accl_failure_mask
uint32_t diag_accl_failure_mask
Definition: adis_internals.h:154
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.
Definition: adis.c:3912
adis_burst_data::x_accel_msb
uint16_t x_accel_msb
Definition: adis.h:260
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.
Definition: adis.c:3162
adis_write_dr_polarity
int adis_write_dr_polarity(struct adis_dev *adis, uint32_t dr_polarity)
Write data ready polarity encoded value.
Definition: adis.c:2601
adis_diag_flags::z_axis_accl_failure
uint8_t z_axis_accl_failure
Definition: adis.h:169
ADIS16507_2
@ ADIS16507_2
Definition: adis.h:94
adis_dev::spi_desc
struct no_os_spi_desc * spi_desc
Definition: adis.h:272
adis_data_field_map_def::coeff_bank_c
struct adis_field coeff_bank_c
Definition: adis_internals.h:414
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.
Definition: adis.c:2393
adis_timeout::msc_reg_update_us
uint16_t msc_reg_update_us
Definition: adis_internals.h:89
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.
Definition: adis.c:1211
no_os_spi_init
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
adis_data_field_map_def::diag_boot_memory_failure_mask
uint32_t diag_boot_memory_failure_mask
Definition: adis_internals.h:178
adis_write_dr_selection
int adis_write_dr_selection(struct adis_dev *adis, uint32_t dr_selection)
Write data ready selection encoded value.
Definition: adis.c:2569
no_os_get_unaligned_be16
uint16_t no_os_get_unaligned_be16(uint8_t *buf)
ADIS_DELTAVEL_CHAN
@ ADIS_DELTAVEL_CHAN
Definition: adis.h:119
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.
Definition: adis.c:1190
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.
Definition: adis.c:2460
adis_data_field_map_def::snsr_self_test
struct adis_field snsr_self_test
Definition: adis_internals.h:342
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.
Definition: adis.c:1577
adis_write_field_u32
int adis_write_field_u32(struct adis_dev *adis, struct adis_field field, uint32_t field_val)
Write field from uint32 value.
Definition: adis.c:449
ADIS16477_1
@ ADIS16477_1
Definition: adis.h:85
adis_data_field_map_def::coeff_c0
struct adis_field coeff_c0
Definition: adis_internals.h:384
adis_init_param::gpio_reset
struct no_os_gpio_init_param * gpio_reset
Definition: adis.h:312
adis_read_sync_polarity
int adis_read_sync_polarity(struct adis_dev *adis, uint32_t *sync_polarity)
Read sync polarity encoded value.
Definition: adis.c:2699
adis_initial_startup
int adis_initial_startup(struct adis_dev *adis)
Device initial setup.
Definition: adis.c:179
adis_read_diag_overrange
int adis_read_diag_overrange(struct adis_dev *adis, uint32_t *overrange)
Diagnosis: read overrange for inertial sensors flag value.
Definition: adis.c:1043
adis_diag_flags::power_supply_failure
uint8_t power_supply_failure
Definition: adis.h:179
adis_read_field_s32
int adis_read_field_s32(struct adis_dev *adis, struct adis_field field, int32_t *field_val)
Read field to int32 value.
Definition: adis.c:425
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.
Definition: adis.c:3455
adis_data_field_map_def::boot_rev
struct adis_field boot_rev
Definition: adis_internals.h:363
adis_cmd_fls_mem_update
int adis_cmd_fls_mem_update(struct adis_dev *adis)
Command: flash memory update.
Definition: adis.c:3632
adis_data_field_map_def::diag_wdg_timer_flag_mask
uint32_t diag_wdg_timer_flag_mask
Definition: adis_internals.h:182
adis_data_field_map_def::bias_corr_en_za
struct adis_field bias_corr_en_za
Definition: adis_internals.h:333
adis_read_y_accl
int adis_read_y_accl(struct adis_dev *adis, int32_t *y_accl)
Read raw acceleration data on y axis.
Definition: adis.c:1351
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.
Definition: adis.c:4193
no_os_util.h
Header file of utility functions.
ADIS_SYNC_SCALED
#define ADIS_SYNC_SCALED
Definition: adis.h:63
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.
Definition: adis.c:1599
adis_scale_fractional_log2::dividend
uint32_t dividend
Definition: adis.h:239
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.
Definition: adis.c:3507
adis_burst_data::x_gyro_lsb
uint16_t x_gyro_lsb
Definition: adis.h:253
adis_data_field_map_def::diag_overrange_mask
uint32_t diag_overrange_mask
Definition: adis_internals.h:172
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.
Definition: adis.c:2105
ADIS16465_2
@ ADIS16465_2
Definition: adis.h:76
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.
Definition: adis.c:2057
adis_data_field_map_def::x_gyro
struct adis_field x_gyro
Definition: adis_internals.h:196
adis_data_field_map_def::bias_corr_en_ya
struct adis_field bias_corr_en_ya
Definition: adis_internals.h:331
adis_temp_flags::gyro2_temp_x
uint8_t gyro2_temp_x
Definition: adis.h:219
no_os_sign_extend32
int32_t no_os_sign_extend32(uint32_t value, int index)
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.
Definition: adis.c:1676
adis_read_dr_enable
int adis_read_dr_enable(struct adis_dev *adis, uint32_t *dr_enable)
Read data ready enable encoded value.
Definition: adis.c:2624
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.
Definition: adis.c:4145
adis_read_alarm_enable
int adis_read_alarm_enable(struct adis_dev *adis, uint32_t *alarm_enable)
Read alarm enable encoded value.
Definition: adis.c:2868
adis_data_field_map_def::fir_bank_sel_ya
struct adis_field fir_bank_sel_ya
Definition: adis_internals.h:406
adis_cmd_write_lock
int adis_cmd_write_lock(struct adis_dev *adis)
Command: write lock.
Definition: adis.c:3704
adis_data_field_map_def::xg_scale
struct adis_field xg_scale
Definition: adis_internals.h:247
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.
Definition: adis.c:1926
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.
Definition: adis.c:1190
adis_data_field_map_def::fir_bank_sel_xg
struct adis_field fir_bank_sel_xg
Definition: adis_internals.h:398
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.
Definition: adis.c:2460
pr_warning
#define pr_warning(fmt, args...)
Definition: no_os_print_log.h:97
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.
Definition: adis.c:1232
adis_data_field_map_def::accl_fir_enable
struct adis_field accl_fir_enable
Definition: adis_internals.h:311
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.
Definition: adis.c:1106
adis_remove
void adis_remove(struct adis_dev *adis)
Remove adis device.
Definition: adis.c:162
adis_chip_info::sampling_clk_limits
const struct adis_clk_freq_limit sampling_clk_limits
Definition: adis_internals.h:430
adis_timeout::fls_mem_test_ms
uint16_t fls_mem_test_ms
Definition: adis_internals.h:73
adis_chip_info::filt_size_var_b_max
uint16_t filt_size_var_b_max
Definition: adis_internals.h:448
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.
Definition: adis.c:775
adis_timeout::fls_mem_update_ms
uint16_t fls_mem_update_ms
Definition: adis_internals.h:69
adis_timeout::self_test_ms
uint16_t self_test_ms
Definition: adis_internals.h:65
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.
Definition: adis.c:1962
adis_read_firm_rev
int adis_read_firm_rev(struct adis_dev *adis, uint32_t *firm_rev)
Read firmware revision value.
Definition: adis.c:3736
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.
Definition: adis.c:672
no_os_gpio_direction_output
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
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.
Definition: adis.c:714
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.
Definition: adis.c:1709
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.
Definition: adis.c:3401
adis_read_sync_selection
int adis_read_sync_selection(struct adis_dev *adis, uint32_t *sync_selection)
Read sync selection encoded value.
Definition: adis.c:2663
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.
Definition: adis.c:2201
adis_read_dr_polarity
int adis_read_dr_polarity(struct adis_dev *adis, uint32_t *dr_polarity)
Read data ready polarity encoded value.
Definition: adis.c:2589
ADIS_READ_BURST_DATA_CMD_MSB
#define ADIS_READ_BURST_DATA_CMD_MSB
Definition: adis_internals.h:42
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.
Definition: adis.c:1676
adis_read_dr_enable
int adis_read_dr_enable(struct adis_dev *adis, uint32_t *dr_enable)
Read data ready enable encoded value.
Definition: adis.c:2624
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.
Definition: adis.c:651
adis_data_field_map_def::diag_x_axis_accl_failure_mask
uint32_t diag_x_axis_accl_failure_mask
Definition: adis_internals.h:162
adis_burst_data::y_accel_lsb
uint16_t y_accel_lsb
Definition: adis.h:261
adis_data_field_map_def::spi_chksum
struct adis_field spi_chksum
Definition: adis_internals.h:231
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.
Definition: adis.c:3879
adis_write_dec_rate
int adis_write_dec_rate(struct adis_dev *adis, uint32_t dec_rate)
Write decimation rate value.
Definition: adis.c:3379
adis_update_diag_flags
void adis_update_diag_flags(struct adis_dev *adis, uint32_t diag_stat)
Update device diagnosis flags according to the received parameter.
Definition: adis.c:507
adis_data_field_map_def::diag_stat
struct adis_field diag_stat
Definition: adis_internals.h:132
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.
Definition: adis.c:1732
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.
Definition: adis.c:2032
adis_read_serial_num
int adis_read_serial_num(struct adis_dev *adis, uint32_t *serial_num)
Read serial number value.
Definition: adis.c:3802
adis_temp_flags::accl_temp_z_x
uint8_t accl_temp_z_x
Definition: adis.h:205
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.
Definition: adis.c:3846
adis_data_field_map_def::diag_mem_failure_mask
uint32_t diag_mem_failure_mask
Definition: adis_internals.h:146
adis_read_up_scale
int adis_read_up_scale(struct adis_dev *adis, uint32_t *up_scale)
Read external clock scale factor value.
Definition: adis.c:3327
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.
Definition: adis.c:2069
ADIS16575_2
@ ADIS16575_2
Definition: adis.h:103
adis_update_ext_clk_freq
int adis_update_ext_clk_freq(struct adis_dev *adis, uint32_t clk_freq)
Update external clock frequency.
Definition: adis.c:4095
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.
Definition: adis.c:1632
errno.h
Error macro definition for ARM Compiler.
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.
Definition: adis.c:959
adis_cmd_write_lock
int adis_cmd_write_lock(struct adis_dev *adis)
Command: write lock.
Definition: adis.c:3704
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.
Definition: adis.c:1610
adis_dev::dev_id
enum adis_device_id dev_id
Definition: adis.h:282
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.
Definition: adis.c:3857
adis_read_gpio_dir
int adis_read_gpio_dir(struct adis_dev *adis, uint8_t dio_nb, uint32_t *dir)
Read gpio configured direction.
Definition: adis.c:2908
adis_data_field_map_def::diag_standby_mode_mask
uint32_t diag_standby_mode_mask
Definition: adis_internals.h:142
adis_data_field_map_def::timestamp32
struct adis_field timestamp32
Definition: adis_internals.h:307
adis_chip_info::bias_corr_tbc_max
uint8_t bias_corr_tbc_max
Definition: adis_internals.h:458
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.
Definition: adis.c:2496
adis_data_field_map_def::fir_en_yg
struct adis_field fir_en_yg
Definition: adis_internals.h:388
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.
Definition: adis.c:2281
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.
Definition: adis.c:896
adis_data_field_map_def::coeff_bank_d
struct adis_field coeff_bank_d
Definition: adis_internals.h:416
adis_data_field_map_def::prod_id
struct adis_field prod_id
Definition: adis_internals.h:365
adis_diag_flags::mem_failure
uint8_t mem_failure
Definition: adis.h:149
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.
Definition: adis.c:795
adis_write_sync_4khz
int adis_write_sync_4khz(struct adis_dev *adis, uint32_t sync_4khz)
Write 4khz internal sync enable bit value.
Definition: adis.c:3306
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.
Definition: adis.c:1566
adis_read_firm_rev
int adis_read_firm_rev(struct adis_dev *adis, uint32_t *firm_rev)
Read firmware revision value.
Definition: adis.c:3736
ADIS16545_3
@ ADIS16545_3
Definition: adis.h:98
adis_data_field_map_def::sens_bw
struct adis_field sens_bw
Definition: adis_internals.h:297
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.
Definition: adis.c:3559
adis_data_field_map_def::za_bias
struct adis_field za_bias
Definition: adis_internals.h:244
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.
Definition: adis.c:1430
adis_data_field_map_def::diag_z_axis_accl_failure_mask
uint32_t diag_z_axis_accl_failure_mask
Definition: adis_internals.h:166
no_os_spi_init_param
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140
ADIS_TEMP_CHAN
@ ADIS_TEMP_CHAN
Definition: adis.h:117
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.
Definition: adis.c:1974
adis_dev::current_page
uint32_t current_page
Definition: adis.h:284
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.
Definition: adis.c:3481
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.
Definition: adis.c:2129
adis_read_sync_selection
int adis_read_sync_selection(struct adis_dev *adis, uint32_t *sync_selection)
Read sync selection encoded value.
Definition: adis.c:2663
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.
Definition: adis.c:3162
no_os_gpio_get_optional
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