![]() |
Core2 for AWS IoT EduKit BSP 1.5.1
|
Functions | |
| int | MPU6886_Init (void) |
| Initializes the MPU6886 over I2C. More... | |
| void | MPU6886_GetAccelAdc (int16_t *ax, int16_t *ay, int16_t *az) |
| Retrieves the accelerometer measurements from the 16-bit ADC on the MPU6886. More... | |
| void | MPU6886_GetGyroAdc (int16_t *gx, int16_t *gy, int16_t *gz) |
| Retrieves the gyroscope measurements from the 16-bit ADC on the MPU6886. More... | |
| void | MPU6886_GetTempAdc (int16_t *t) |
| Retrieves the internal temperature measurement from the 16-bit ADC on the MPU6886. More... | |
| float | MPU6886_GetGyroRes (gyro_scale_t scale) |
| Retrieves the resolution of the gyroscope measurements on the MPU6886. More... | |
| float | MPU6886_GetAccRes (acc_scale_t scale) |
| Retrieves the resolution of the accelerometer measurements on the MPU6886. More... | |
| void | MPU6886_SetGyroFSR (gyro_scale_t scale) |
| Sets the full-scale range of the gyroscope on the MPU6886. More... | |
| void | MPU6886_SetAccelFSR (acc_scale_t scale) |
| Sets the full-scale range of the accelerometer on the MPU6886. More... | |
| void | MPU6886_GetAccelData (float *ax, float *ay, float *az) |
| Retrieves the accelerometer measurements from the MPU6886. More... | |
| void | MPU6886_GetGyroData (float *gx, float *gy, float *gz) |
| Retrieves the gyroscope measurements from the MPU6886. More... | |
| void | MPU6886_GetTempData (float *t) |
| Retrieves the internal temperature measurement from the MPU6886. More... | |
| int MPU6886_Init | ( | void | ) |
Initializes the MPU6886 over I2C.
| void MPU6886_GetAccelAdc | ( | int16_t * | ax, |
| int16_t * | ay, | ||
| int16_t * | az | ||
| ) |
Retrieves the accelerometer measurements from the 16-bit ADC on the MPU6886.
| [out] | ax | The 16-bit accelerometer measurement in the X direction. |
| [out] | ay | The 16-bit accelerometer measurement in the Y direction. |
| [out] | az | The 16-bit accelerometer measurement in the Z direction. |
| void MPU6886_GetGyroAdc | ( | int16_t * | gx, |
| int16_t * | gy, | ||
| int16_t * | gz | ||
| ) |
Retrieves the gyroscope measurements from the 16-bit ADC on the MPU6886.
| [out] | gx | The 16-bit accelerometer measurement in the X direction. |
| [out] | gy | The 16-bit accelerometer measurement in the Y direction. |
| [out] | gz | The 16-bit accelerometer measurement in the Z direction. |
| void MPU6886_GetTempAdc | ( | int16_t * | t | ) |
Retrieves the internal temperature measurement from the 16-bit ADC on the MPU6886.
| [out] | t | Temperature of the MPU6886 passed through the 16-bit ADC. |
| float MPU6886_GetGyroRes | ( | gyro_scale_t | scale | ) |
Retrieves the resolution of the gyroscope measurements on the MPU6886.
| [in] | scale | The degrees per second scale of measurement. |
| float MPU6886_GetAccRes | ( | acc_scale_t | scale | ) |
Retrieves the resolution of the accelerometer measurements on the MPU6886.
| [in] | scale | The G's per second scale of measurement. |
| void MPU6886_SetGyroFSR | ( | gyro_scale_t | scale | ) |
Sets the full-scale range of the gyroscope on the MPU6886.
| [in] | scale | The degrees per second scale of measurement. |
| void MPU6886_SetAccelFSR | ( | acc_scale_t | scale | ) |
Sets the full-scale range of the accelerometer on the MPU6886.
| [in] | scale | The G's per second scale of measurement. |
| void MPU6886_GetAccelData | ( | float * | ax, |
| float * | ay, | ||
| float * | az | ||
| ) |
Retrieves the accelerometer measurements from the MPU6886.
Example:
Get the accelerometer values for the X, Y, and Z direction.
| [out] | ax | The 16-bit accelerometer measurement in the X direction. |
| [out] | ay | The 16-bit accelerometer measurement in the Y direction. |
| [out] | az | The 16-bit accelerometer measurement in the Z direction. |
| void MPU6886_GetGyroData | ( | float * | roll, |
| float * | yaw, | ||
| float * | pitch | ||
| ) |
Retrieves the gyroscope measurements from the MPU6886.
Example:
Get the gyroscope values for the Roll, Yaw, and Pitch direction.
| [out] | roll | The 16-bit gyroscope roll measurement. |
| [out] | yaw | The 16-bit gyroscope yaw measurement. |
| [out] | pitch | The 16-bit gyroscope pitch measurement. |
| void MPU6886_GetTempData | ( | float * | t | ) |
Retrieves the internal temperature measurement from the MPU6886.
Example:
Get the temperature reading of the MPU6886 temperature sensor.
| [out] | t | Temperature of the MPU6886. |