diff options
Diffstat (limited to 'include/motion_sense.h')
-rw-r--r-- | include/motion_sense.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/motion_sense.h b/include/motion_sense.h index 9f971bb184..bdbd7b238c 100644 --- a/include/motion_sense.h +++ b/include/motion_sense.h @@ -26,6 +26,11 @@ enum sensor_state { #define SENSOR_ACTIVE_S0_S3 (SENSOR_ACTIVE_S3 | SENSOR_ACTIVE_S0) #define SENSOR_ACTIVE_S0_S3_S5 (SENSOR_ACTIVE_S0_S3 | SENSOR_ACTIVE_S5) +struct motion_data_t { + int odr; + int range; +}; + struct motion_sensor_t { /* RO fields */ uint32_t active_mask; @@ -40,12 +45,10 @@ struct motion_sensor_t { const matrix_3x3_t *rot_standard_ref; /* Default configuration parameters, RO only */ - int default_odr; - int default_range; + struct motion_data_t default_config; /* Run-Time configuration parameters */ - int odr; - int range; + struct motion_data_t runtime_config; /* state parameters */ enum sensor_state state; |