Go to the documentation of this file.
34 #ifndef __ADIS1657X_H__
35 #define __ADIS1657X_H__
47 #define ADIS1657X_ID_NO_OFFSET(x) ((x) - ADIS16575_2)
@ ADIS16576_2
Definition: adis.h:105
#define ADIS_SYNC_DEFAULT
Definition: adis.h:61
@ ADIS16577_3
Definition: adis.h:108
ADIS frequency limit for input synchronization clock.
Definition: adis_internals.h:100
@ ADIS_GYRO_CHAN
Definition: adis.h:116
#define ADIS_HAS_BURST_DELTA_DATA
Definition: adis_internals.h:39
Internal include file used for specific chip driver definitions, which are not useful for the user.
#define ADIS1657X_READ_BURST_DATA_NO_POP
Definition: adis1657x.c:50
#define ADIS1657X_CHECKSUM_BUF_IDX_FIFO
Definition: adis1657x.c:51
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 generic scale members structure.
Definition: adis_internals.h:110
ADIS chip timeouts.
Definition: adis_internals.h:55
uint16_t temp_msb
Definition: adis.h:250
#define RAD_TO_DEGREE(rad)
Definition: no_os_units.h:77
#define ADIS_HAS_FIFO
Definition: adis_internals.h:40
ADIS burst data structure.
Definition: adis.h:248
uint32_t min_freq
Definition: adis_internals.h:102
uint16_t x_accel_lsb
Definition: adis.h:259
uint16_t y_gyro_msb
Definition: adis.h:256
adis_chan_type
Supported channels.
Definition: adis.h:114
uint16_t y_gyro_lsb
Definition: adis.h:255
#define ADIS_SYNC_DIRECT
Definition: adis.h:62
uint16_t z_gyro_msb
Definition: adis.h:258
#define MILLIDEGREE_PER_DEGREE
Definition: no_os_units.h:71
@ ADIS_ACCL_CHAN
Definition: adis.h:115
#define M_S_2_TO_G(ms2)
Definition: no_os_units.h:84
uint16_t y_accel_msb
Definition: adis.h:262
uint16_t x_gyro_msb
Definition: adis.h:254
int adis_write_burst32(struct adis_dev *adis, uint32_t burst32)
Write burst32 enable bit value.
Definition: adis.c:3242
uint8_t burst_sel
Definition: adis.h:298
uint16_t z_gyro_lsb
Definition: adis.h:257
#define ADIS_READ_BURST_DATA_CMD_LSB
Definition: adis_internals.h:43
int adis_write_burst_sel(struct adis_dev *adis, uint32_t burst_sel)
Write burst selection encoded value.
Definition: adis.c:3202
uint16_t data_cntr_lsb
Definition: adis.h:251
ADIS specific chip information structure.
Definition: adis_internals.h:422
#define ADIS_HAS_BURST32
Definition: adis_internals.h:38
uint16_t z_accel_msb
Definition: adis.h:264
ADIS device descriptor structure.
Definition: adis.h:270
const struct adis_data_field_map_def * field_map
Definition: adis_internals.h:426
uint16_t z_accel_lsb
Definition: adis.h:263
const struct adis_chip_info * info
Definition: adis.h:276
Implementation of adis1657x.h.
@ ADIS16575_3
Definition: adis.h:104
uint32_t scale_m2
Definition: adis_internals.h:112
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
#define ADIS1657X_ID_NO_OFFSET(x)
Definition: adis1657x.h:47
Implementation of adis.h.
@ ADIS_DELTAANGL_CHAN
Definition: adis.h:118
uint32_t scale_m1
Definition: adis_internals.h:111
struct adis_diag_flags diag_flags
Definition: adis.h:278
#define ADIS_SYNC_OUTPUT
Definition: adis.h:64
const uint32_t flags
Definition: adis_internals.h:434
#define ADIS_READ_BURST_DATA_CMD_SIZE
Definition: adis_internals.h:44
int adis1657x_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: adis1657x.c:269
const struct adis_chip_info adis1657x_chip_info
Definition: adis1657x.c:381
@ ADIS16576_3
Definition: adis.h:106
#define NO_OS_BIT(x)
Definition: no_os_util.h:45
@ ADIS16577_2
Definition: adis.h:107
uint16_t reg_addr
Definition: adis_internals.h:120
uint8_t checksum_err
Definition: adis.h:195
uint16_t temp_lsb
Definition: adis.h:249
uint16_t reset_ms
Definition: adis_internals.h:57
bool burst32
Definition: adis.h:296
#define ADIS1657X_MSG_SIZE_16_BIT_BURST_FIFO
Definition: adis1657x.c:48
uint16_t data_cntr_msb
Definition: adis.h:252
#define DEGREE_TO_RAD(deg)
Definition: no_os_units.h:74
#define ADIS1657X_MSG_SIZE_32_BIT_BURST_FIFO
Definition: adis1657x.c:49
ADIS filed map definition structure.
Definition: adis_internals.h:130
uint16_t x_accel_msb
Definition: adis.h:260
struct no_os_spi_desc * spi_desc
Definition: adis.h:272
uint16_t no_os_get_unaligned_be16(uint8_t *buf)
@ ADIS_DELTAVEL_CHAN
Definition: adis.h:119
const struct adis_chip_info adis1657x_chip_info
Definition: adis1657x.c:381
#define ADIS_SYNC_SCALED
Definition: adis.h:63
uint16_t x_gyro_lsb
Definition: adis.h:253
struct adis_field x_gyro
Definition: adis_internals.h:196
#define ADIS_READ_BURST_DATA_CMD_MSB
Definition: adis_internals.h:42
uint16_t y_accel_lsb
Definition: adis.h:261
void adis_update_diag_flags(struct adis_dev *adis, uint32_t diag_stat)
Update device diagnosis flags according to the received parameter.
Definition: adis.c:507
@ ADIS16575_2
Definition: adis.h:103
enum adis_device_id dev_id
Definition: adis.h:282
@ ADIS_TEMP_CHAN
Definition: adis.h:117