![]() |
BlueNinja BSP
0.5
Cerevo BlueNinja(CDP-TZ01B) Board Support Packageリファレンスマニュアル
|
9-axis sensor(InvenSense MPU-9250) driver for TZ10xx. [詳解]
#include <stdint.h>#include <stdbool.h>#include "TZ10xx.h"#include "PMU_TZ10xx.h"#include "GPIO_TZ10xx.h"#include "SPI_TZ10xx.h"#include "utils.h"#include "MPU-9250.h"列挙型 | |
| enum | MPU9250_STAT { MPU9250_STAT_NONE = 0, MPU9250_STAT_IDLE, MPU9250_STAT_MAESUREING } |
関数 | |
| bool | MPU9250_drv_init (TZ10XX_DRIVER_SPI *spi_drv) |
| Initialize MPU9250 driver. [詳解] | |
| bool | MPU9250_drv_start_maesure (MPU9250_BIT_GYRO_FS_SEL gyro_fs, MPU9250_BIT_ACCEL_FS_SEL accel_fs, MPU9250_BIT_DLPF_CFG dlpf_cfg, MPU9250_BIT_A_DLPFCFG a_dlpfcfg) |
| Start maesure. [詳解] | |
| bool | MPU9250_drv_stop_maesure (void) |
| Stop maesure. [詳解] | |
| bool | MPU9250_drv_read_gyro (MPU9250_gyro_val *gyro_val) |
| Read maesured gyro value. [詳解] | |
| bool | MPU9250_drv_read_accel (MPU9250_accel_val *accel_val) |
| Read maesured accel value. [詳解] | |
| bool | MPU9250_drv_read_temperature (MPU9250_temperature_val *temperature_val) |
| Read maesured temperature value. [詳解] | |
| bool | MPU9250_drv_read_magnetometer (MPU9250_magnetometer_val *magnetometer_val) |
| Read magnetometer value. [詳解] | |
9-axis sensor(InvenSense MPU-9250) driver for TZ10xx.
| bool MPU9250_drv_init | ( | TZ10XX_DRIVER_SPI * | spi_drv | ) |
Initialize MPU9250 driver.
| [in] | spi_drv | TZ10xx driver information. |
| true | Success. |
| false | Failed. |
| bool MPU9250_drv_read_accel | ( | MPU9250_accel_val * | accel_val | ) |
Read maesured accel value.
| [out] | accel_val | Read values. |
| true | Success. |
| false | Failed. |
| bool MPU9250_drv_read_gyro | ( | MPU9250_gyro_val * | gyro_val | ) |
Read maesured gyro value.
| [out] | gyro_val | Read values. |
| true | Success. |
| false | Failed. |
| bool MPU9250_drv_read_magnetometer | ( | MPU9250_magnetometer_val * | magnetometer_val | ) |
Read magnetometer value.
| [out] | magnetometer_val | Read values. |
| true | Success. |
| false | Failed. |
| bool MPU9250_drv_read_temperature | ( | MPU9250_temperature_val * | temperature_val | ) |
Read maesured temperature value.
| [out] | temperature_val | Read values. |
| true | Success. |
| false | Failed. |
| bool MPU9250_drv_start_maesure | ( | MPU9250_BIT_GYRO_FS_SEL | gyro_fs, |
| MPU9250_BIT_ACCEL_FS_SEL | accel_fs, | ||
| MPU9250_BIT_DLPF_CFG | dlpf_cfg, | ||
| MPU9250_BIT_A_DLPFCFG | a_dlpfcfg | ||
| ) |
Start maesure.
| [in] | gyro_fs | Gyro full scale select. |
| [in] | accel_fs | Accel full scale select. |
| [in] | dlpf_cfg | Gyro DLPF config. |
| [in] | a_dlpfcfg | Accel DLPF config. |
| true | Success. |
| false | Failed. |
| bool MPU9250_drv_stop_maesure | ( | void | ) |
Stop maesure.
| true | Success. |
| false | Failed. |