LibDriver MPU6050
Loading...
Searching...
No Matches
mpu6050 extern driver function

mpu6050 extern driver modules More...

Collaboration diagram for mpu6050 extern driver function:

Functions

uint8_t mpu6050_set_reg (mpu6050_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t mpu6050_get_reg (mpu6050_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

mpu6050 extern driver modules

Function Documentation

◆ mpu6050_get_reg()

uint8_t mpu6050_get_reg ( mpu6050_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to an mpu6050 handle structure
[in]regregister address
[out]*bufpointer to a data buffer
[in]lendata buffer length
Returns
status code
  • 0 success
  • 1 read failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 10628 of file driver_mpu6050.c.

◆ mpu6050_set_reg()

uint8_t mpu6050_set_reg ( mpu6050_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

set the chip register

Parameters
[in]*handlepointer to an mpu6050 handle structure
[in]regregister address
[in]*bufpointer to a data buffer
[in]lendata buffer length
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 10601 of file driver_mpu6050.c.