![]() |
LibDriver L3GD20H
|
l3gd20h interrupt driver modules More...
Functions | |
| uint8_t | l3gd20h_set_interrupt1 (l3gd20h_handle_t *handle, l3gd20h_bool_t enable) |
| enable or disable the interrupt1 | |
| uint8_t | l3gd20h_get_interrupt1 (l3gd20h_handle_t *handle, l3gd20h_bool_t *enable) |
| get the interrupt1 status | |
| uint8_t | l3gd20h_set_boot_on_interrupt1 (l3gd20h_handle_t *handle, l3gd20h_bool_t enable) |
| enable or disable boot on the interrupt1 | |
| uint8_t | l3gd20h_get_boot_on_interrupt1 (l3gd20h_handle_t *handle, l3gd20h_bool_t *enable) |
| get the boot on the interrupt1 status | |
| uint8_t | l3gd20h_set_interrupt_active_level (l3gd20h_handle_t *handle, l3gd20h_interrupt_active_level_t level) |
| set the interrupt active level | |
| uint8_t | l3gd20h_get_interrupt_active_level (l3gd20h_handle_t *handle, l3gd20h_interrupt_active_level_t *level) |
| get the interrupt active level | |
| uint8_t | l3gd20h_set_interrupt_pin_type (l3gd20h_handle_t *handle, l3gd20h_pin_type_t pin_type) |
| set the interrupt pin type | |
| uint8_t | l3gd20h_get_interrupt_pin_type (l3gd20h_handle_t *handle, l3gd20h_pin_type_t *pin_type) |
| get the interrupt pin type | |
| uint8_t | l3gd20h_set_data_ready_on_interrupt2 (l3gd20h_handle_t *handle, l3gd20h_bool_t enable) |
| enable or disable the data ready on interrupt2 | |
| uint8_t | l3gd20h_get_data_ready_on_interrupt2 (l3gd20h_handle_t *handle, l3gd20h_bool_t *enable) |
| get the data ready on interrupt2 status | |
| uint8_t | l3gd20h_set_fifo_threshold_on_interrupt2 (l3gd20h_handle_t *handle, l3gd20h_bool_t enable) |
| enable or disable the fifo threshold on interrupt2 | |
| uint8_t | l3gd20h_get_fifo_threshold_on_interrupt2 (l3gd20h_handle_t *handle, l3gd20h_bool_t *enable) |
| get the fifo threshold on interrupt2 status | |
| uint8_t | l3gd20h_set_fifo_overrun_on_interrupt2 (l3gd20h_handle_t *handle, l3gd20h_bool_t enable) |
| enable or disable the fifo overrun on interrupt2 | |
| uint8_t | l3gd20h_get_fifo_overrun_on_interrupt2 (l3gd20h_handle_t *handle, l3gd20h_bool_t *enable) |
| get the fifo overrun on interrupt2 status | |
| uint8_t | l3gd20h_set_fifo_empty_on_interrupt2 (l3gd20h_handle_t *handle, l3gd20h_bool_t enable) |
| enable or disable the fifo empty on interrupt2 | |
| uint8_t | l3gd20h_get_fifo_empty_on_interrupt2 (l3gd20h_handle_t *handle, l3gd20h_bool_t *enable) |
| get the fifo empty on interrupt2 status | |
| uint8_t | l3gd20h_set_interrupt_selection (l3gd20h_handle_t *handle, l3gd20h_selection_t selection) |
| set the interrupt selection | |
| uint8_t | l3gd20h_get_interrupt_selection (l3gd20h_handle_t *handle, l3gd20h_selection_t *selection) |
| get the interrupt selection | |
| uint8_t | l3gd20h_set_interrupt_event (l3gd20h_handle_t *handle, l3gd20h_interrupt_event_t interrupt_event, l3gd20h_bool_t enable) |
| set the interrupt event | |
| uint8_t | l3gd20h_get_interrupt_event (l3gd20h_handle_t *handle, l3gd20h_interrupt_event_t interrupt_event, l3gd20h_bool_t *enable) |
| get the interrupt event | |
| uint8_t | l3gd20h_get_interrupt_source (l3gd20h_handle_t *handle, uint8_t *src) |
| get the interrupt source | |
| uint8_t | l3gd20h_set_x_interrupt_threshold (l3gd20h_handle_t *handle, uint16_t threshold) |
| set the x interrupt threshold | |
| uint8_t | l3gd20h_get_x_interrupt_threshold (l3gd20h_handle_t *handle, uint16_t *threshold) |
| get the x interrupt threshold | |
| uint8_t | l3gd20h_set_y_interrupt_threshold (l3gd20h_handle_t *handle, uint16_t threshold) |
| set the y interrupt threshold | |
| uint8_t | l3gd20h_get_y_interrupt_threshold (l3gd20h_handle_t *handle, uint16_t *threshold) |
| get the y interrupt threshold | |
| uint8_t | l3gd20h_set_z_interrupt_threshold (l3gd20h_handle_t *handle, uint16_t threshold) |
| set the z interrupt threshold | |
| uint8_t | l3gd20h_get_z_interrupt_threshold (l3gd20h_handle_t *handle, uint16_t *threshold) |
| get the z interrupt threshold | |
| uint8_t | l3gd20h_interrupt_threshold_convert_to_register (l3gd20h_handle_t *handle, float dps, uint16_t *reg) |
| convert the interrupt threshold real data to the register raw data | |
| uint8_t | l3gd20h_interrupt_threshold_convert_to_data (l3gd20h_handle_t *handle, uint16_t reg, float *dps) |
| convert the interrupt threshold register raw data to the real data | |
| uint8_t | l3gd20h_set_counter_mode (l3gd20h_handle_t *handle, l3gd20h_counter_mode_t counter_mode) |
| set the counter mode | |
| uint8_t | l3gd20h_get_counter_mode (l3gd20h_handle_t *handle, l3gd20h_counter_mode_t *counter_mode) |
| get the counter mode | |
| uint8_t | l3gd20h_set_wait (l3gd20h_handle_t *handle, l3gd20h_bool_t enable) |
| enable or disable the wait | |
| uint8_t | l3gd20h_get_wait (l3gd20h_handle_t *handle, l3gd20h_bool_t *enable) |
| get the wait status | |
| uint8_t | l3gd20h_set_duration (l3gd20h_handle_t *handle, uint8_t duration) |
| set the wait duration | |
| uint8_t | l3gd20h_get_duration (l3gd20h_handle_t *handle, uint8_t *duration) |
| get the wait duration | |
| uint8_t | l3gd20h_set_data_ready_active_level (l3gd20h_handle_t *handle, l3gd20h_interrupt_active_level_t level) |
| set the data ready active level | |
| uint8_t | l3gd20h_get_data_ready_active_level (l3gd20h_handle_t *handle, l3gd20h_interrupt_active_level_t *level) |
| get the data ready active level | |
l3gd20h interrupt driver modules
l3gd20h counter mode enumeration definition
| Enumerator | |
|---|---|
| L3GD20H_COUNTER_MODE_RESET | reset mode |
| L3GD20H_COUNTER_MODE_DECREMENT | decrement mode |
Definition at line 284 of file driver_l3gd20h.h.
l3gd20h interrupt active level enumeration definition
| Enumerator | |
|---|---|
| L3GD20H_INTERRUPT_ACTIVE_LEVEL_HIGH | active level high |
| L3GD20H_INTERRUPT_ACTIVE_LEVEL_LOW | active level low |
Definition at line 266 of file driver_l3gd20h.h.
l3gd20h interrupt event enumeration definition
Definition at line 293 of file driver_l3gd20h.h.
| enum l3gd20h_interrupt_t |
l3gd20h interrupt enumeration definition
Definition at line 308 of file driver_l3gd20h.h.
| enum l3gd20h_pin_type_t |
l3gd20h interrupt pin type enumeration definition
| Enumerator | |
|---|---|
| L3GD20H_PIN_PUSH_PULL | push pull |
| L3GD20H_PIN_OPEN_DRAIN | open drain |
Definition at line 275 of file driver_l3gd20h.h.
| uint8_t l3gd20h_get_boot_on_interrupt1 | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t * | enable ) |
get the boot on the interrupt1 status
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 955 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_counter_mode | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_counter_mode_t * | counter_mode ) |
get the counter mode
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *counter_mode | pointer to a counter mode buffer |
Definition at line 3069 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_data_ready_active_level | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_interrupt_active_level_t * | level ) |
get the data ready active level
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *level | pointer to an interrupt active level buffer |
Definition at line 3296 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_data_ready_on_interrupt2 | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t * | enable ) |
get the data ready on interrupt2 status
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 1177 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_duration | ( | l3gd20h_handle_t * | handle, |
| uint8_t * | duration ) |
get the wait duration
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *duration | pointer to a wait duration buffer |
Definition at line 3222 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_fifo_empty_on_interrupt2 | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t * | enable ) |
get the fifo empty on interrupt2 status
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 1399 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_fifo_overrun_on_interrupt2 | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t * | enable ) |
get the fifo overrun on interrupt2 status
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 1325 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_fifo_threshold_on_interrupt2 | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t * | enable ) |
get the fifo threshold on interrupt2 status
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 1251 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_interrupt1 | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t * | enable ) |
get the interrupt1 status
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 881 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_interrupt_active_level | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_interrupt_active_level_t * | level ) |
get the interrupt active level
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *level | pointer to an interrupt active level buffer |
Definition at line 1029 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_interrupt_event | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_interrupt_event_t | interrupt_event, | ||
| l3gd20h_bool_t * | enable ) |
get the interrupt event
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | interrupt_event | chip interrupt event |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 2667 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_interrupt_pin_type | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_pin_type_t * | pin_type ) |
get the interrupt pin type
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *pin_type | pointer to an interrupt pin type buffer |
Definition at line 1103 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_interrupt_selection | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_selection_t * | selection ) |
get the interrupt selection
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *selection | pointer to an interrupt selection buffer |
Definition at line 2213 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_interrupt_source | ( | l3gd20h_handle_t * | handle, |
| uint8_t * | src ) |
get the interrupt source
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *src | pointer to an interrupt source buffer |
Definition at line 2704 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_wait | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t * | enable ) |
get the wait status
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 3143 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_x_interrupt_threshold | ( | l3gd20h_handle_t * | handle, |
| uint16_t * | threshold ) |
get the x interrupt threshold
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *threshold | pointer to an interrupt threshold buffer |
Definition at line 2800 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_y_interrupt_threshold | ( | l3gd20h_handle_t * | handle, |
| uint16_t * | threshold ) |
get the y interrupt threshold
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *threshold | pointer to an interrupt threshold buffer |
Definition at line 2895 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_z_interrupt_threshold | ( | l3gd20h_handle_t * | handle, |
| uint16_t * | threshold ) |
get the z interrupt threshold
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *threshold | pointer to an interrupt threshold buffer |
Definition at line 2990 of file driver_l3gd20h.c.
| uint8_t l3gd20h_interrupt_threshold_convert_to_data | ( | l3gd20h_handle_t * | handle, |
| uint16_t | reg, | ||
| float * | dps ) |
convert the interrupt threshold register raw data to the real data
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | reg | interrupt threshold raw data |
| [out] | *dps | pointer to an interrupt threshold real data buffer |
Definition at line 3492 of file driver_l3gd20h.c.
| uint8_t l3gd20h_interrupt_threshold_convert_to_register | ( | l3gd20h_handle_t * | handle, |
| float | dps, | ||
| uint16_t * | reg ) |
convert the interrupt threshold real data to the register raw data
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | dps | interrupt threshold real data |
| [out] | *reg | pointer to an interrupt threshold raw data buffer |
Definition at line 3444 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_boot_on_interrupt1 | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t | enable ) |
enable or disable boot on the interrupt1
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | enable | bool value |
Definition at line 918 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_counter_mode | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_counter_mode_t | counter_mode ) |
set the counter mode
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | counter_mode | counter mode |
Definition at line 3032 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_data_ready_active_level | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_interrupt_active_level_t | level ) |
set the data ready active level
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | level | interrupt active level |
Definition at line 3259 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_data_ready_on_interrupt2 | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t | enable ) |
enable or disable the data ready on interrupt2
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | enable | bool value |
Definition at line 1140 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_duration | ( | l3gd20h_handle_t * | handle, |
| uint8_t | duration ) |
set the wait duration
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | duration | wait duration |
Definition at line 3180 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_fifo_empty_on_interrupt2 | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t | enable ) |
enable or disable the fifo empty on interrupt2
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | enable | bool value |
Definition at line 1362 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_fifo_overrun_on_interrupt2 | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t | enable ) |
enable or disable the fifo overrun on interrupt2
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | enable | bool value |
Definition at line 1288 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_fifo_threshold_on_interrupt2 | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t | enable ) |
enable or disable the fifo threshold on interrupt2
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | enable | bool value |
Definition at line 1214 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_interrupt1 | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t | enable ) |
enable or disable the interrupt1
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | enable | bool value |
Definition at line 844 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_interrupt_active_level | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_interrupt_active_level_t | level ) |
set the interrupt active level
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | level | interrupt active level |
Definition at line 992 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_interrupt_event | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_interrupt_event_t | interrupt_event, | ||
| l3gd20h_bool_t | enable ) |
set the interrupt event
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | interrupt_event | chip interrupt event |
| [in] | enable | bool value |
Definition at line 2629 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_interrupt_pin_type | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_pin_type_t | pin_type ) |
set the interrupt pin type
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | pin_type | interrupt pin type |
Definition at line 1066 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_interrupt_selection | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_selection_t | selection ) |
set the interrupt selection
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | selection | interrupt selection |
Definition at line 2176 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_wait | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t | enable ) |
enable or disable the wait
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | enable | bool value |
Definition at line 3106 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_x_interrupt_threshold | ( | l3gd20h_handle_t * | handle, |
| uint16_t | threshold ) |
set the x interrupt threshold
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | threshold | interrupt threshold |
Definition at line 2740 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_y_interrupt_threshold | ( | l3gd20h_handle_t * | handle, |
| uint16_t | threshold ) |
set the y interrupt threshold
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | threshold | interrupt threshold |
Definition at line 2843 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_z_interrupt_threshold | ( | l3gd20h_handle_t * | handle, |
| uint16_t | threshold ) |
set the z interrupt threshold
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | threshold | interrupt threshold |
Definition at line 2938 of file driver_l3gd20h.c.