| LibDriver MPU9250 1.0.0 MPU9250 full function driver

driver_mpu9250_interface.h
Go to the documentation of this file.
1
37 #ifndef DRIVER_MPU9250_INTERFACE_H
38 #define DRIVER_MPU9250_INTERFACE_H
39
40 #include "driver_mpu9250.h"
41
42 #ifdef __cplusplus
43 extern "C"{
44 #endif
45
60 uint8_t mpu9250_interface_iic_init(void);
61
69 uint8_t mpu9250_interface_iic_deinit(void);
70
82 uint8_t mpu9250_interface_iic_read(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len);
83
95 uint8_t mpu9250_interface_iic_write(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len);
96
104 uint8_t mpu9250_interface_spi_init(void);
105
113 uint8_t mpu9250_interface_spi_deinit(void);
114
125 uint8_t mpu9250_interface_spi_read(uint8_t reg, uint8_t *buf, uint16_t len);
126
137 uint8_t mpu9250_interface_spi_write(uint8_t reg, uint8_t *buf, uint16_t len);
138
144 void mpu9250_interface_delay_ms(uint32_t ms);
145
151 void mpu9250_interface_debug_print(const char *const fmt, ...);
152
158 void mpu9250_interface_receive_callback(uint8_t type);
159
166 void mpu9250_interface_dmp_tap_callback(uint8_t count, uint8_t direction);
167
173 void mpu9250_interface_dmp_orient_callback(uint8_t orientation);
174
179 #ifdef __cplusplus
180 }
181 #endif
182
183 #endif
driver_mpu9250.h
driver mpu9250 header file
mpu9250_interface_dmp_orient_callback
void mpu9250_interface_dmp_orient_callback(uint8_t orientation)
interface dmp orient callback
Definition: driver_mpu9250_interface_template.c:277
mpu9250_interface_debug_print
void mpu9250_interface_debug_print(const char *const fmt,...)
interface print format data
Definition: driver_mpu9250_interface_template.c:164
mpu9250_interface_dmp_tap_callback
void mpu9250_interface_dmp_tap_callback(uint8_t count, uint8_t direction)
interface dmp tap callback
Definition: driver_mpu9250_interface_template.c:223
mpu9250_interface_spi_write
uint8_t mpu9250_interface_spi_write(uint8_t reg, uint8_t *buf, uint16_t len)
interface spi bus write
Definition: driver_mpu9250_interface_template.c:144
mpu9250_interface_iic_deinit
uint8_t mpu9250_interface_iic_deinit(void)
interface iic bus deinit
Definition: driver_mpu9250_interface_template.c:58
mpu9250_interface_iic_write
uint8_t mpu9250_interface_iic_write(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus write
Definition: driver_mpu9250_interface_template.c:90
mpu9250_interface_iic_read
uint8_t mpu9250_interface_iic_read(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus read
Definition: driver_mpu9250_interface_template.c:74
mpu9250_interface_iic_init
uint8_t mpu9250_interface_iic_init(void)
interface iic bus init
Definition: driver_mpu9250_interface_template.c:46
mpu9250_interface_spi_read
uint8_t mpu9250_interface_spi_read(uint8_t reg, uint8_t *buf, uint16_t len)
interface spi bus read
Definition: driver_mpu9250_interface_template.c:129
mpu9250_interface_spi_init
uint8_t mpu9250_interface_spi_init(void)
interface spi bus init
Definition: driver_mpu9250_interface_template.c:102
mpu9250_interface_receive_callback
void mpu9250_interface_receive_callback(uint8_t type)
interface receive callback
Definition: driver_mpu9250_interface_template.c:174
mpu9250_interface_delay_ms
void mpu9250_interface_delay_ms(uint32_t ms)
interface delay ms
Definition: driver_mpu9250_interface_template.c:154
mpu9250_interface_spi_deinit
uint8_t mpu9250_interface_spi_deinit(void)
interface spi bus deinit
Definition: driver_mpu9250_interface_template.c:114