Hardware Abstraction Layer for FreeRTOS
mpu9250.h File Reference
#include <stdint.h>
#include <spi.h>
#include <vec.h>
#include <accel.h>
#include <gyro.h>
Include dependency graph for mpu9250.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mpu9250_accel
 
struct  mpu9250_gyro
 
struct  mpu9250
 
struct  mpu9250_vector
 

Macros

#define MPU_GRAVITY   16384
 
#define MPU9250_ADDDEV(id)
 
#define MPU9250_ID(id)   HAL_GET_ID(hal, mpu9250, mpu9250_##id)
 

Functions

struct mpu9250mpu9250_init (uint32_t index, struct spi *spi, uint8_t cs, uint16_t gpio, TickType_t waittime)
 
int32_t mpu9250_deinit (struct mpu9250 *mpu)
 
int32_t mpu9250_reset (struct mpu9250 *mpu, TickType_t waittime)
 
int32_t mpu9250_getAccel (struct mpu9250 *mpu, struct mpu9250_vector *vec, TickType_t waittime)
 
int32_t mpu9250_getGyro (struct mpu9250 *mpu, struct mpu9250_vector *vec, TickType_t waittime)