Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
imu_aspirin2.c File Reference
#include "subsystems/imu.h"
#include "led.h"
#include "mcu_periph/spi.h"
#include "peripherals/mpu60X0.h"
#include "peripherals/hmc58xx.h"
+ Include dependency graph for imu_aspirin2.c:

Go to the source code of this file.

Functions

static void mpu_configure (void)
 
void imu_impl_init (void)
 
void imu_periodic (void)
 
static void mpu_set (uint8_t _reg, uint8_t _val)
 
static void mpu_wait_slave4_ready (void)
 

Variables

struct ImuAspirin2 imu_aspirin2
 
struct spi_transaction aspirin2_mpu60x0
 

Function Documentation

void imu_periodic ( void  )
static void mpu_set ( uint8_t  _reg,
uint8_t  _val 
)
inlinestatic

Definition at line 78 of file imu_aspirin2.c.

References aspirin2_mpu60x0, spi_rw(), and i2c_transaction::status.

Referenced by mpu_configure().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void mpu_wait_slave4_ready ( void  )
inlinestatic

Definition at line 87 of file imu_aspirin2.c.

References aspirin2_mpu60x0, MPU60X0_REG_I2C_SLV4_CTRL, MPU60X0_SPI_READ, spi_rw(), and i2c_transaction::status.

Referenced by mpu_configure().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

struct spi_transaction aspirin2_mpu60x0

Definition at line 34 of file imu_aspirin2.c.

struct ImuAspirin2 imu_aspirin2

Definition at line 32 of file imu_aspirin2.c.

Referenced by imu_aspirin2_event(), imu_from_buff(), imu_impl_init(), and imu_periodic().