no-OS
|
Implementation of adis1654x.c. More...
#include "adis.h"
#include "adis_internals.h"
#include "adis1654x.h"
#include "no_os_units.h"
#include <string.h>
#include "no_os_util.h"
#include "no_os_delay.h"
Macros | |
#define | ADIS1654X_CRC32_SEED 0xFFFFFFFF |
Functions | |
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. More... | |
Variables | |
const struct adis_chip_info | adis1654x_chip_info |
Implementation of adis1654x.c.
Copyright 2024(c) Analog Devices, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define ADIS1654X_CRC32_SEED 0xFFFFFFFF |
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.
adis | - The adis device. |
data | - The burst read data structure to be populated. |
burst32 | - True if 32-bit data is requested for accel and gyro (or delta angle and delta velocity) measurements, false if 16-bit data is requested. |
burst_sel | - 0 if accel and gyro data is requested, 1 if delta angle and delta velocity is requested. |
fifo_pop | - In case FIFO is present, will pop the fifo if true. Unused if FIFO is not present. |
crc_check | - If true CRC will be checked, if false check will be skipped. |
const struct adis_chip_info adis1654x_chip_info |