minor changes
This commit is contained in:
parent
25d03c9a6a
commit
fecdf9d419
1 changed files with 5 additions and 5 deletions
|
|
@ -300,7 +300,7 @@ The LSM303D supports two dedicated interrupt signals **```INT1```** and **```INT
|
|||
|
||||
### 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
|
||||
:-----------------|:-------------|:----------------
|
||||
|
|
@ -316,7 +316,7 @@ Each of these interrupt sources can be enabled or disabled separately using the
|
|||
lsm303d_enable_int (sensor, lsm303d_int_a_data_ready, lsm303d_int2_signal, true);
|
||||
```
|
||||
|
||||
Whenever a data interrupt is generated at the specified interrupt signal, the ```lsm303d_get_int_data_source``` function can be used to determine the source of the data interrupt. This function returns a data structure of type ```lsm303d_int_data_source_t``` that contain a boolean member for each source that can be tested for true.
|
||||
Whenever a data interrupt is generated at the specified interrupt signal, the ```lsm303d_get_int_data_source``` function can be used to determine the source of the data interrupt. This function returns a data structure of type ```lsm303d_int_data_source_t``` that contain a boolean member for each source that can be tested for true.
|
||||
|
||||
```
|
||||
void int2_handler ()
|
||||
|
|
@ -341,7 +341,7 @@ void int2_handler ()
|
|||
|
||||
### 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:
|
||||
|
||||
|
|
@ -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```).
|
||||
- **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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue