minor changes

This commit is contained in:
Gunar Schorcht 2018-01-19 07:33:16 +01:00
parent 25d03c9a6a
commit fecdf9d419

View file

@ -300,7 +300,7 @@ The LSM303D supports two dedicated interrupt signals **```INT1```** and **```INT
### Data interrupts (data ready and FIFO status) ### Data interrupts (data ready and FIFO status)
Following sources can generate an data interrupts: Following sources can generate data interrupts:
Interrupt source | Interrupt Signals | Driver symbol Interrupt source | Interrupt Signals | Driver symbol
:-----------------|:-------------|:---------------- :-----------------|:-------------|:----------------
@ -341,7 +341,7 @@ void int2_handler ()
### Inertial event interrupts ### Inertial event interrupts
Inertial interrupt generators allow to generate interrupts when certain inertial event occurs (event interrupts), that is, the acceleration of defined axes is higher or lower than a defined threshold. If activated, the acceleration of each axis is compared with a defined threshold to check whether it is below or above the threshold. The results of all activated comparisons are then combined OR or AND to generate the interrupt signal. Inertial interrupt generators allow to generate interrupts when certain inertial events occur (event interrupts), that is, the acceleration of defined axes is higher or lower than a defined threshold. If activated, the acceleration of each axis is compared with a defined threshold to check whether it is below or above the threshold. The results of all activated comparisons are then combined OR or AND to generate the interrupt signal.
The configuration of the threshold, the activated comparisons and the selected AND/OR combination allows to recognize special situations: The configuration of the threshold, the activated comparisons and the selected AND/OR combination allows to recognize special situations:
@ -349,9 +349,9 @@ The configuration of the threshold, the activated comparisons and the selected A
- **Free fall detection** refers the special condition that the acceleration measured along all the axes goes to zero (```lsm303d_and```). - **Free fall detection** refers the special condition that the acceleration measured along all the axes goes to zero (```lsm303d_and```).
- **6D/4D orientation detection** refers to the special condition that the measured acceleration along certain axes is above and along the other axes is below the threshold which indicates a particular orientation (```lsm303d_6d_movement```, ```lsm303d_6d_position```, ```lsm303d_4d_movement```, ```lsm303d_4d_position```). - **6D/4D orientation detection** refers to the special condition that the measured acceleration along certain axes is above and along the other axes is below the threshold which indicates a particular orientation (```lsm303d_6d_movement```, ```lsm303d_6d_position```, ```lsm303d_4d_movement```, ```lsm303d_4d_position```).
Inertial event interrupts can be configured with the ```lsm303d_get_int_event_config``` function. This function requires as parameters the configuration of type ```lsm303d_int_event_config_t``` and the interrupt generator to be used for inertial event interrupts. Inertial event interrupts can be configured with the ```lsm303d_set_int_event_config``` function. This function requires as parameters the configuration of type ```lsm303d_int_event_config_t``` and the interrupt generator to be used for inertial event interrupts.
Inertial event interrupts have to be enabled or disabled using function ```lsm303d_enable_int```. The interrupt signal on which the interrupts are generated is given as parameter. Inertial event interrupts have to be enabled or disabled using ```lsm303d_enable_int``` function. The interrupt signal on which the interrupts are generated is given as parameter.
For example, axis movement detection interrupt generated by inertial interrupt generator 2 on signal ```INT1``` could be configured as following: For example, axis movement detection interrupt generated by inertial interrupt generator 2 on signal ```INT1``` could be configured as following: