![]() |
![]() |
TI-RTOS Drivers
tidrivers_full_2_20_01_10
|
Driver for the InvenSense MPU9250 Motion Processing Unit.
============================================================================
#include "stdint.h"
#include "stdbool.h"
Go to the source code of this file.
Macros | |
#define | ACC_RANGE_2G 0 |
#define | ACC_RANGE_4G 1 |
#define | ACC_RANGE_8G 2 |
#define | ACC_RANGE_16G 3 |
#define | ACC_RANGE_INVALID 0xFF |
#define | MPU_AX_GYR 0x07 |
#define | MPU_AX_ACC 0x38 |
#define | MPU_AX_MAG 0x40 |
#define | MPU_AX_ALL 0x7F |
#define | MPU_DATA_READY 0x01 |
#define | MPU_MOVEMENT 0x40 |
#define | MAG_STATUS_OK 0x00 |
#define | MAG_READ_ST_ERR 0x01 |
#define | MAG_DATA_NOT_RDY 0x02 |
#define | MAG_OVERFLOW 0x03 |
#define | MAG_READ_DATA_ERR 0x04 |
#define | MAG_BYPASS_FAIL 0x05 |
#define | MAG_NO_POWER 0x06 |
Typedefs | |
typedef void(* | SensorMpu9250CallbackFn_t) (void) |
Functions | |
bool | SensorMpu9250_init (void) |
bool | SensorMpu9250_reset (void) |
void | SensorMpu9250_registerCallback (SensorMpu9250CallbackFn_t) |
bool | SensorMpu9250_test (void) |
void | SensorMpu9250_powerOn (void) |
void | SensorMpu9250_powerOff (void) |
bool | SensorMpu9250_powerIsOn (void) |
void | SensorMpu9250_enable (uint16_t config) |
bool | SensorMpu9250_enableWom (uint8_t threshold) |
uint8_t | SensorMpu9250_irqStatus (void) |
bool | SensorMpu9250_accSetRange (uint8_t range) |
uint8_t | SensorMpu9250_accReadRange (void) |
bool | SensorMpu9250_accRead (uint16_t *rawData) |
float | SensorMpu9250_accConvert (int16_t rawValue) |
bool | SensorMpu9250_gyroRead (uint16_t *rawData) |
float | SensorMpu9250_gyroConvert (int16_t rawValue) |
bool | SensorMpu9250_magTest (void) |
uint8_t | SensorMpu9250_magRead (int16_t *pRawData) |
uint8_t | SensorMpu9250_magStatus (void) |
void | SensorMpu9250_magReset (void) |
#define ACC_RANGE_2G 0 |
#define ACC_RANGE_4G 1 |
#define ACC_RANGE_8G 2 |
#define ACC_RANGE_16G 3 |
#define ACC_RANGE_INVALID 0xFF |
#define MPU_AX_GYR 0x07 |
#define MPU_AX_ACC 0x38 |
#define MPU_AX_MAG 0x40 |
#define MPU_AX_ALL 0x7F |
#define MPU_DATA_READY 0x01 |
#define MPU_MOVEMENT 0x40 |
#define MAG_STATUS_OK 0x00 |
#define MAG_READ_ST_ERR 0x01 |
#define MAG_DATA_NOT_RDY 0x02 |
#define MAG_OVERFLOW 0x03 |
#define MAG_READ_DATA_ERR 0x04 |
#define MAG_BYPASS_FAIL 0x05 |
#define MAG_NO_POWER 0x06 |
typedef void(* SensorMpu9250CallbackFn_t) (void) |
bool SensorMpu9250_init | ( | void | ) |
bool SensorMpu9250_reset | ( | void | ) |
void SensorMpu9250_registerCallback | ( | SensorMpu9250CallbackFn_t | ) |
bool SensorMpu9250_test | ( | void | ) |
void SensorMpu9250_powerOn | ( | void | ) |
void SensorMpu9250_powerOff | ( | void | ) |
bool SensorMpu9250_powerIsOn | ( | void | ) |
void SensorMpu9250_enable | ( | uint16_t | config | ) |
bool SensorMpu9250_enableWom | ( | uint8_t | threshold | ) |
uint8_t SensorMpu9250_irqStatus | ( | void | ) |
bool SensorMpu9250_accSetRange | ( | uint8_t | range | ) |
uint8_t SensorMpu9250_accReadRange | ( | void | ) |
bool SensorMpu9250_accRead | ( | uint16_t * | rawData | ) |
float SensorMpu9250_accConvert | ( | int16_t | rawValue | ) |
bool SensorMpu9250_gyroRead | ( | uint16_t * | rawData | ) |
float SensorMpu9250_gyroConvert | ( | int16_t | rawValue | ) |
bool SensorMpu9250_magTest | ( | void | ) |
uint8_t SensorMpu9250_magRead | ( | int16_t * | pRawData | ) |
uint8_t SensorMpu9250_magStatus | ( | void | ) |
void SensorMpu9250_magReset | ( | void | ) |