![]() |
LibDriver ADXL345
|
adxl345 interrupt driver modules More...
Enumerations | |
| enum | adxl345_interrupt_t { ADXL345_INTERRUPT_DATA_READY = 0x07 , ADXL345_INTERRUPT_SINGLE_TAP = 0x06 , ADXL345_INTERRUPT_DOUBLE_TAP = 0x05 , ADXL345_INTERRUPT_ACTIVITY = 0x04 , ADXL345_INTERRUPT_INACTIVITY = 0x03 , ADXL345_INTERRUPT_FREE_FALL = 0x02 , ADXL345_INTERRUPT_WATERMARK = 0x01 , ADXL345_INTERRUPT_OVERRUN = 0x00 } |
| adxl345 interrupt enumeration definition More... | |
| enum | adxl345_interrupt_pin_t { ADXL345_INTERRUPT_PIN1 = 0x00 , ADXL345_INTERRUPT_PIN2 = 0x01 } |
| adxl345 interrupt pin enumeration definition More... | |
| enum | adxl345_interrupt_active_level_t { ADXL345_INTERRUPT_ACTIVE_LEVEL_HIGH = 0x00 , ADXL345_INTERRUPT_ACTIVE_LEVEL_LOW = 0x01 } |
| adxl345 interrupt active_level enumeration definition More... | |
Functions | |
| uint8_t | adxl345_set_interrupt (adxl345_handle_t *handle, adxl345_interrupt_t type, adxl345_bool_t enable) |
| enable or disable the interrupt | |
| uint8_t | adxl345_get_interrupt (adxl345_handle_t *handle, adxl345_interrupt_t type, adxl345_bool_t *enable) |
| get the interrupt status | |
| uint8_t | adxl345_get_interrupt_source (adxl345_handle_t *handle, uint8_t *source) |
| get the interrupt source | |
| uint8_t | adxl345_set_interrupt_map (adxl345_handle_t *handle, adxl345_interrupt_t type, adxl345_interrupt_pin_t pin) |
| set the interrupt map | |
| uint8_t | adxl345_get_interrupt_map (adxl345_handle_t *handle, adxl345_interrupt_t type, adxl345_interrupt_pin_t *pin) |
| get the interrupt map | |
| uint8_t | adxl345_set_interrupt_active_level (adxl345_handle_t *handle, adxl345_interrupt_active_level_t active_level) |
| set the interrupt active level | |
| uint8_t | adxl345_get_interrupt_active_level (adxl345_handle_t *handle, adxl345_interrupt_active_level_t *active_level) |
| get the interrupt active level | |
adxl345 interrupt driver modules
adxl345 interrupt active_level enumeration definition
| Enumerator | |
|---|---|
| ADXL345_INTERRUPT_ACTIVE_LEVEL_HIGH | interrupt active level high |
| ADXL345_INTERRUPT_ACTIVE_LEVEL_LOW | interrupt active level low |
Definition at line 258 of file driver_adxl345.h.
adxl345 interrupt pin enumeration definition
| Enumerator | |
|---|---|
| ADXL345_INTERRUPT_PIN1 | interrupt pin 1 |
| ADXL345_INTERRUPT_PIN2 | interrupt pin 2 |
Definition at line 249 of file driver_adxl345.h.
| enum adxl345_interrupt_t |
adxl345 interrupt enumeration definition
Definition at line 234 of file driver_adxl345.h.
| uint8_t adxl345_get_interrupt | ( | adxl345_handle_t * | handle, |
| adxl345_interrupt_t | type, | ||
| adxl345_bool_t * | enable ) |
get the interrupt status
| [in] | *handle | pointer to an adxl345 handle structure |
| [in] | type | interrupt type |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 1870 of file driver_adxl345.c.
| uint8_t adxl345_get_interrupt_active_level | ( | adxl345_handle_t * | handle, |
| adxl345_interrupt_active_level_t * | active_level ) |
get the interrupt active level
| [in] | *handle | pointer to an adxl345 handle structure |
| [out] | *active_level | pointer to an interrupt active level buffer |
Definition at line 2193 of file driver_adxl345.c.
| uint8_t adxl345_get_interrupt_map | ( | adxl345_handle_t * | handle, |
| adxl345_interrupt_t | type, | ||
| adxl345_interrupt_pin_t * | pin ) |
get the interrupt map
| [in] | *handle | pointer to an adxl345 handle structure |
| [in] | type | interrupt type |
| [out] | *pin | pointer to an interrupt pin buffer |
Definition at line 1946 of file driver_adxl345.c.
| uint8_t adxl345_get_interrupt_source | ( | adxl345_handle_t * | handle, |
| uint8_t * | source ) |
get the interrupt source
| [in] | *handle | pointer to an adxl345 handle structure |
| [out] | *source | pointer to an interrupt source buffer |
Definition at line 1983 of file driver_adxl345.c.
| uint8_t adxl345_set_interrupt | ( | adxl345_handle_t * | handle, |
| adxl345_interrupt_t | type, | ||
| adxl345_bool_t | enable ) |
enable or disable the interrupt
| [in] | *handle | pointer to an adxl345 handle structure |
| [in] | type | interrupt type |
| [in] | enable | bool value |
Definition at line 1832 of file driver_adxl345.c.
| uint8_t adxl345_set_interrupt_active_level | ( | adxl345_handle_t * | handle, |
| adxl345_interrupt_active_level_t | active_level ) |
set the interrupt active level
| [in] | *handle | pointer to an adxl345 handle structure |
| [in] | active_level | interrupt active level |
Definition at line 2156 of file driver_adxl345.c.
| uint8_t adxl345_set_interrupt_map | ( | adxl345_handle_t * | handle, |
| adxl345_interrupt_t | type, | ||
| adxl345_interrupt_pin_t | pin ) |
set the interrupt map
| [in] | *handle | pointer to an adxl345 handle structure |
| [in] | type | interrupt type |
| [in] | pin | interrupt pin |
Definition at line 1908 of file driver_adxl345.c.