![]() |
LibDriver UVIS25
|
uvis25 interrupt driver modules More...
Enumerations | |
| enum | uvis25_interrupt_active_level_t { UVIS25_INTERRUPT_ACTIVE_LEVEL_HIGHER = 0x00 , UVIS25_INTERRUPT_ACTIVE_LEVEL_LOWER = 0x01 } |
| uvis25 interrupt active level enumeration definition More... | |
| enum | uvis25_interrupt_pin_type_t { UVIS25_INTERRUPT_PIN_TYPE_PUSH_PULL = 0x00 , UVIS25_INTERRUPT_PIN_TYPE_OPEN_DRAIN = 0x01 } |
| uvis25 interrupt pin type enumeration definition More... | |
| enum | uvis25_interrupt_type_t { UVIS25_INTERRUPT_TYPE_DATA_READY = 0x00 , UVIS25_INTERRUPT_TYPE_UV_INDEX_HIGH = 0x01 , UVIS25_INTERRUPT_TYPE_UV_INDEX_LOW = 0x02 , UVIS25_INTERRUPT_TYPE_UV_INDEX_HIGH_LOW = 0x03 } |
| uvis25 interrupt type enumeration definition More... | |
| enum | uvis25_interrupt_t { UVIS25_INTERRUPT_ACTIVE = 0x00 , UVIS25_INTERRUPT_HIGHER = 0x01 , UVIS25_INTERRUPT_LOWER = 0x02 } |
| uvis25 interrupt status enumeration definition More... | |
Functions | |
| uint8_t | uvis25_set_interrupt_active_level (uvis25_handle_t *handle, uvis25_interrupt_active_level_t level) |
| set the interrupt active level | |
| uint8_t | uvis25_get_interrupt_active_level (uvis25_handle_t *handle, uvis25_interrupt_active_level_t *level) |
| get the interrupt active level | |
| uint8_t | uvis25_set_interrupt_pin_type (uvis25_handle_t *handle, uvis25_interrupt_pin_type_t pin_type) |
| set the interrupt pin type | |
| uint8_t | uvis25_get_interrupt_pin_type (uvis25_handle_t *handle, uvis25_interrupt_pin_type_t *pin_type) |
| get the interrupt pin type | |
| uint8_t | uvis25_set_interrupt_type (uvis25_handle_t *handle, uvis25_interrupt_type_t type) |
| set the interrupt type | |
| uint8_t | uvis25_get_interrupt_type (uvis25_handle_t *handle, uvis25_interrupt_type_t *type) |
| get the interrupt type | |
| uint8_t | uvis25_set_interrupt (uvis25_handle_t *handle, uvis25_bool_t enable) |
| enable or disable the chip interrupt | |
| uint8_t | uvis25_get_interrupt (uvis25_handle_t *handle, uvis25_bool_t *enable) |
| get the chip interrupt status | |
| uint8_t | uvis25_set_latch_interrupt (uvis25_handle_t *handle, uvis25_bool_t enable) |
| enable or disable latching interrupt | |
| uint8_t | uvis25_get_latch_interrupt (uvis25_handle_t *handle, uvis25_bool_t *enable) |
| get the latching interrupt status | |
| uint8_t | uvis25_set_interrupt_low_threshold (uvis25_handle_t *handle, uvis25_bool_t enable) |
| enable or disable the low threshold interrupt | |
| uint8_t | uvis25_get_interrupt_low_threshold (uvis25_handle_t *handle, uvis25_bool_t *enable) |
| get the low threshold interrupt status | |
| uint8_t | uvis25_set_interrupt_high_threshold (uvis25_handle_t *handle, uvis25_bool_t enable) |
| enable or disable the high threshold interrupt | |
| uint8_t | uvis25_get_interrupt_high_threshold (uvis25_handle_t *handle, uvis25_bool_t *enable) |
| get the high threshold interrupt status | |
| uint8_t | uvis25_set_threshold (uvis25_handle_t *handle, uint8_t threshold) |
| set the interrupt threshold | |
| uint8_t | uvis25_get_threshold (uvis25_handle_t *handle, uint8_t *threshold) |
| get the interrupt threshold | |
| uint8_t | uvis25_threshold_convert_to_register (uvis25_handle_t *handle, float uv, uint8_t *reg) |
| convert a uv index to a raw register data | |
| uint8_t | uvis25_threshold_convert_to_data (uvis25_handle_t *handle, uint8_t reg, float *uv) |
| convert a raw register data to a converted uv index | |
uvis25 interrupt driver modules
uvis25 interrupt active level enumeration definition
| Enumerator | |
|---|---|
| UVIS25_INTERRUPT_ACTIVE_LEVEL_HIGHER | active higher level |
| UVIS25_INTERRUPT_ACTIVE_LEVEL_LOWER | active lower level |
Definition at line 108 of file driver_uvis25.h.
uvis25 interrupt pin type enumeration definition
| Enumerator | |
|---|---|
| UVIS25_INTERRUPT_PIN_TYPE_PUSH_PULL | push pull type |
| UVIS25_INTERRUPT_PIN_TYPE_OPEN_DRAIN | open drain type |
Definition at line 117 of file driver_uvis25.h.
| enum uvis25_interrupt_t |
uvis25 interrupt status enumeration definition
| Enumerator | |
|---|---|
| UVIS25_INTERRUPT_ACTIVE | active |
| UVIS25_INTERRUPT_HIGHER | higher |
| UVIS25_INTERRUPT_LOWER | lower |
Definition at line 137 of file driver_uvis25.h.
uvis25 interrupt type enumeration definition
Definition at line 126 of file driver_uvis25.h.
| uint8_t uvis25_get_interrupt | ( | uvis25_handle_t * | handle, |
| uvis25_bool_t * | enable ) |
get the chip interrupt status
| [in] | *handle | pointer to a uvis25 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 771 of file driver_uvis25.c.
| uint8_t uvis25_get_interrupt_active_level | ( | uvis25_handle_t * | handle, |
| uvis25_interrupt_active_level_t * | level ) |
get the interrupt active level
| [in] | *handle | pointer to a uvis25 handle structure |
| [out] | *level | pointer to an interrupt active level buffer |
Definition at line 546 of file driver_uvis25.c.
| uint8_t uvis25_get_interrupt_high_threshold | ( | uvis25_handle_t * | handle, |
| uvis25_bool_t * | enable ) |
get the high threshold interrupt status
| [in] | *handle | pointer to a uvis25 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 996 of file driver_uvis25.c.
| uint8_t uvis25_get_interrupt_low_threshold | ( | uvis25_handle_t * | handle, |
| uvis25_bool_t * | enable ) |
get the low threshold interrupt status
| [in] | *handle | pointer to a uvis25 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 921 of file driver_uvis25.c.
| uint8_t uvis25_get_interrupt_pin_type | ( | uvis25_handle_t * | handle, |
| uvis25_interrupt_pin_type_t * | pin_type ) |
get the interrupt pin type
| [in] | *handle | pointer to a uvis25 handle structure |
| [out] | *pin_type | pointer to an interrupt pin type buffer |
Definition at line 621 of file driver_uvis25.c.
| uint8_t uvis25_get_interrupt_type | ( | uvis25_handle_t * | handle, |
| uvis25_interrupt_type_t * | type ) |
get the interrupt type
| [in] | *handle | pointer to a uvis25 handle structure |
| [out] | *type | pointer to an interrupt type buffer |
Definition at line 696 of file driver_uvis25.c.
| uint8_t uvis25_get_latch_interrupt | ( | uvis25_handle_t * | handle, |
| uvis25_bool_t * | enable ) |
get the latching interrupt status
| [in] | *handle | pointer to a uvis25 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 846 of file driver_uvis25.c.
| uint8_t uvis25_get_threshold | ( | uvis25_handle_t * | handle, |
| uint8_t * | threshold ) |
get the interrupt threshold
| [in] | *handle | pointer to a uvis25 handle structure |
| [out] | *threshold | pointer to an interrupt threshold buffer |
Definition at line 1058 of file driver_uvis25.c.
| uint8_t uvis25_set_interrupt | ( | uvis25_handle_t * | handle, |
| uvis25_bool_t | enable ) |
enable or disable the chip interrupt
| [in] | *handle | pointer to a uvis25 handle structure |
| [in] | enable | bool value |
Definition at line 733 of file driver_uvis25.c.
| uint8_t uvis25_set_interrupt_active_level | ( | uvis25_handle_t * | handle, |
| uvis25_interrupt_active_level_t | level ) |
set the interrupt active level
| [in] | *handle | pointer to a uvis25 handle structure |
| [in] | level | interrupt active level |
Definition at line 508 of file driver_uvis25.c.
| uint8_t uvis25_set_interrupt_high_threshold | ( | uvis25_handle_t * | handle, |
| uvis25_bool_t | enable ) |
enable or disable the high threshold interrupt
| [in] | *handle | pointer to a uvis25 handle structure |
| [in] | enable | bool value |
Definition at line 958 of file driver_uvis25.c.
| uint8_t uvis25_set_interrupt_low_threshold | ( | uvis25_handle_t * | handle, |
| uvis25_bool_t | enable ) |
enable or disable the low threshold interrupt
| [in] | *handle | pointer to a uvis25 handle structure |
| [in] | enable | bool value |
Definition at line 883 of file driver_uvis25.c.
| uint8_t uvis25_set_interrupt_pin_type | ( | uvis25_handle_t * | handle, |
| uvis25_interrupt_pin_type_t | pin_type ) |
set the interrupt pin type
| [in] | *handle | pointer to a uvis25 handle structure |
| [in] | pin_type | interrupt pin type |
Definition at line 583 of file driver_uvis25.c.
| uint8_t uvis25_set_interrupt_type | ( | uvis25_handle_t * | handle, |
| uvis25_interrupt_type_t | type ) |
set the interrupt type
| [in] | *handle | pointer to a uvis25 handle structure |
| [in] | type | interrupt type |
Definition at line 658 of file driver_uvis25.c.
| uint8_t uvis25_set_latch_interrupt | ( | uvis25_handle_t * | handle, |
| uvis25_bool_t | enable ) |
enable or disable latching interrupt
| [in] | *handle | pointer to a uvis25 handle structure |
| [in] | enable | bool value |
Definition at line 808 of file driver_uvis25.c.
| uint8_t uvis25_set_threshold | ( | uvis25_handle_t * | handle, |
| uint8_t | threshold ) |
set the interrupt threshold
| [in] | *handle | pointer to a uvis25 handle structure |
| [in] | threshold | interrupt threshold |
Definition at line 1033 of file driver_uvis25.c.
| uint8_t uvis25_threshold_convert_to_data | ( | uvis25_handle_t * | handle, |
| uint8_t | reg, | ||
| float * | uv ) |
convert a raw register data to a converted uv index
| [in] | *handle | pointer to a uvis25 handle structure |
| [in] | reg | raw register data |
| [out] | *uv | pointer to a uv index buffer |
Definition at line 1167 of file driver_uvis25.c.
| uint8_t uvis25_threshold_convert_to_register | ( | uvis25_handle_t * | handle, |
| float | uv, | ||
| uint8_t * | reg ) |
convert a uv index to a raw register data
| [in] | *handle | pointer to a uvis25 handle structure |
| [in] | uv | uv index |
| [out] | *reg | pointer to a raw register data |
Definition at line 1139 of file driver_uvis25.c.