![]() |
LibDriver MPU6500
|
mpu6500 handle structure definition More...
#include <driver_mpu6500.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) |
| uint8_t(* | spi_init )(void) |
| uint8_t(* | spi_deinit )(void) |
| uint8_t(* | spi_read )(uint8_t reg, uint8_t *buf, uint16_t len) |
| uint8_t(* | spi_write )(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 | iic_spi |
| uint8_t | dmp_inited |
| uint16_t | orient |
| uint16_t | mask |
| uint8_t | buf [1024] |
mpu6500 handle structure definition
Definition at line 451 of file driver_mpu6500.h.
| uint8_t buf[1024] |
inner buffer
Definition at line 472 of file driver_mpu6500.h.
| void(* debug_print) (const char *const fmt,...) |
point to a debug_print function address
Definition at line 463 of file driver_mpu6500.h.
| void(* delay_ms) (uint32_t ms) |
point to a delay_ms function address
Definition at line 462 of file driver_mpu6500.h.
| uint8_t dmp_inited |
dmp inited flag
Definition at line 469 of file driver_mpu6500.h.
| void(* dmp_orient_callback) (uint8_t orientation) |
point to a dmp_orient_callback function address
Definition at line 466 of file driver_mpu6500.h.
| void(* dmp_tap_callback) (uint8_t count, uint8_t direction) |
point to a dmp_tap_callback function address
Definition at line 465 of file driver_mpu6500.h.
| uint8_t iic_addr |
iic device address
Definition at line 453 of file driver_mpu6500.h.
| uint8_t(* iic_deinit) (void) |
point to an iic_deinit function address
Definition at line 455 of file driver_mpu6500.h.
| uint8_t(* iic_init) (void) |
point to an iic_init function address
Definition at line 454 of file driver_mpu6500.h.
| uint8_t(* iic_read) (uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len) |
point to an iic_read function address
Definition at line 456 of file driver_mpu6500.h.
| uint8_t iic_spi |
iic spi interface type
Definition at line 468 of file driver_mpu6500.h.
| uint8_t(* iic_write) (uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len) |
point to an iic_write function address
Definition at line 457 of file driver_mpu6500.h.
| uint8_t inited |
inited flag
Definition at line 467 of file driver_mpu6500.h.
| uint16_t mask |
mask
Definition at line 471 of file driver_mpu6500.h.
| uint16_t orient |
orient
Definition at line 470 of file driver_mpu6500.h.
| void(* receive_callback) (uint8_t type) |
point to a receive_callback function address
Definition at line 464 of file driver_mpu6500.h.
| uint8_t(* spi_deinit) (void) |
point to a spi_deinit function address
Definition at line 459 of file driver_mpu6500.h.
| uint8_t(* spi_init) (void) |
point to a spi_init function address
Definition at line 458 of file driver_mpu6500.h.
| uint8_t(* spi_read) (uint8_t reg, uint8_t *buf, uint16_t len) |
point to a spi_read function address
Definition at line 460 of file driver_mpu6500.h.
| uint8_t(* spi_write) (uint8_t reg, uint8_t *buf, uint16_t len) |
point to a spi_write function address
Definition at line 461 of file driver_mpu6500.h.