NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
accgyro_spi_mpu6000.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MPU6000_CONFIG   0x1A
 
#define BITS_DLPF_CFG_256HZ   0x00
 
#define BITS_DLPF_CFG_188HZ   0x01
 
#define BITS_DLPF_CFG_98HZ   0x02
 
#define BITS_DLPF_CFG_42HZ   0x03
 
#define GYRO_SCALE_FACTOR   0.00053292f
 
#define MPU6000_WHO_AM_I_CONST   (0x68)
 

Functions

bool mpu6000SpiDetect (void)
 
bool mpu6000SpiAccDetect (acc_t *acc)
 
bool mpu6000SpiGyroDetect (gyro_t *gyro)
 
bool mpu6000WriteRegister (uint8_t reg, uint8_t data)
 
bool mpu6000ReadRegister (uint8_t reg, uint8_t length, uint8_t *data)
 

Macro Definition Documentation

#define BITS_DLPF_CFG_188HZ   0x01
#define BITS_DLPF_CFG_256HZ   0x00
#define BITS_DLPF_CFG_42HZ   0x03
#define BITS_DLPF_CFG_98HZ   0x02
#define GYRO_SCALE_FACTOR   0.00053292f
#define MPU6000_CONFIG   0x1A
#define MPU6000_WHO_AM_I_CONST   (0x68)

Function Documentation

bool mpu6000ReadRegister ( uint8_t  reg,
uint8_t  length,
uint8_t *  data 
)

Here is the call graph for this function:

bool mpu6000SpiAccDetect ( acc_t acc)

Here is the call graph for this function:

bool mpu6000SpiDetect ( void  )

Here is the call graph for this function:

bool mpu6000SpiGyroDetect ( gyro_t gyro)

Here is the call graph for this function:

bool mpu6000WriteRegister ( uint8_t  reg,
uint8_t  data 
)

Here is the call graph for this function: