PX4 Firmware
PX4 Autopilot Software http://px4.io
mpu9250_spi.cpp File Reference

Driver for the Invensense MPU9250 connected via SPI. More...

#include <drivers/device/spi.h>
#include "mpu9250.h"
Include dependency graph for mpu9250_spi.cpp:

Go to the source code of this file.

Classes

class  MPU9250_SPI
 

Macros

#define DIR_READ   0x80
 
#define DIR_WRITE   0x00
 
#define MPU9250_LOW_SPI_BUS_SPEED   1000*1000
 
#define MPU9250_HIGH_SPI_BUS_SPEED   20*1000*1000
 

Functions

device::DeviceMPU9250_SPI_interface (int bus, uint32_t cs)
 

Detailed Description

Driver for the Invensense MPU9250 connected via SPI.

Author
Andrew Tridgell
Pat Hickey
David sidrane

Definition in file mpu9250_spi.cpp.

Macro Definition Documentation

◆ DIR_READ

#define DIR_READ   0x80

Definition at line 47 of file mpu9250_spi.cpp.

Referenced by MPU9250_SPI::read().

◆ DIR_WRITE

#define DIR_WRITE   0x00

Definition at line 48 of file mpu9250_spi.cpp.

Referenced by MPU9250_SPI::write().

◆ MPU9250_HIGH_SPI_BUS_SPEED

#define MPU9250_HIGH_SPI_BUS_SPEED   20*1000*1000

Definition at line 60 of file mpu9250_spi.cpp.

Referenced by MPU9250_SPI::set_bus_frequency().

◆ MPU9250_LOW_SPI_BUS_SPEED

#define MPU9250_LOW_SPI_BUS_SPEED   1000*1000

Definition at line 59 of file mpu9250_spi.cpp.

Referenced by MPU9250_SPI::set_bus_frequency().

Function Documentation

◆ MPU9250_SPI_interface()

device::Device* MPU9250_SPI_interface ( int  bus,
uint32_t  cs 
)

Definition at line 83 of file mpu9250_spi.cpp.