MPU-9250 motion sensor.
More...
MPU-9250 motion sensor.
uint32_t drv_mpu9250_enable |
( |
bool |
enable | ) |
|
Function to enable/disable the mpu9250 driver.
- Parameters
-
[in] | enable | Enables the device. |
- Return values
-
Function for initializing the mpu9250 driver.
- Parameters
-
[in] | p_params | Pointer to the init paramter structure. |
- Return values
-
int drv_mpu9250_int_register |
( |
struct int_param_s * |
p_int_param | ) |
|
Function for enabling and registering the mpu9250 interrupt calback.
- Parameters
-
[in] | int_param | Pointer to the interrup parameter structure. |
- Return values
-
int drv_mpu9250_ms_get |
( |
unsigned long * |
p_count | ) |
|
Function for getting a timestamp in milliseconds.
- Parameters
-
[out] | p_count | Pointer to the timestamp. |
- Return values
-
int drv_mpu9250_read |
( |
unsigned char |
slave_addr, |
|
|
unsigned char |
reg_addr, |
|
|
unsigned char |
length, |
|
|
unsigned char * |
p_data |
|
) |
| |
Function for reading a mpu9250 register.
- Parameters
-
[in] | slave_addr | Slave address on the TWI bus. |
[in] | reg_addr | Register address to read. |
[in] | length | Length of the data to read. |
[out] | data | Pointer to where the data should be read. |
- Return values
-
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 mpu9250 register.
- Parameters
-
[in] | slave_addr | Slave address on the TWI bus. |
[in] | reg_addr | Register address to write. |
[in] | length | Length of the data to write. |
[in] | data | Pointer to the data to write. |
- Return values
-