| ICM45605 eMD driver Documentation of the eMD Driver API

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

inv_imu_edmp_wearable.h
Go to the documentation of this file.
1 /*
2 *
3 * Copyright (c) [2020] by InvenSense, Inc.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
11 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
13 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
14 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 *
16 */
17
25 #ifndef _INV_IMU_WEARABLE_H_
26 #define _INV_IMU_WEARABLE_H_
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
32 #include "imu/inv_imu_driver.h"
33
36 typedef struct {
37 /* B2S */
38 uint32_t b2s_mounting_matrix;
42 } inv_imu_edmp_b2s_parameters_t;
43
48 int inv_imu_edmp_b2s_init(inv_imu_device_t *s);
49
55 int inv_imu_edmp_b2s_get_parameters(inv_imu_device_t *s, inv_imu_edmp_b2s_parameters_t *b2s_params);
56
62 int inv_imu_edmp_b2s_set_parameters(inv_imu_device_t * s,
63 const inv_imu_edmp_b2s_parameters_t *b2s_params);
64
69 int inv_imu_edmp_b2s_enable(inv_imu_device_t *s);
70
75 int inv_imu_edmp_b2s_disable(inv_imu_device_t *s);
76
77 #ifdef __cplusplus
78 }
79 #endif
80
81 #endif /* _INV_IMU_WEARABLE_H_ */
82
inv_imu_driver.h
inv_imu_edmp_b2s_set_parameters
int inv_imu_edmp_b2s_set_parameters(inv_imu_device_t *s, const inv_imu_edmp_b2s_parameters_t *b2s_params)
Set new B2S configuration settings.
inv_imu_edmp_b2s_get_parameters
int inv_imu_edmp_b2s_get_parameters(inv_imu_device_t *s, inv_imu_edmp_b2s_parameters_t *b2s_params)
Get current B2S configuration settings.
inv_imu_edmp_b2s_init
int inv_imu_edmp_b2s_init(inv_imu_device_t *s)
Initialize B2S algorithm.
inv_imu_edmp_b2s_enable
int inv_imu_edmp_b2s_enable(inv_imu_device_t *s)
Enable APEX algorithm B2S.
inv_imu_edmp_b2s_disable
int inv_imu_edmp_b2s_disable(inv_imu_device_t *s)
Disable APEX algorithm B2S.
inv_imu_device_t
Basic driver configuration structure.
Definition: inv_imu_driver.h:43
inv_imu_edmp_b2s_parameters_t
IMU B2S parameters definition.
Definition: inv_imu_edmp_wearable.h:36
inv_imu_edmp_b2s_parameters_t::b2s_mounting_matrix
uint32_t b2s_mounting_matrix
Specifies mounting matrix to be applied to B2S raw data Set bit 2 : swap X/Y ; flip Z Set bit 1 : fli...
Definition: inv_imu_edmp_wearable.h:38