no-OS
adis1654x.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef __ADIS1654X_H__
35 #define __ADIS1654X_H__
36 
37 /******************************************************************************/
38 /***************************** Include Files **********************************/
39 /******************************************************************************/
40 
41 #include "adis.h"
42 
43 /******************************************************************************/
44 /********************** Macros and Constants Definitions **********************/
45 /******************************************************************************/
46 
47 #define ADIS1654X_ID_NO_OFFSET(x) ((x) - ADIS16545_1)
48 
49 /******************************************************************************/
50 /************************ Variables Declarations ******************************/
51 /******************************************************************************/
52 
53 extern const struct adis_chip_info adis1654x_chip_info;
54 
55 #endif
ADIS_SYNC_DEFAULT
#define ADIS_SYNC_DEFAULT
Definition: adis.h:61
adis_data_field_map_def::sync_mode
struct adis_field sync_mode
Definition: adis_internals.h:287
no_os_memswap64
void no_os_memswap64(void *buf, uint32_t bytes, uint32_t step)
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_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
adis1654x_chip_info
const struct adis_chip_info adis1654x_chip_info
Definition: adis1654x.c:679
adis_clk_freq_limit
ADIS frequency limit for input synchronization clock.
Definition: adis_internals.h:100
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_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_GYRO_CHAN
@ ADIS_GYRO_CHAN
Definition: adis.h:116
ADIS_HAS_BURST_DELTA_DATA
#define ADIS_HAS_BURST_DELTA_DATA
Definition: adis_internals.h:39
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
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_scale_members
ADIS generic scale members structure.
Definition: adis_internals.h:110
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_timeout
ADIS chip timeouts.
Definition: adis_internals.h:55
adis_burst_data::temp_msb
uint16_t temp_msb
Definition: adis.h:250
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_burst_data
ADIS burst data structure.
Definition: adis.h:248
adis_clk_freq_limit::min_freq
uint32_t min_freq
Definition: adis_internals.h:102
adis_burst_data::x_accel_lsb
uint16_t x_accel_lsb
Definition: adis.h:259
no_os_units.h
Header file of Units.
adis_burst_data::y_gyro_msb
uint16_t y_gyro_msb
Definition: adis.h:256
adis_chan_type
adis_chan_type
Supported channels.
Definition: adis.h:114
no_os_delay.h
Header file of Delay functions.
adis_burst_data::y_gyro_lsb
uint16_t y_gyro_lsb
Definition: adis.h:255
ADIS_SYNC_DIRECT
#define ADIS_SYNC_DIRECT
Definition: adis.h:62
adis_burst_data::z_gyro_msb
uint16_t z_gyro_msb
Definition: adis.h:258
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
MILLIDEGREE_PER_DEGREE
#define MILLIDEGREE_PER_DEGREE
Definition: no_os_units.h:71
ADIS_ACCL_CHAN
@ ADIS_ACCL_CHAN
Definition: adis.h:115
ADIS16545_1
@ ADIS16545_1
Definition: adis.h:96
ADIS16547_2
@ ADIS16547_2
Definition: adis.h:100
M_S_2_TO_G
#define M_S_2_TO_G(ms2)
Definition: no_os_units.h:84
ADIS16545_2
@ ADIS16545_2
Definition: adis.h:97
adis_burst_data::y_accel_msb
uint16_t y_accel_msb
Definition: adis.h:262
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_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
NO_OS_ARRAY_SIZE
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
adis1654x_read_burst_data
int adis1654x_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: adis1654x.c:352
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_burst_data::data_cntr_lsb
uint16_t data_cntr_lsb
Definition: adis.h:251
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_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_REG_PAGE_ID
#define ADIS_REG_PAGE_ID
Definition: adis_internals.h:47
adis_chip_info
ADIS specific chip information structure.
Definition: adis_internals.h:422
adis_dev::tx
uint8_t tx[12]
Definition: adis.h:286
ADIS_HAS_BURST32
#define ADIS_HAS_BURST32
Definition: adis_internals.h:38
adis_burst_data::z_accel_msb
uint16_t z_accel_msb
Definition: adis.h:264
adis_dev
ADIS device descriptor structure.
Definition: adis.h:270
adis_chip_info::sync_clk_freq_limits
const struct adis_clk_freq_limit * sync_clk_freq_limits
Definition: adis_internals.h:428
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_chip_info::field_map
const struct adis_data_field_map_def * field_map
Definition: adis_internals.h:426
adis_burst_data::z_accel_lsb
uint16_t z_accel_lsb
Definition: adis.h:263
adis_dev::ext_clk
uint32_t ext_clk
Definition: adis.h:292
ADIS16547_1
@ ADIS16547_1
Definition: adis.h:99
adis1654x_chip_info
const struct adis_chip_info adis1654x_chip_info
Definition: adis1654x.c:679
adis_dev::info
const struct adis_chip_info * info
Definition: adis.h:276
adis_scale_members::scale_m2
uint32_t scale_m2
Definition: adis_internals.h:112
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_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
adis1654x.h
Implementation of adis1654x.h.
adis_data_field_map_def::data_cntr
struct adis_field data_cntr
Definition: adis_internals.h:213
adis.h
Implementation of adis.h.
ADIS_Y_AXIS
@ ADIS_Y_AXIS
Definition: adis.h:127
ADIS_DELTAANGL_CHAN
@ ADIS_DELTAANGL_CHAN
Definition: adis.h:118
adis_chip_info::cs_change_delay
uint32_t cs_change_delay
Definition: adis_internals.h:440
adis_scale_members::scale_m1
uint32_t scale_m1
Definition: adis_internals.h:111
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_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_chip_info::flags
const uint32_t flags
Definition: adis_internals.h:434
ADIS_Z_AXIS
@ ADIS_Z_AXIS
Definition: adis.h:128
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_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_axis_type
adis_axis_type
Supported axes.
Definition: adis.h:125
NO_OS_BIT
#define NO_OS_BIT(x)
Definition: no_os_util.h:45
adis_field::reg_addr
uint16_t reg_addr
Definition: adis_internals.h:120
adis_diag_flags::checksum_err
uint8_t checksum_err
Definition: adis.h:195
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_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_chip_info::sync_mode_max
uint8_t sync_mode_max
Definition: adis_internals.h:452
ADIS1654X_CRC32_SEED
#define ADIS1654X_CRC32_SEED
Definition: adis1654x.c:48
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_timeout::reset_ms
uint16_t reset_ms
Definition: adis_internals.h:57
adis_burst_data::data_cntr_msb
uint16_t data_cntr_msb
Definition: adis.h:252
ADIS_WRITE_REG
#define ADIS_WRITE_REG(reg)
Definition: adis_internals.h:49
DEGREE_TO_RAD
#define DEGREE_TO_RAD(deg)
Definition: no_os_units.h:74
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_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_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_burst_data::x_accel_msb
uint16_t x_accel_msb
Definition: adis.h:260
adis_dev::spi_desc
struct no_os_spi_desc * spi_desc
Definition: adis.h:272
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_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
no_os_util.h
Header file of utility functions.
ADIS_SYNC_SCALED
#define ADIS_SYNC_SCALED
Definition: adis.h:63
adis_burst_data::x_gyro_lsb
uint16_t x_gyro_lsb
Definition: adis.h:253
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_chip_info::sampling_clk_limits
const struct adis_clk_freq_limit sampling_clk_limits
Definition: adis_internals.h:430
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_burst_data::y_accel_lsb
uint16_t y_accel_lsb
Definition: adis.h:261
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_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_dev::dev_id
enum adis_device_id dev_id
Definition: adis.h:282
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
ADIS16545_3
@ ADIS16545_3
Definition: adis.h:98
ADIS1654X_ID_NO_OFFSET
#define ADIS1654X_ID_NO_OFFSET(x)
Definition: adis1654x.h:47
ADIS_TEMP_CHAN
@ ADIS_TEMP_CHAN
Definition: adis.h:117
adis_dev::current_page
uint32_t current_page
Definition: adis.h:284