![]() |
LibDriver TSL2561
|
tsl2561 interrupt driver modules More...
Functions | |
| uint8_t | tsl2561_set_interrupt_mode (tsl2561_handle_t *handle, tsl2561_interrupt_mode_t mode) |
| set the interrupt mode | |
| uint8_t | tsl2561_get_interrupt_mode (tsl2561_handle_t *handle, tsl2561_interrupt_mode_t *mode) |
| get the interrupt mode | |
| uint8_t | tsl2561_set_interrupt (tsl2561_handle_t *handle, tsl2561_bool_t enable) |
| enable or disable the chip interrupt | |
| uint8_t | tsl2561_get_interrupt (tsl2561_handle_t *handle, tsl2561_bool_t *enable) |
| get the chip interrupt | |
| uint8_t | tsl2561_set_interrupt_high_threshold (tsl2561_handle_t *handle, uint16_t ch0_raw) |
| set the interrupt high threshold | |
| uint8_t | tsl2561_get_interrupt_high_threshold (tsl2561_handle_t *handle, uint16_t *ch0_raw) |
| get the interrupt high threshold | |
| uint8_t | tsl2561_set_interrupt_low_threshold (tsl2561_handle_t *handle, uint16_t ch0_raw) |
| set the interrupt low threshold | |
| uint8_t | tsl2561_get_interrupt_low_threshold (tsl2561_handle_t *handle, uint16_t *ch0_raw) |
| get the interrupt low threshold | |
tsl2561 interrupt driver modules
tsl2561 interrupt mode enumeration definition
Definition at line 110 of file driver_tsl2561.h.
| uint8_t tsl2561_get_interrupt | ( | tsl2561_handle_t * | handle, |
| tsl2561_bool_t * | enable ) |
get the chip interrupt
| [in] | *handle | pointer to a tsl2561 handle structure |
| [out] | *enable | pointer to a bool buffer |
Definition at line 717 of file driver_tsl2561.c.
| uint8_t tsl2561_get_interrupt_high_threshold | ( | tsl2561_handle_t * | handle, |
| uint16_t * | ch0_raw ) |
get the interrupt high threshold
| [in] | *handle | pointer to a tsl2561 handle structure |
| [out] | *ch0_raw | pointer to a channel 0 raw data buffer |
Definition at line 790 of file driver_tsl2561.c.
| uint8_t tsl2561_get_interrupt_low_threshold | ( | tsl2561_handle_t * | handle, |
| uint16_t * | ch0_raw ) |
get the interrupt low threshold
| [in] | *handle | pointer to a tsl2561 handle structure |
| [out] | *ch0_raw | pointer to a channel 0 raw data buffer |
Definition at line 864 of file driver_tsl2561.c.
| uint8_t tsl2561_get_interrupt_mode | ( | tsl2561_handle_t * | handle, |
| tsl2561_interrupt_mode_t * | mode ) |
get the interrupt mode
| [in] | *handle | pointer to a tsl2561 handle structure |
| [out] | *mode | pointer to an interrupt mode buffer |
Definition at line 637 of file driver_tsl2561.c.
| uint8_t tsl2561_set_interrupt | ( | tsl2561_handle_t * | handle, |
| tsl2561_bool_t | enable ) |
enable or disable the chip interrupt
| [in] | *handle | pointer to a tsl2561 handle structure |
| [in] | enable | bool value |
Definition at line 673 of file driver_tsl2561.c.
| uint8_t tsl2561_set_interrupt_high_threshold | ( | tsl2561_handle_t * | handle, |
| uint16_t | ch0_raw ) |
set the interrupt high threshold
| [in] | *handle | pointer to a tsl2561 handle structure |
| [in] | ch0_raw | channel 0 raw data |
Definition at line 753 of file driver_tsl2561.c.
| uint8_t tsl2561_set_interrupt_low_threshold | ( | tsl2561_handle_t * | handle, |
| uint16_t | ch0_raw ) |
set the interrupt low threshold
| [in] | *handle | pointer to a tsl2561 handle structure |
| [in] | ch0_raw | channel 0 raw data |
Definition at line 827 of file driver_tsl2561.c.
| uint8_t tsl2561_set_interrupt_mode | ( | tsl2561_handle_t * | handle, |
| tsl2561_interrupt_mode_t | mode ) |
set the interrupt mode
| [in] | *handle | pointer to a tsl2561 handle structure |
| [in] | mode | interrupt mode |
Definition at line 593 of file driver_tsl2561.c.