![]() |
LibDriver MPU6050
1.0.0
MPU6050 full-featured driver
|
mpu6050 handle structure definition More...
#include <driver_mpu6050.h>
Data Fields | |
uint8_t | iic_addr |
uint8_t(* | iic_init )(void) |
uint8_t(* | iic_deinit )(void) |
uint8_t(* | iic_read )(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len) |
uint8_t(* | iic_write )(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len) |
void(* | delay_ms )(uint32_t ms) |
void(* | debug_print )(const char *const fmt,...) |
void(* | receive_callback )(uint8_t type) |
void(* | dmp_tap_callback )(uint8_t count, uint8_t direction) |
void(* | dmp_orient_callback )(uint8_t orientation) |
uint8_t | inited |
uint8_t | dmp_inited |
uint16_t | orient |
uint16_t | mask |
uint8_t | buf [1024] |
mpu6050 handle structure definition
uint8_t buf[1024] |
inner buffer
void(* debug_print) (const char *const fmt,...) |
point to a debug_print function address
void(* delay_ms) (uint32_t ms) |
point to a delay_ms function address
uint8_t dmp_inited |
dmp inited flag
void(* dmp_orient_callback) (uint8_t orientation) |
point to a dmp_orient_callback function address
void(* dmp_tap_callback) (uint8_t count, uint8_t direction) |
point to a dmp_tap_callback function address
uint8_t iic_addr |
iic device address
uint8_t(* iic_deinit) (void) |
point to an iic_deinit function address
uint8_t(* iic_init) (void) |
point to an iic_init function address
uint8_t(* iic_read) (uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len) |
point to an iic_read function address
uint8_t(* iic_write) (uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len) |
point to an iic_write function address
uint8_t inited |
inited flag
uint16_t mask |
mask
uint16_t orient |
orient
void(* receive_callback) (uint8_t type) |
point to a receive_callback function address