NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
accgyro_mpu.c File Reference
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <platform.h>
#include "build_config.h"
#include "debug.h"
#include "common/maths.h"
#include "nvic.h"
#include "system.h"
#include "gpio.h"
#include "exti.h"
#include "bus_i2c.h"
#include "gyro_sync.h"
#include "sensor.h"
#include "accgyro.h"
#include "accgyro_mpu3050.h"
#include "accgyro_mpu6050.h"
#include "accgyro_mpu6500.h"
#include "accgyro_spi_mpu6000.h"
#include "accgyro_spi_mpu6500.h"
#include "accgyro_mpu.h"
Include dependency graph for accgyro_mpu.c:

Macros

#define MPU_ADDRESS   0x68
 

Functions

mpuDetectionResult_tdetectMpu (const extiConfig_t *configToUse)
 
void MPU_DATA_READY_EXTI_Handler (void)
 
void configureMPUDataReadyInterruptHandling (void)
 
void mpuIntExtiInit (void)
 
bool mpuAccRead (int16_t *accData)
 
bool mpuGyroRead (int16_t *gyroADC)
 
bool mpuIsDataReady (void)
 

Variables

mpuDetectionResult_t mpuDetectionResult
 
mpuConfiguration_t mpuConfiguration
 

Macro Definition Documentation

#define MPU_ADDRESS   0x68

Function Documentation

void configureMPUDataReadyInterruptHandling ( void  )

Here is the call graph for this function:

mpuDetectionResult_t* detectMpu ( const extiConfig_t configToUse)

Here is the call graph for this function:

void MPU_DATA_READY_EXTI_Handler ( void  )

Here is the call graph for this function:

bool mpuAccRead ( int16_t *  accData)
bool mpuGyroRead ( int16_t *  gyroADC)
void mpuIntExtiInit ( void  )

Here is the call graph for this function:

bool mpuIsDataReady ( void  )

Variable Documentation

mpuConfiguration_t mpuConfiguration
mpuDetectionResult_t mpuDetectionResult