53 #include <px4_platform_common/px4_work_queue/ScheduledWorkItem.hpp> 58 #define DIR_WRITE 0x80 60 #define ADIS16448_GPIO_CTRL 0x32 61 #define ADIS16448_MSC_CTRL 0x34 62 #define ADIS16448_SMPL_PRD 0x36 63 #define ADIS16448_SENS_AVG 0x38 64 #define ADIS16448_DIAG_STAT 0x3C 65 #define ADIS16448_GLOB_CMD 0x3E 66 #define ADIS16448_PRODUCT_ID 0x56 67 #define ADIS16334_SERIAL_NUMBER 0x58 69 #define ADIS16448_Product 0x4040 71 #define BITS_SMPL_PRD_NO_TAP_CFG (0<<8) 72 #define BITS_SMPL_PRD_2_TAP_CFG (1<<8) 73 #define BITS_SMPL_PRD_4_TAP_CFG (2<<8) 74 #define BITS_SMPL_PRD_8_TAP_CFG (3<<8) 75 #define BITS_SMPL_PRD_16_TAP_CFG (4<<8) 77 #define BITS_GYRO_DYN_RANGE_1000_CFG (4<<8) 78 #define BITS_GYRO_DYN_RANGE_500_CFG (2<<8) 79 #define BITS_GYRO_DYN_RANGE_250_CFG (1<<8) 81 #define BITS_FIR_NO_TAP_CFG (0<<0) 82 #define BITS_FIR_2_TAP_CFG (1<<0) 83 #define BITS_FIR_4_TAP_CFG (2<<0) 84 #define BITS_FIR_8_TAP_CFG (3<<0) 85 #define BITS_FIR_16_TAP_CFG (4<<0) 86 #define BITS_FIR_32_TAP_CFG (5<<0) 87 #define BITS_FIR_64_TAP_CFG (6<<0) 88 #define BITS_FIR_128_TAP_CFG (7<<0) 101 class ADIS16448 :
public device::SPI,
public px4::ScheduledWorkItem
130 SERIAL_NUMBER = 0x58,
156 void modify_reg16(
unsigned reg, uint16_t clearbits, uint16_t setbits);
170 uint16_t read_reg16(
unsigned reg);
177 void write_reg16(
unsigned reg, uint16_t value);
182 bool set_dlpf_filter(uint16_t frequency_hz);
187 bool set_gyro_dyn_range(uint16_t desired_gyro_dyn_range);
192 bool set_sample_rate(uint16_t desired_sample_rate_hz);
209 uint16_t _product_ID{0};
static constexpr float ADIS16448_ACCEL_GYRO_UPDATE_RATE
measure the time elapsed performing an event
static constexpr uint8_t MSC_CTRL
Definition of geo / math functions to perform geodesic calculations.
static constexpr float ADIS16448_MAG_SENSITIVITY
static constexpr float ADIS16448_BARO_SENSITIVITY
PX4Accelerometer _px4_accel
int reset(enum LPS22HB_BUS busid)
Reset the driver.
Namespace encapsulating all device framework classes, functions and data.
count the number of times an event occurs
static constexpr float CONSTANTS_ONE_G
static constexpr float ADIS16448_GYRO_INITIAL_SENSITIVITY
void init()
Activates/configures the hardware registers.
static constexpr uint8_t DIAG_STAT
Rotation
Enum for board and external compass rotations.
static constexpr float ADIS16448_ACCEL_SENSITIVITY
constexpr T radians(T degrees)
static constexpr uint8_t GPIO_CTRL
static constexpr uint8_t GLOB_CMD
struct perf_ctr_header * perf_counter_t
static constexpr uint8_t PRODUCT_ID
static constexpr float ADIS16448_MAG_BARO_UPDATE_RATE
Performance measuring tools.