| LibDriver MPU9250 1.0.0 MPU9250 full function driver

Functions
mpu9250 extern driver function
mpu9250 driver function

mpu9250 extern driver modules More...

## Functions
uint8_t | mpu9250_set_reg (mpu9250_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
| set the chip register More...
uint8_t | mpu9250_get_reg (mpu9250_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
| get the chip register More...

## Detailed Description

mpu9250 extern driver modules

## Function Documentation

## ◆ mpu9250_get_reg()

uint8_t mpu9250_get_reg | ( | mpu9250_handle_t * | handle,
|  | uint8_t | reg,
|  | uint8_t * | buf,
|  | uint16_t | len
| ) |  |

get the chip register

Parameters

  [in] | *handle | points to an mpu9250 handle structure
  [in] | reg | is the register address
  [out] | *buf | points to a data buffer
  [in] | len | is the data buffer length

Returns
  status code
  - 0 success
  - 1 read failed
  - 2 handle is NULL
  - 3 handle is not initialized

Note
  none

Definition at line 13061 of file driver_mpu9250.c.

## ◆ mpu9250_set_reg()

uint8_t mpu9250_set_reg | ( | mpu9250_handle_t * | handle,
|  | uint8_t | reg,
|  | uint8_t * | buf,
|  | uint16_t | len
| ) |  |

set the chip register

Parameters

  [in] | *handle | points to an mpu9250 handle structure
  [in] | reg | is the register address
  [in] | *buf | points to a data buffer
  [in] | len | is the data buffer length

Returns
  status code
  - 0 success
  - 1 write failed
  - 2 handle is NULL
  - 3 handle is not initialized

Note
  none

Definition at line 13034 of file driver_mpu9250.c.