|
Contiki 3.x
|
Driver for the Sensortag-CC26XX Invensense MPU9250 motion processing unit. More...
#include "contiki-conf.h"#include "lib/sensors.h"#include "mpu-9250-sensor.h"#include "sys/rtimer.h"#include "sensor-common.h"#include "board-i2c.h"#include "ti-lib.h"#include <stdint.h>#include <string.h>#include <stdio.h>#include <math.h>Go to the source code of this file.
Functions | |
| static void | sensor_sleep (void) |
| Place the MPU in low power mode. | |
| static void | sensor_wakeup (void) |
| Exit low power mode. | |
| static void | select_axes (void) |
| Select gyro and accelerometer axes. | |
| static bool | acc_set_range (uint8_t new_range) |
| Set the range of the accelerometer. More... | |
| static uint8_t | int_status (void) |
| Check whether a data or wake on motion interrupt has occurred. More... | |
| static void | enable_sensor (uint16_t axes) |
| Enable the MPU. More... | |
| static bool | acc_read (uint16_t *data) |
| Read data from the accelerometer - X, Y, Z - 3 words. More... | |
| static bool | gyro_read (uint16_t *data) |
| Read data from the gyroscope - X, Y, Z - 3 words. More... | |
| static float | acc_convert (int16_t raw_data) |
| Convert accelerometer raw reading to a value in G. More... | |
| static float | gyro_convert (int16_t raw_data) |
| Convert gyro raw reading to a value in deg/sec. More... | |
| static int | value (int type) |
| Returns a reading from the sensor. More... | |
| static int | configure (int type, int enable) |
| Configuration function for the MPU9250 sensor. More... | |
| static int | status (int type) |
| Returns the status of the sensor. More... | |
Driver for the Sensortag-CC26XX Invensense MPU9250 motion processing unit.
Definition in file mpu-9250-sensor.c.
1.8.6