Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
imu_crista.h File Reference
#include "subsystems/imu.h"
#include "generated/airframe.h"
#include "subsystems/imu/imu_crista_arch.h"
+ Include dependency graph for imu_crista.h:

Go to the source code of this file.

Macros

#define ADS8344_NB_CHANNELS   8
 
#define ImuEvent(_gyro_handler, _accel_handler, _mag_handler)
 
#define ImuMagEvent(_mag_handler)   {}
 

Functions

void imu_crista_arch_init (void)
 

Variables

uint16_t ADS8344_values [ADS8344_NB_CHANNELS]
 
volatile bool_t ADS8344_available
 

Macro Definition Documentation

#define ADS8344_NB_CHANNELS   8

Definition at line 28 of file imu_crista.h.

#define ImuEvent (   _gyro_handler,
  _accel_handler,
  _mag_handler 
)
Value:
{ \
/* spare 3, temp 7 */ \
_gyro_handler(); \
_accel_handler(); \
} \
ImuMagEvent(_mag_handler); \
}
int32_t p
in rad/s with INT32_RATE_FRAC
#define IMU_GYRO_P_CHAN
Definition: imu_hbmini.c:45
struct Int32Rates gyro_unscaled
unscaled gyroscope measurements
Definition: imu.h:49
if(PrimarySpektrumState.SpektrumTimer)--PrimarySpektrumState.SpektrumTimer
#define FALSE
Definition: imu_chimu.h:141
#define IMU_ACCEL_Y_CHAN
Definition: imu_hbmini.c:51
struct Int32Vect3 accel_unscaled
unscaled accelerometer measurements
Definition: imu.h:50
#define IMU_GYRO_Q_CHAN
Definition: imu_hbmini.c:46
struct Imu imu
global IMU state
Definition: imu_aspirin2.c:47
#define IMU_GYRO_R_CHAN
Definition: imu_hbmini.c:47
#define IMU_ACCEL_Z_CHAN
Definition: imu_hbmini.c:52
uint16_t ADS8344_values[ADS8344_NB_CHANNELS]
Definition: ADS8344.c:39
volatile bool_t ADS8344_available
Definition: ADS8344.c:38
#define ImuMagEvent(_mag_handler)
Definition: imu_crista.h:75
int32_t q
in rad/s with INT32_RATE_FRAC
int32_t r
in rad/s with INT32_RATE_FRAC
#define IMU_ACCEL_X_CHAN
Definition: imu_hbmini.c:50

Definition at line 32 of file imu_crista.h.

#define ImuMagEvent (   _mag_handler)    {}

Definition at line 75 of file imu_crista.h.

Function Documentation

void imu_crista_arch_init ( void  )

Definition at line 58 of file imu_crista_arch.c.

References _VIC_ADDR, _VIC_CNTL, ADS8344_SS_IODIR, ADS8344_SS_PIN, ADS8344Unselect, channel, GPIOB, PINSEL1, SPI1_ISR(), SPI1_VIC_SLOT, SSP_CPHA, SSP_CPOL, SSP_DSS, SSP_FRF, SSP_LBM, SSP_MS, SSP_SCR, SSP_SOD, SSPCPSR, SSPCR0, SSPCR1, VIC_BIT, VIC_ENABLE, VIC_SPI1, VICIntEnable, and VICIntSelect.

Referenced by imu_impl_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

volatile bool_t ADS8344_available

Definition at line 38 of file ADS8344.c.

Referenced by ADS8344_init(), dma1_c4_irq_handler(), imu_impl_init(), and SPI1_ISR().

uint16_t ADS8344_values[ADS8344_NB_CHANNELS]

Definition at line 39 of file ADS8344.c.

Referenced by dma1_c4_irq_handler(), and read_values().