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

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

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

Go to the source code of this file.

Classes

class  ICM20948_SPI
 

Macros

#define DIR_READ   0x80
 
#define DIR_WRITE   0x00
 
#define ICM20948_LOW_SPI_BUS_SPEED   1000*1000
 
#define ICM20948_HIGH_SPI_BUS_SPEED   20*1000*1000
 

Functions

device::DeviceICM20948_SPI_interface (int bus, uint32_t cs)
 

Detailed Description

Driver for the Invensense ICM20948 connected via SPI.

Author
Andrew Tridgell
Pat Hickey
David sidrane

Definition in file icm20948_spi.cpp.

Macro Definition Documentation

◆ DIR_READ

#define DIR_READ   0x80

Definition at line 47 of file icm20948_spi.cpp.

Referenced by ICM20948_SPI::read().

◆ DIR_WRITE

#define DIR_WRITE   0x00

Definition at line 48 of file icm20948_spi.cpp.

Referenced by ICM20948_SPI::write().

◆ ICM20948_HIGH_SPI_BUS_SPEED

#define ICM20948_HIGH_SPI_BUS_SPEED   20*1000*1000

Definition at line 60 of file icm20948_spi.cpp.

Referenced by ICM20948_SPI::set_bus_frequency().

◆ ICM20948_LOW_SPI_BUS_SPEED

#define ICM20948_LOW_SPI_BUS_SPEED   1000*1000

Definition at line 59 of file icm20948_spi.cpp.

Referenced by ICM20948_SPI::set_bus_frequency().

Function Documentation

◆ ICM20948_SPI_interface()

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

Definition at line 83 of file icm20948_spi.cpp.