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;
171  uint8_t aduc_mcu_fault :1;
175  uint8_t overrange :1;
177  uint8_t temp_err :1;
183  uint8_t reg_nvm_err :1;
185  uint8_t wdg_timer_flag :1;
189  uint8_t ext_5v_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:2600
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:3002
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:1754
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:1846
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:1812
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:3790
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:2140
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:2376
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:3337
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:3612
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:1766
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:3812
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:2360
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:3454
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:1147
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:2513
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:1021
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:3593
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:2188
adis_read_temp_out
int adis_read_temp_out(struct adis_dev *adis, int32_t *temp_out)
Read raw temperature data.
Definition: adis.c:1388
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:1697
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:2152
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:2867
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:3757
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:4176
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:1448
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:754
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:1486
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:1686
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:1901
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:1913
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:3790
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:3274
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:2232
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:3074
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:1524
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:2376
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:3337
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:1000
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:1084
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:1042
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:1543
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:631
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:1251
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:937
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:4094
adis_read_dec_rate
int adis_read_dec_rate(struct adis_dev *adis, uint32_t *dec_rate)
Read decimation rate value.
Definition: adis.c:3367
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:2216
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:1554
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:3779
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:1168
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:2733
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:1877
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:3519
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:3545
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:2344
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:2698
adis_cmd_fifo_flush
int adis_cmd_fifo_flush(struct adis_dev *adis)
Command: fifo flush.
Definition: adis.c:3671
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:1565
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:3182
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:2080
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:3889
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:937
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:3558
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:2405
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:2056
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:3834
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:3400
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:3412
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:1251
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:854
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:916
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:2796
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:1369
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:2140
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:1800
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:1467
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:3326
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:4160
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:3582
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:2188
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:1631
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:1642
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:3086
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:1293
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:3867
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:602
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:814
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:3823
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:1063
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:3900
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:1274
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:1598
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:1210
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:2031
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:1587
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:2152
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:1664
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:2296
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:1609
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:2116
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:3305
adis_cmd_fls_mem_test
int adis_cmd_fls_mem_test(struct adis_dev *adis)
Command: flash memory test.
Definition: adis.c:3652
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:1708
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:3812
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:1587
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:3532
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:1620
adis_read_burst32
int adis_read_burst32(struct adis_dev *adis, uint32_t *burst_size)
Read burst32 enable bit value.
Definition: adis.c:3222
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:2844
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:1407
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:2588
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:650
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:3746
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:774
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:2248
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:3201
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:814
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:2513
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:2312
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:1731
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:3241
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:1448
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:3441
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:1664
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:1835
adis_cmd_fls_mem_update
int adis_cmd_fls_mem_update(struct adis_dev *adis)
Command: flash memory update.
Definition: adis.c:3631
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:2710
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:916
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:3262
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:3201
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:3845
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:2423
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:1429
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:4144
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:1084
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:2635
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:2879
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:2128
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:1331
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:2264
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:1105
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:2312
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:3976
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:2232
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:4208
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:1312
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:1554
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:1865
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:3493
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:3062
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:3182
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:3823
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:2967
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:3147
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:1021
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:2405
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:1777
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:3746
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:854
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:1486
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:1999
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:1369
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:794
adis_cmd_fls_mem_test
int adis_cmd_fls_mem_test(struct adis_dev *adis)
Command: flash memory test.
Definition: adis.c:3652
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:1350
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:895
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:2531
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:4160
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:3582
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:2832
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:1823
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:1653
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:1063
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:3032
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:1126
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:1274
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:1889
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:1524
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:3724
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:1800
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:2733
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:692
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:1261
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:1835
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:1766
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:3086
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:1231
adis_cmd_fifo_flush
int adis_cmd_fifo_flush(struct adis_dev *adis)
Command: fifo flush.
Definition: adis.c:3671
adis_read_data_cntr
int adis_read_data_cntr(struct adis_dev *adis, uint32_t *data_cntr)
Read data counter value.
Definition: adis.c:1418
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:3519
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:2080
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:2832
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:4122
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:1846
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:3032
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:2568
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:3294
adis_read_temp_out
int adis_read_temp_out(struct adis_dev *adis, int32_t *temp_out)
Read raw temperature data.
Definition: adis.c:1388
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:3768
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:1407
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:2812
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:3757
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:2344
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:2092
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:3412
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:1865
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:2360
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:3911
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:1901
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:3976
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:874
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:2441
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:2116
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:1312
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:4208
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:692
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:1576
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:1949
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:834
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:3933
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:602
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:3779
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:3111
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:3074
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:3768
adis_read_dec_rate
int adis_read_dec_rate(struct adis_dev *adis, uint32_t *dec_rate)
Read decimation rate value.
Definition: adis.c:3367
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:1777
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:3467
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:3867
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:2710
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:979
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:1937
adis_read_timestamp32
int adis_read_timestamp32(struct adis_dev *adis, uint32_t *timestamp32)
Read timestamp32 enable bit value.
Definition: adis.c:3262
adis_read_proc_rev
int adis_read_proc_rev(struct adis_dev *adis, uint32_t *proc_rev)
Read processor revision value.
Definition: adis.c:3724
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:3428
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:2749
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:3571
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:4176
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:2552
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:3834
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:3532
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:834
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:2879
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:1686
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:4224
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:1697
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:3098
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:3949
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:1999
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:2248
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:4192
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:1293
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:1913
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:2495
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:3147
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:1505
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:3125
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:2812
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:2937
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:1543
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:3002
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:3571
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:1823
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:1925
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:2200
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:3480
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:3545
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:1331
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:2328
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:2164
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:1754
adis_cmd_fact_calib_restore
int adis_cmd_fact_calib_restore(struct adis_dev *adis)
Command: factory calibration restore.
Definition: adis.c:3593
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:2216
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:713
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:3612
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:1168
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:1505
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:2844
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:1620
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:2477
adis_write_timestamp32
int adis_write_timestamp32(struct adis_dev *adis, uint32_t timestamp32)
Write timestamp32 enable bit value.
Definition: adis.c:3274
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:1126
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:3111
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:733
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:2092
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:3856
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:979
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:1961
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:1789
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:2796
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:4122
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:3900
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:2176
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:2296
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:3378
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:4224
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:3933
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:1889
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:1789
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:874
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:2441
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:2423
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:2068
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:576
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:2937
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:1261
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:3493
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:2907
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:3062
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:2328
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:1949
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:1720
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:1743
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:2164
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:3294
adis_write_burst32
int adis_write_burst32(struct adis_dev *adis, uint32_t burst_size)
Write burst32 enable bit value.
Definition: adis.c:3241
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:3682
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:1642
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:958
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:1937
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:2104
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:3441
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:1418
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:2477
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:1812
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:2280
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:1720
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:1743
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:3506
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:1000
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:671
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:1973
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:1467
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:733
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:576
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:2749
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:3428
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:3949
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:2678
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:1877
adis_read_burst32
int adis_read_burst32(struct adis_dev *adis, uint32_t *burst32)
Read burst32 enable bit value.
Definition: adis.c:3222
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:3878
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:1653
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:3889
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:2392
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:3043
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:3682
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:2176
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:2531
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:3125
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:2635
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:754
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:3098
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:3467
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:2264
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:1147
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:2967
adis_read_serial_num
int adis_read_serial_num(struct adis_dev *adis, uint32_t *serial_num)
Read serial number value.
Definition: adis.c:3801
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:3043
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:2552
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:2678
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:3911
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:3161
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:2600
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:2392
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:1210
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:2568
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:1189
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:2459
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:1576
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:2698
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:1042
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:3454
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:3631
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:1350
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:4192
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:1598
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:3506
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:2104
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:2056
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:1675
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:2623
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:4144
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:2867
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:3703
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:1925
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:1189
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:2459
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:1231
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:1105
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:774
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:1961
adis_read_firm_rev
int adis_read_firm_rev(struct adis_dev *adis, uint32_t *firm_rev)
Read firmware revision value.
Definition: adis.c:3735
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:671
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:713
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:1708
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:3400
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:2662
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:2200
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:2588
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:1675
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:2623
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:650
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:3878
adis_write_dec_rate
int adis_write_dec_rate(struct adis_dev *adis, uint32_t dec_rate)
Write decimation rate value.
Definition: adis.c:3378
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:506
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:1731
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:2031
adis_read_serial_num
int adis_read_serial_num(struct adis_dev *adis, uint32_t *serial_num)
Read serial number value.
Definition: adis.c:3801
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:3845
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:3326
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:2068
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:4094
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:1631
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:958
adis_cmd_write_lock
int adis_cmd_write_lock(struct adis_dev *adis)
Command: write lock.
Definition: adis.c:3703
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:1609
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:3856
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:2907
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:2495
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:2280
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:895
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:794
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:3305
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:1565
adis_read_firm_rev
int adis_read_firm_rev(struct adis_dev *adis, uint32_t *firm_rev)
Read firmware revision value.
Definition: adis.c:3735
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:3558
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:1429
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:1973
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:3480
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:2128
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:2662
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:3161
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