48 #ifndef __DRV_MPU9250_H__ 49 #define __DRV_MPU9250_H__ 53 #include "nrf_drv_twi.h" 60 nrf_drv_twi_t
const * p_twi_instance;
61 nrf_drv_twi_config_t
const * p_twi_cfg;
90 int drv_mpu9250_write(
unsigned char slave_addr,
unsigned char reg_addr,
unsigned char length,
unsigned char const * p_data);
101 int drv_mpu9250_read(
unsigned char slave_addr,
unsigned char reg_addr,
unsigned char length,
unsigned char * p_data);
int drv_mpu9250_int_register(struct int_param_s *p_int_param)
Function for enabling and registering the MPU-9250 interrupt callback.
int drv_mpu9250_read(unsigned char slave_addr, unsigned char reg_addr, unsigned char length, unsigned char *p_data)
Function for reading a MPU-9250 register.
uint32_t drv_mpu9250_enable(bool enable)
Function for enabling or disabling the MPU-9250 driver.
int drv_mpu9250_write(unsigned char slave_addr, unsigned char reg_addr, unsigned char length, unsigned char const *p_data)
Function for writing to a MPU-9250 register.
int drv_mpu9250_ms_get(unsigned long *p_count)
Function for getting a timestamp in milliseconds.
uint32_t drv_mpu9250_init(drv_mpu9250_init_t *p_params)
Function for initializing the MPU-9250 driver.
TWI communication initialization struct.
Definition: drv_mpu9250.h:58