Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
imu_aspirin.c File Reference
#include "subsystems/imu.h"
#include "peripherals/hmc5843.h"
#include "mcu_periph/i2c.h"
+ Include dependency graph for imu_aspirin.c:

Go to the source code of this file.

Macros

#define ASPIRIN_ACCEL_RATE   ADXL345_RATE_800
 

Functions

static void configure_gyro (void)
 
static void configure_accel (void)
 
static void send_i2c_msg_with_retry (struct i2c_transaction *t)
 
void imu_impl_init (void)
 
void imu_periodic (void)
 

Variables

struct ImuAspirin imu_aspirin
 

Macro Definition Documentation

#define ASPIRIN_ACCEL_RATE   ADXL345_RATE_800

Definition at line 14 of file imu_aspirin.c.

Referenced by configure_accel().

Function Documentation

static void configure_accel ( void  )
static

Definition at line 98 of file imu_aspirin.c.

References adxl345_clear_rx_buf(), ADXL345_FULL_RES, ADXL345_INT_INVERT, ADXL345_RANGE_16G, ADXL345_REG_BW_RATE, ADXL345_REG_DATA_FORMAT, ADXL345_REG_INT_ENABLE, ADXL345_REG_POWER_CTL, adxl345_start_reading_data(), adxl345_write_to_reg(), and ASPIRIN_ACCEL_RATE.

Referenced by imu_periodic().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void configure_gyro ( void  )
static

Definition at line 72 of file imu_aspirin.c.

References i2c_transaction::buf, I2CTransTx, ITG3200_ADDR, ITG3200_REG_DLPF_FS, ITG3200_REG_INT_CFG, ITG3200_REG_PWR_MGM, ITG3200_REG_SMPLRT_DIV, i2c_transaction::len_w, send_i2c_msg_with_retry(), i2c_transaction::slave_addr, and i2c_transaction::type.

Referenced by imu_periodic().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void send_i2c_msg_with_retry ( struct i2c_transaction t)
static

Definition at line 18 of file imu_aspirin.c.

References i2c_submit(), I2CTransFailed, I2CTransPending, I2CTransRunning, I2CTransSuccess, and i2c_transaction::status.

Referenced by configure_gyro().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation