NinjaFlight
|
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <platform.h>
#include "common/axis.h"
#include "common/maths.h"
#include "system.h"
#include "exti.h"
#include "gpio.h"
#include "bus_spi.h"
#include "sensor.h"
#include "accgyro.h"
#include "accgyro_mpu.h"
#include "accgyro_mpu6500.h"
#include "accgyro_spi_mpu6500.h"
Macros | |
#define | DISABLE_MPU6500 GPIO_SetBits(MPU6500_CS_GPIO, MPU6500_CS_PIN) |
#define | ENABLE_MPU6500 GPIO_ResetBits(MPU6500_CS_GPIO, MPU6500_CS_PIN) |
Functions | |
bool | mpu6500WriteRegister (uint8_t reg, uint8_t data) |
bool | mpu6500ReadRegister (uint8_t reg, uint8_t length, uint8_t *data) |
bool | mpu6500SpiDetect (void) |
bool | mpu6500SpiAccDetect (acc_t *accel) |
bool | mpu6500SpiGyroDetect (gyro_t *gyr) |
#define DISABLE_MPU6500 GPIO_SetBits(MPU6500_CS_GPIO, MPU6500_CS_PIN) |
#define ENABLE_MPU6500 GPIO_ResetBits(MPU6500_CS_GPIO, MPU6500_CS_PIN) |
bool mpu6500ReadRegister | ( | uint8_t | reg, |
uint8_t | length, | ||
uint8_t * | data | ||
) |
bool mpu6500SpiAccDetect | ( | acc_t * | accel | ) |
bool mpu6500SpiDetect | ( | void | ) |
bool mpu6500SpiGyroDetect | ( | gyro_t * | gyr | ) |
bool mpu6500WriteRegister | ( | uint8_t | reg, |
uint8_t | data | ||
) |