![]() |
LibDriver APDS9960
|
apds9960 basic driver modules More...
Data Structures | |
| struct | apds9960_handle_s |
| apds9960 handle structure definition More... | |
| struct | apds9960_info_s |
| apds9960 information structure definition More... | |
Macros | |
| #define | APDS9960_GESTURE_THRESHOLD 10 |
| apds9960 gesture algorithm params definition | |
| #define | APDS9960_GESTURE_SENSITIVITY_1 50 |
| #define | APDS9960_GESTURE_SENSITIVITY_2 20 |
Typedefs | |
| typedef struct apds9960_handle_s | apds9960_handle_t |
| apds9960 handle structure definition | |
| typedef struct apds9960_info_s | apds9960_info_t |
| apds9960 information structure definition | |
Functions | |
| uint8_t | apds9960_info (apds9960_info_t *info) |
| get chip's information | |
| uint8_t | apds9960_irq_handler (apds9960_handle_t *handle) |
| irq handler | |
| uint8_t | apds9960_init (apds9960_handle_t *handle) |
| initialize the chip | |
| uint8_t | apds9960_deinit (apds9960_handle_t *handle) |
| close the chip | |
| uint8_t | apds9960_read_rgbc (apds9960_handle_t *handle, uint16_t *red, uint16_t *green, uint16_t *blue, uint16_t *clear) |
| read the rgbc data | |
| uint8_t | apds9960_read_proximity (apds9960_handle_t *handle, uint8_t *proximity) |
| read the proximity data | |
| uint8_t | apds9960_read_gesture_fifo (apds9960_handle_t *handle, uint8_t(*data)[4], uint8_t *len) |
| read data from the gesture fifo | |
| uint8_t | apds9960_gesture_decode (apds9960_handle_t *handle, uint8_t(*data)[4], uint8_t len) |
| decode gestures from the fifo data | |
| uint8_t | apds9960_set_gesture_decode_threshold (apds9960_handle_t *handle, uint8_t threshold) |
| set the gesture decode threshold | |
| uint8_t | apds9960_get_gesture_decode_threshold (apds9960_handle_t *handle, uint8_t *threshold) |
| get the gesture decode threshold | |
| uint8_t | apds9960_set_gesture_decode_sensitivity_1 (apds9960_handle_t *handle, int32_t sensitivity) |
| set the gesture decode sensitivity 1 | |
| uint8_t | apds9960_get_gesture_decode_sensitivity_1 (apds9960_handle_t *handle, int32_t *sensitivity) |
| get the gesture decode sensitivity 1 | |
| uint8_t | apds9960_set_gesture_decode_sensitivity_2 (apds9960_handle_t *handle, int32_t sensitivity) |
| set the gesture decode sensitivity 2 | |
| uint8_t | apds9960_get_gesture_decode_sensitivity_2 (apds9960_handle_t *handle, int32_t *sensitivity) |
| get the gesture decode sensitivity 2 | |
| uint8_t | apds9960_set_conf (apds9960_handle_t *handle, apds9960_conf_t conf, apds9960_bool_t enable) |
| set the configuration | |
| uint8_t | apds9960_get_conf (apds9960_handle_t *handle, apds9960_conf_t conf, apds9960_bool_t *enable) |
| get the configuration | |
| uint8_t | apds9960_set_adc_integration_time (apds9960_handle_t *handle, uint8_t integration_time) |
| set the adc integration time | |
| uint8_t | apds9960_get_adc_integration_time (apds9960_handle_t *handle, uint8_t *integration_time) |
| get the adc integration time | |
| uint8_t | apds9960_adc_integration_time_convert_to_register (apds9960_handle_t *handle, float ms, uint8_t *reg) |
| convert the adc integration time to the register raw data | |
| uint8_t | apds9960_adc_integration_time_convert_to_data (apds9960_handle_t *handle, uint8_t reg, float *ms) |
| convert the register raw data to the integration time | |
| uint8_t | apds9960_set_wait_time (apds9960_handle_t *handle, uint8_t wait_time) |
| set the wait time | |
| uint8_t | apds9960_get_wait_time (apds9960_handle_t *handle, uint8_t *wait_time) |
| get the wait time | |
| uint8_t | apds9960_wait_time_convert_to_register (apds9960_handle_t *handle, float ms, uint8_t *reg) |
| convert the wait time to the register raw data | |
| uint8_t | apds9960_wait_time_convert_to_data (apds9960_handle_t *handle, uint8_t reg, float *ms) |
| convert the register raw data to the wait time | |
| uint8_t | apds9960_set_als_interrupt_low_threshold (apds9960_handle_t *handle, uint16_t threshold) |
| set the als interrupt low threshold | |
| uint8_t | apds9960_get_als_interrupt_low_threshold (apds9960_handle_t *handle, uint16_t *threshold) |
| get the als interrupt low threshold | |
| uint8_t | apds9960_set_als_interrupt_high_threshold (apds9960_handle_t *handle, uint16_t threshold) |
| set the als interrupt high threshold | |
| uint8_t | apds9960_get_als_interrupt_high_threshold (apds9960_handle_t *handle, uint16_t *threshold) |
| get the als interrupt high threshold | |
| uint8_t | apds9960_set_proximity_interrupt_low_threshold (apds9960_handle_t *handle, uint8_t threshold) |
| set the proximity interrupt low threshold | |
| uint8_t | apds9960_get_proximity_interrupt_low_threshold (apds9960_handle_t *handle, uint8_t *threshold) |
| get the proximity interrupt low threshold | |
| uint8_t | apds9960_set_proximity_interrupt_high_threshold (apds9960_handle_t *handle, uint8_t threshold) |
| set the proximity interrupt high threshold | |
| uint8_t | apds9960_get_proximity_interrupt_high_threshold (apds9960_handle_t *handle, uint8_t *threshold) |
| get the proximity interrupt high threshold | |
| uint8_t | apds9960_set_proximity_interrupt_cycle (apds9960_handle_t *handle, apds9960_proximity_interrupt_cycle_t cycle) |
| set the proximity interrupt cycle | |
| uint8_t | apds9960_get_proximity_interrupt_cycle (apds9960_handle_t *handle, apds9960_proximity_interrupt_cycle_t *cycle) |
| get the proximity interrupt cycle | |
| uint8_t | apds9960_set_als_interrupt_cycle (apds9960_handle_t *handle, apds9960_als_interrupt_cycle_t cycle) |
| set the als interrupt cycle | |
| uint8_t | apds9960_get_als_interrupt_cycle (apds9960_handle_t *handle, apds9960_als_interrupt_cycle_t *cycle) |
| get the als interrupt cycle | |
| uint8_t | apds9960_set_wait_long (apds9960_handle_t *handle, apds9960_bool_t enable) |
| enable or disable the wait long | |
| uint8_t | apds9960_get_wait_long (apds9960_handle_t *handle, apds9960_bool_t *enable) |
| get the wait long status | |
| uint8_t | apds9960_set_proximity_pulse_length (apds9960_handle_t *handle, apds9960_proximity_pulse_length_t len) |
| set the proximity pulse length | |
| uint8_t | apds9960_get_proximity_pulse_length (apds9960_handle_t *handle, apds9960_proximity_pulse_length_t *len) |
| get the proximity pulse length | |
| uint8_t | apds9960_set_proximity_pulse_count (apds9960_handle_t *handle, uint16_t count) |
| set the proximity pulse count | |
| uint8_t | apds9960_get_proximity_pulse_count (apds9960_handle_t *handle, uint16_t *count) |
| get the proximity pulse count | |
| uint8_t | apds9960_set_led_current (apds9960_handle_t *handle, apds9960_led_current_t current) |
| set the led current | |
| uint8_t | apds9960_get_led_current (apds9960_handle_t *handle, apds9960_led_current_t *current) |
| get the led current | |
| uint8_t | apds9960_set_proximity_gain (apds9960_handle_t *handle, apds9960_proximity_gain_t gain) |
| set the proximity gain | |
| uint8_t | apds9960_get_proximity_gain (apds9960_handle_t *handle, apds9960_proximity_gain_t *gain) |
| get the proximity gain | |
| uint8_t | apds9960_set_als_color_gain (apds9960_handle_t *handle, apds9960_als_color_gain_t gain) |
| set the als color gain | |
| uint8_t | apds9960_get_als_color_gain (apds9960_handle_t *handle, apds9960_als_color_gain_t *gain) |
| get the als color gain | |
| uint8_t | apds9960_set_saturation_interrupt (apds9960_handle_t *handle, apds9960_saturation_interrupt_t saturation, apds9960_bool_t enable) |
| set the saturation interrupt | |
| uint8_t | apds9960_get_saturation_interrupt (apds9960_handle_t *handle, apds9960_saturation_interrupt_t saturation, apds9960_bool_t *enable) |
| get the saturation interrupt | |
| uint8_t | apds9960_set_led_boost (apds9960_handle_t *handle, apds9960_led_boost_t boost) |
| set the led boost | |
| uint8_t | apds9960_get_led_boost (apds9960_handle_t *handle, apds9960_led_boost_t *boost) |
| get the led boost | |
| uint8_t | apds9960_get_status (apds9960_handle_t *handle, uint8_t *status) |
| get the status | |
| uint8_t | apds9960_set_proximity_up_right_offset (apds9960_handle_t *handle, int8_t offset) |
| set the proximity up right offset | |
| uint8_t | apds9960_get_proximity_up_right_offset (apds9960_handle_t *handle, int8_t *offset) |
| get the proximity up right offset | |
| uint8_t | apds9960_set_proximity_down_left_offset (apds9960_handle_t *handle, int8_t offset) |
| set the proximity down left offset | |
| uint8_t | apds9960_get_proximity_down_left_offset (apds9960_handle_t *handle, int8_t *offset) |
| get the proximity down left offset | |
| uint8_t | apds9960_set_proximity_gain_compensation (apds9960_handle_t *handle, apds9960_bool_t enable) |
| enable or disable the proximity gain compensation | |
| uint8_t | apds9960_get_proximity_gain_compensation (apds9960_handle_t *handle, apds9960_bool_t *enable) |
| get the proximity gain compensation status | |
| uint8_t | apds9960_set_sleep_after_interrupt (apds9960_handle_t *handle, apds9960_bool_t enable) |
| enable or disable sleeping after interrupt | |
| uint8_t | apds9960_get_sleep_after_interrupt (apds9960_handle_t *handle, apds9960_bool_t *enable) |
| get the sleeping after interrupt status | |
| uint8_t | apds9960_set_proximity_mask (apds9960_handle_t *handle, apds9960_proximity_mask_t mask, apds9960_bool_t enable) |
| enable or disable the proximity mask | |
| uint8_t | apds9960_get_proximity_mask (apds9960_handle_t *handle, apds9960_proximity_mask_t mask, apds9960_bool_t *enable) |
| get the proximity mask status | |
| uint8_t | apds9960_set_gesture_proximity_enter_threshold (apds9960_handle_t *handle, uint8_t threshold) |
| set the gesture proximity enter threshold | |
| uint8_t | apds9960_get_gesture_proximity_enter_threshold (apds9960_handle_t *handle, uint8_t *threshold) |
| get the gesture proximity enter threshold | |
| uint8_t | apds9960_set_gesture_proximity_exit_threshold (apds9960_handle_t *handle, uint8_t threshold) |
| set the gesture proximity exit threshold | |
| uint8_t | apds9960_get_gesture_proximity_exit_threshold (apds9960_handle_t *handle, uint8_t *threshold) |
| get the gesture proximity exit threshold | |
| uint8_t | apds9960_set_gesture_fifo_threshold (apds9960_handle_t *handle, apds9960_gesture_fifo_threshold_t threshold) |
| set the gesture fifo threshold | |
| uint8_t | apds9960_get_gesture_fifo_threshold (apds9960_handle_t *handle, apds9960_gesture_fifo_threshold_t *threshold) |
| get the gesture fifo threshold | |
| uint8_t | apds9960_set_gesture_exit_persistence (apds9960_handle_t *handle, apds9960_gesture_exit_persistence_t persistence) |
| set the gesture exit persistence | |
| uint8_t | apds9960_get_gesture_exit_persistence (apds9960_handle_t *handle, apds9960_gesture_exit_persistence_t *persistence) |
| get the gesture exit persistence | |
| uint8_t | apds9960_set_gesture_exit_mask (apds9960_handle_t *handle, uint8_t mask) |
| set the gesture exit mask | |
| uint8_t | apds9960_get_gesture_exit_mask (apds9960_handle_t *handle, uint8_t *mask) |
| get the gesture exit mask | |
| uint8_t | apds9960_set_gesture_gain (apds9960_handle_t *handle, apds9960_gesture_gain_control_t gain) |
| set the gesture gain | |
| uint8_t | apds9960_get_gesture_gain (apds9960_handle_t *handle, apds9960_gesture_gain_control_t *gain) |
| get the gesture gain | |
| uint8_t | apds9960_set_gesture_led_current (apds9960_handle_t *handle, apds9960_gesture_led_current_t current) |
| set the gesture led current | |
| uint8_t | apds9960_get_gesture_led_current (apds9960_handle_t *handle, apds9960_gesture_led_current_t *current) |
| get the gesture led current | |
| uint8_t | apds9960_set_gesture_wait_time (apds9960_handle_t *handle, apds9960_gesture_wait_time_t t) |
| set the gesture wait time | |
| uint8_t | apds9960_get_gesture_wait_time (apds9960_handle_t *handle, apds9960_gesture_wait_time_t *t) |
| get the gesture wait time | |
| uint8_t | apds9960_set_gesture_up_offset (apds9960_handle_t *handle, int8_t offset) |
| set the gesture up offset | |
| uint8_t | apds9960_get_gesture_up_offset (apds9960_handle_t *handle, int8_t *offset) |
| get the gesture up offset | |
| uint8_t | apds9960_set_gesture_down_offset (apds9960_handle_t *handle, int8_t offset) |
| set the gesture down offset | |
| uint8_t | apds9960_get_gesture_down_offset (apds9960_handle_t *handle, int8_t *offset) |
| get the gesture down offset | |
| uint8_t | apds9960_set_gesture_left_offset (apds9960_handle_t *handle, int8_t offset) |
| set the gesture left offset | |
| uint8_t | apds9960_get_gesture_left_offset (apds9960_handle_t *handle, int8_t *offset) |
| get the gesture left offset | |
| uint8_t | apds9960_set_gesture_right_offset (apds9960_handle_t *handle, int8_t offset) |
| set the gesture right offset | |
| uint8_t | apds9960_get_gesture_right_offset (apds9960_handle_t *handle, int8_t *offset) |
| get the gesture right offset | |
| uint8_t | apds9960_set_gesture_pulse_length (apds9960_handle_t *handle, apds9960_gesture_pulse_length_t len) |
| set the gesture pulse length | |
| uint8_t | apds9960_get_gesture_pulse_length (apds9960_handle_t *handle, apds9960_gesture_pulse_length_t *len) |
| get the gesture pulse length | |
| uint8_t | apds9960_set_gesture_pulse_count (apds9960_handle_t *handle, uint16_t count) |
| set the gesture pulse count | |
| uint8_t | apds9960_get_gesture_pulse_count (apds9960_handle_t *handle, uint16_t *count) |
| get the gesture pulse count | |
| uint8_t | apds9960_set_gesture_dimension (apds9960_handle_t *handle, apds9960_gesture_dimension_select_t s) |
| set the gesture dimension | |
| uint8_t | apds9960_get_gesture_dimension_select (apds9960_handle_t *handle, apds9960_gesture_dimension_select_t *s) |
| get the gesture dimension | |
| uint8_t | apds9960_gesture_fifo_clear (apds9960_handle_t *handle) |
| clear the gesture fifo status | |
| uint8_t | apds9960_set_gesture_interrupt (apds9960_handle_t *handle, apds9960_bool_t enable) |
| enable or disable the gesture interrupt | |
| uint8_t | apds9960_get_gesture_interrupt (apds9960_handle_t *handle, apds9960_bool_t *enable) |
| get the gesture interrupt status | |
| uint8_t | apds9960_set_gesture_mode (apds9960_handle_t *handle, apds9960_bool_t enable) |
| enable or disable the gesture mode | |
| uint8_t | apds9960_get_gesture_mode (apds9960_handle_t *handle, apds9960_bool_t *enable) |
| get the gesture mode status | |
| uint8_t | apds9960_get_gesture_fifo_level (apds9960_handle_t *handle, uint8_t *level) |
| get the gesture fifo level | |
| uint8_t | apds9960_get_gesture_status (apds9960_handle_t *handle, uint8_t *status) |
| get the gesture status | |
| uint8_t | apds9960_force_interrupt (apds9960_handle_t *handle) |
| force an interrupt | |
| uint8_t | apds9960_proximity_interrupt_clear (apds9960_handle_t *handle) |
| clear the proximity interrupt | |
| uint8_t | apds9960_als_interrupt_clear (apds9960_handle_t *handle) |
| clear the als interrupt | |
| uint8_t | apds9960_all_non_gesture_interrupt_clear (apds9960_handle_t *handle) |
| clear the all not gesture interrupt | |
apds9960 basic driver modules
| #define APDS9960_GESTURE_SENSITIVITY_1 50 |
50
Definition at line 67 of file driver_apds9960.h.
| #define APDS9960_GESTURE_SENSITIVITY_2 20 |
20
Definition at line 71 of file driver_apds9960.h.
| #define APDS9960_GESTURE_THRESHOLD 10 |
| typedef struct apds9960_handle_s apds9960_handle_t |
apds9960 handle structure definition
| typedef struct apds9960_info_s apds9960_info_t |
apds9960 information structure definition
apds9960 als and color gain enumeration definition
| Enumerator | |
|---|---|
| APDS9960_ALS_COLOR_GAIN_1X | 1x |
| APDS9960_ALS_COLOR_GAIN_4X | 4x |
| APDS9960_ALS_COLOR_GAIN_16X | 16x |
| APDS9960_ALS_COLOR_GAIN_64X | 64x |
Definition at line 179 of file driver_apds9960.h.
apds9960 als interrupt cycle enumeration definition
Definition at line 123 of file driver_apds9960.h.
| enum apds9960_bool_t |
apds9960 bool enumeration definition
| Enumerator | |
|---|---|
| APDS9960_BOOL_FALSE | false |
| APDS9960_BOOL_TRUE | true |
Definition at line 77 of file driver_apds9960.h.
| enum apds9960_conf_t |
apds9960 conf enumeration definition
Definition at line 86 of file driver_apds9960.h.
apds9960 gesture dimension select enumeration definition
Definition at line 305 of file driver_apds9960.h.
apds9960 gesture exit persistence enumeration definition
Definition at line 246 of file driver_apds9960.h.
apds9960 gesture fifo threshold enumeration definition
Definition at line 235 of file driver_apds9960.h.
apds9960 gesture gain control enumeration definition
| Enumerator | |
|---|---|
| APDS9960_GESTURE_GAIN_1X | 1x |
| APDS9960_GESTURE_GAIN_2X | 2x |
| APDS9960_GESTURE_GAIN_4X | 4x |
| APDS9960_GESTURE_GAIN_8X | 8x |
Definition at line 257 of file driver_apds9960.h.
apds9960 gesture led current enumeration definition
| Enumerator | |
|---|---|
| APDS9960_GESTURE_LED_CURRENT_100_MA | 100 mA |
| APDS9960_GESTURE_LED_CURRENT_50_MA | 50 mA |
| APDS9960_GESTURE_LED_CURRENT_25_MA | 25 mA |
| APDS9960_GESTURE_LED_CURRENT_12P5_MA | 12.5 mA |
Definition at line 268 of file driver_apds9960.h.
apds9960 gesture pulse length enumeration definition
| Enumerator | |
|---|---|
| APDS9960_GESTURE_PULSE_LENGTH_4_US | 4 us |
| APDS9960_GESTURE_PULSE_LENGTH_8_US | 8 us |
| APDS9960_GESTURE_PULSE_LENGTH_16_US | 16 us |
| APDS9960_GESTURE_PULSE_LENGTH_32_US | 32 us |
Definition at line 294 of file driver_apds9960.h.
apds9960 gesture status enumeration definition
| Enumerator | |
|---|---|
| APDS9960_GESTURE_STATUS_FIFO_OVERFLOW | gesture fifo overflow |
| APDS9960_GESTURE_STATUS_FIFO_VALID | gesture fifo data |
Definition at line 315 of file driver_apds9960.h.
apds9960 gesture wait time enumeration definition
Definition at line 279 of file driver_apds9960.h.
apds9960 interrupt status enumeration definition
Definition at line 324 of file driver_apds9960.h.
| enum apds9960_led_boost_t |
apds9960 led boost enumeration definition
| Enumerator | |
|---|---|
| APDS9960_LED_BOOST_100_PERCENTAGE | 100% |
| APDS9960_LED_BOOST_150_PERCENTAGE | 150% |
| APDS9960_LED_BOOST_200_PERCENTAGE | 200% |
| APDS9960_LED_BOOST_300_PERCENTAGE | 300% |
Definition at line 199 of file driver_apds9960.h.
apds9960 led current enumeration definition
| Enumerator | |
|---|---|
| APDS9960_LED_CURRENT_100_MA | 100 mA |
| APDS9960_LED_CURRENT_50_MA | 50 mA |
| APDS9960_LED_CURRENT_25_MA | 25 mA |
| APDS9960_LED_CURRENT_12P5_MA | 12.5 mA |
Definition at line 157 of file driver_apds9960.h.
apds9960 proximity gain enumeration definition
| Enumerator | |
|---|---|
| APDS9960_PROXIMITY_GAIN_1X | 1x |
| APDS9960_PROXIMITY_GAIN_2X | 2x |
| APDS9960_PROXIMITY_GAIN_4X | 4x |
| APDS9960_PROXIMITY_GAIN_8X | 8x |
Definition at line 168 of file driver_apds9960.h.
apds9960 proximity interrupt cycle enumeration definition
Definition at line 100 of file driver_apds9960.h.
apds9960 proximity mask enumeration definition
Definition at line 224 of file driver_apds9960.h.
apds9960 proximity pulse length enumeration definition
| Enumerator | |
|---|---|
| APDS9960_PROXIMITY_PULSE_LENGTH_4_US | 4 us |
| APDS9960_PROXIMITY_PULSE_LENGTH_8_US | 8 us |
| APDS9960_PROXIMITY_PULSE_LENGTH_16_US | 16 us |
| APDS9960_PROXIMITY_PULSE_LENGTH_32_US | 32 us |
Definition at line 146 of file driver_apds9960.h.
apds9960 saturation interrupt enumeration definition
| Enumerator | |
|---|---|
| APDS9960_SATURATION_INTERRUPT_PROXIMITY | proximity saturation interrupt |
| APDS9960_SATURATION_INTERRUPT_CLEAR_PHOTODIODE | clear photo diode saturation interrupt |
Definition at line 190 of file driver_apds9960.h.
| enum apds9960_status_t |
apds9960 status enumeration definition
Definition at line 210 of file driver_apds9960.h.
| uint8_t apds9960_adc_integration_time_convert_to_data | ( | apds9960_handle_t * | handle, |
| uint8_t | reg, | ||
| float * | ms ) |
convert the register raw data to the integration time
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | reg | register raw data |
| [out] | *ms | pointer to an adc integration time buffer |
Definition at line 1119 of file driver_apds9960.c.
| uint8_t apds9960_adc_integration_time_convert_to_register | ( | apds9960_handle_t * | handle, |
| float | ms, | ||
| uint8_t * | reg ) |
convert the adc integration time to the register raw data
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | ms | integration time |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 1092 of file driver_apds9960.c.
| uint8_t apds9960_all_non_gesture_interrupt_clear | ( | apds9960_handle_t * | handle | ) |
clear the all not gesture interrupt
| [in] | *handle | pointer to an apds9960 handle structure |
Definition at line 4654 of file driver_apds9960.c.
| uint8_t apds9960_als_interrupt_clear | ( | apds9960_handle_t * | handle | ) |
clear the als interrupt
| [in] | *handle | pointer to an apds9960 handle structure |
Definition at line 4618 of file driver_apds9960.c.
| uint8_t apds9960_deinit | ( | apds9960_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to an apds9960 handle structure |
Definition at line 263 of file driver_apds9960.c.
| uint8_t apds9960_force_interrupt | ( | apds9960_handle_t * | handle | ) |
force an interrupt
| [in] | *handle | pointer to an apds9960 handle structure |
Definition at line 4546 of file driver_apds9960.c.
| uint8_t apds9960_gesture_decode | ( | apds9960_handle_t * | handle, |
| uint8_t(*) | data[4], | ||
| uint8_t | len ) |
decode gestures from the fifo data
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | **data | pointer to data buffer |
| [in] | len | length of the data buffer |
Definition at line 532 of file driver_apds9960.c.
| uint8_t apds9960_gesture_fifo_clear | ( | apds9960_handle_t * | handle | ) |
clear the gesture fifo status
| [in] | *handle | pointer to an apds9960 handle structure |
Definition at line 4264 of file driver_apds9960.c.
| uint8_t apds9960_get_adc_integration_time | ( | apds9960_handle_t * | handle, |
| uint8_t * | integration_time ) |
get the adc integration time
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *integration_time | pointer to an adc integration time buffer |
Definition at line 1055 of file driver_apds9960.c.
| uint8_t apds9960_get_als_color_gain | ( | apds9960_handle_t * | handle, |
| apds9960_als_color_gain_t * | gain ) |
get the als color gain
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *gain | pointer to an als color gain buffer |
Definition at line 2236 of file driver_apds9960.c.
| uint8_t apds9960_get_als_interrupt_cycle | ( | apds9960_handle_t * | handle, |
| apds9960_als_interrupt_cycle_t * | cycle ) |
get the als interrupt cycle
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *cycle | pointer to an als interrupt cycle buffer |
Definition at line 1737 of file driver_apds9960.c.
| uint8_t apds9960_get_als_interrupt_high_threshold | ( | apds9960_handle_t * | handle, |
| uint16_t * | threshold ) |
get the als interrupt high threshold
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *threshold | pointer to a high threshold buffer |
Definition at line 1425 of file driver_apds9960.c.
| uint8_t apds9960_get_als_interrupt_low_threshold | ( | apds9960_handle_t * | handle, |
| uint16_t * | threshold ) |
get the als interrupt low threshold
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *threshold | pointer to a low threshold buffer |
Definition at line 1350 of file driver_apds9960.c.
| uint8_t apds9960_get_conf | ( | apds9960_handle_t * | handle, |
| apds9960_conf_t | conf, | ||
| apds9960_bool_t * | enable ) |
get the configuration
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | conf | chip configuration |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 981 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_decode_sensitivity_1 | ( | apds9960_handle_t * | handle, |
| int32_t * | sensitivity ) |
get the gesture decode sensitivity 1
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *sensitivity | pointer to a gesture decode sensitivity buffer |
Definition at line 853 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_decode_sensitivity_2 | ( | apds9960_handle_t * | handle, |
| int32_t * | sensitivity ) |
get the gesture decode sensitivity 2
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *sensitivity | pointer to a gesture decode sensitivity buffer |
Definition at line 907 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_decode_threshold | ( | apds9960_handle_t * | handle, |
| uint8_t * | threshold ) |
get the gesture decode threshold
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *threshold | pointer to a gesture decode threshold buffer |
Definition at line 799 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_dimension_select | ( | apds9960_handle_t * | handle, |
| apds9960_gesture_dimension_select_t * | s ) |
get the gesture dimension
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *s | pointer to a gesture dimension buffer |
Definition at line 4228 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_down_offset | ( | apds9960_handle_t * | handle, |
| int8_t * | offset ) |
get the gesture down offset
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *offset | pointer to a gesture down offset buffer |
Definition at line 3787 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_exit_mask | ( | apds9960_handle_t * | handle, |
| uint8_t * | mask ) |
get the gesture exit mask
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *mask | pointer to an exit mask buffer |
Definition at line 3369 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_exit_persistence | ( | apds9960_handle_t * | handle, |
| apds9960_gesture_exit_persistence_t * | persistence ) |
get the gesture exit persistence
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *persistence | pointer to a gesture exit persistence buffer |
Definition at line 3280 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_fifo_level | ( | apds9960_handle_t * | handle, |
| uint8_t * | level ) |
get the gesture fifo level
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *level | pointer to a gesture fifo level buffer |
Definition at line 4473 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_fifo_threshold | ( | apds9960_handle_t * | handle, |
| apds9960_gesture_fifo_threshold_t * | threshold ) |
get the gesture fifo threshold
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *threshold | pointer to a gesture fifo threshold buffer |
Definition at line 3198 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_gain | ( | apds9960_handle_t * | handle, |
| apds9960_gesture_gain_control_t * | gain ) |
get the gesture gain
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *gain | pointer to a gesture gain buffer |
Definition at line 3451 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_interrupt | ( | apds9960_handle_t * | handle, |
| apds9960_bool_t * | enable ) |
get the gesture interrupt status
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 4354 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_led_current | ( | apds9960_handle_t * | handle, |
| apds9960_gesture_led_current_t * | current ) |
get the gesture led current
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *current | pointer to a gesture led current buffer |
Definition at line 3533 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_left_offset | ( | apds9960_handle_t * | handle, |
| int8_t * | offset ) |
get the gesture left offset
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *offset | pointer to a gesture left offset buffer |
Definition at line 3877 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_mode | ( | apds9960_handle_t * | handle, |
| apds9960_bool_t * | enable ) |
get the gesture mode status
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 4436 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_proximity_enter_threshold | ( | apds9960_handle_t * | handle, |
| uint8_t * | threshold ) |
get the gesture proximity enter threshold
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *threshold | pointer to a gesture proximity enter threshold buffer |
Definition at line 3042 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_proximity_exit_threshold | ( | apds9960_handle_t * | handle, |
| uint8_t * | threshold ) |
get the gesture proximity exit threshold
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *threshold | pointer to a gesture proximity exit threshold buffer |
Definition at line 3116 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_pulse_count | ( | apds9960_handle_t * | handle, |
| uint16_t * | count ) |
get the gesture pulse count
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *count | pointer to a gesture pulse count buffer |
Definition at line 4146 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_pulse_length | ( | apds9960_handle_t * | handle, |
| apds9960_gesture_pulse_length_t * | len ) |
get the gesture pulse length
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *len | pointer to a gesture pulse length buffer |
Definition at line 4057 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_right_offset | ( | apds9960_handle_t * | handle, |
| int8_t * | offset ) |
get the gesture right offset
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *offset | pointer to a gesture right offset buffer |
Definition at line 3967 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_status | ( | apds9960_handle_t * | handle, |
| uint8_t * | status ) |
get the gesture status
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 4510 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_up_offset | ( | apds9960_handle_t * | handle, |
| int8_t * | offset ) |
get the gesture up offset
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *offset | pointer to a gesture up offset buffer |
Definition at line 3697 of file driver_apds9960.c.
| uint8_t apds9960_get_gesture_wait_time | ( | apds9960_handle_t * | handle, |
| apds9960_gesture_wait_time_t * | t ) |
get the gesture wait time
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *t | pointer to a gesture wait time buffer |
Definition at line 3615 of file driver_apds9960.c.
| uint8_t apds9960_get_led_boost | ( | apds9960_handle_t * | handle, |
| apds9960_led_boost_t * | boost ) |
get the led boost
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *boost | pointer to a led boost buffer |
Definition at line 2402 of file driver_apds9960.c.
| uint8_t apds9960_get_led_current | ( | apds9960_handle_t * | handle, |
| apds9960_led_current_t * | current ) |
get the led current
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *current | pointer to a led current buffer |
Definition at line 2072 of file driver_apds9960.c.
| uint8_t apds9960_get_proximity_down_left_offset | ( | apds9960_handle_t * | handle, |
| int8_t * | offset ) |
get the proximity down left offset
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *offset | pointer to a proximity offset buffer |
Definition at line 2712 of file driver_apds9960.c.
| uint8_t apds9960_get_proximity_gain | ( | apds9960_handle_t * | handle, |
| apds9960_proximity_gain_t * | gain ) |
get the proximity gain
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *gain | pointer to a proximity gain buffer |
Definition at line 2154 of file driver_apds9960.c.
| uint8_t apds9960_get_proximity_gain_compensation | ( | apds9960_handle_t * | handle, |
| apds9960_bool_t * | enable ) |
get the proximity gain compensation status
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 2802 of file driver_apds9960.c.
| uint8_t apds9960_get_proximity_interrupt_cycle | ( | apds9960_handle_t * | handle, |
| apds9960_proximity_interrupt_cycle_t * | cycle ) |
get the proximity interrupt cycle
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *cycle | pointer to a proximity interrupt cycle buffer |
Definition at line 1655 of file driver_apds9960.c.
| uint8_t apds9960_get_proximity_interrupt_high_threshold | ( | apds9960_handle_t * | handle, |
| uint8_t * | threshold ) |
get the proximity interrupt high threshold
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *threshold | pointer to a high threshold buffer |
Definition at line 1573 of file driver_apds9960.c.
| uint8_t apds9960_get_proximity_interrupt_low_threshold | ( | apds9960_handle_t * | handle, |
| uint8_t * | threshold ) |
get the proximity interrupt low threshold
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *threshold | pointer to a low threshold buffer |
Definition at line 1499 of file driver_apds9960.c.
| uint8_t apds9960_get_proximity_mask | ( | apds9960_handle_t * | handle, |
| apds9960_proximity_mask_t | mask, | ||
| apds9960_bool_t * | enable ) |
get the proximity mask status
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | mask | proximity mask |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 2968 of file driver_apds9960.c.
| uint8_t apds9960_get_proximity_pulse_count | ( | apds9960_handle_t * | handle, |
| uint16_t * | count ) |
get the proximity pulse count
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *count | pointer to a proximity pulse count buffer |
Definition at line 1990 of file driver_apds9960.c.
| uint8_t apds9960_get_proximity_pulse_length | ( | apds9960_handle_t * | handle, |
| apds9960_proximity_pulse_length_t * | len ) |
get the proximity pulse length
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *len | pointer to a proximity pulse length buffer |
Definition at line 1901 of file driver_apds9960.c.
| uint8_t apds9960_get_proximity_up_right_offset | ( | apds9960_handle_t * | handle, |
| int8_t * | offset ) |
get the proximity up right offset
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *offset | pointer to a proximity offset buffer |
Definition at line 2622 of file driver_apds9960.c.
| uint8_t apds9960_get_saturation_interrupt | ( | apds9960_handle_t * | handle, |
| apds9960_saturation_interrupt_t | saturation, | ||
| apds9960_bool_t * | enable ) |
get the saturation interrupt
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | saturation | saturation interrupt type |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 2320 of file driver_apds9960.c.
| uint8_t apds9960_get_sleep_after_interrupt | ( | apds9960_handle_t * | handle, |
| apds9960_bool_t * | enable ) |
get the sleeping after interrupt status
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 2884 of file driver_apds9960.c.
| uint8_t apds9960_get_status | ( | apds9960_handle_t * | handle, |
| uint8_t * | status ) |
get the status
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 2439 of file driver_apds9960.c.
| uint8_t apds9960_get_wait_long | ( | apds9960_handle_t * | handle, |
| apds9960_bool_t * | enable ) |
get the wait long status
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 1819 of file driver_apds9960.c.
| uint8_t apds9960_get_wait_time | ( | apds9960_handle_t * | handle, |
| uint8_t * | wait_time ) |
get the wait time
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *wait_time | pointer to a wait time buffer |
Definition at line 1183 of file driver_apds9960.c.
| uint8_t apds9960_info | ( | apds9960_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to an apds9960 info structure |
Definition at line 4802 of file driver_apds9960.c.
| uint8_t apds9960_init | ( | apds9960_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to an apds9960 handle structure |
Definition at line 168 of file driver_apds9960.c.
| uint8_t apds9960_irq_handler | ( | apds9960_handle_t * | handle | ) |
irq handler
| [in] | *handle | pointer to an apds9960 handle structure |
Definition at line 316 of file driver_apds9960.c.
| uint8_t apds9960_proximity_interrupt_clear | ( | apds9960_handle_t * | handle | ) |
clear the proximity interrupt
| [in] | *handle | pointer to an apds9960 handle structure |
Definition at line 4582 of file driver_apds9960.c.
| uint8_t apds9960_read_gesture_fifo | ( | apds9960_handle_t * | handle, |
| uint8_t(*) | data[4], | ||
| uint8_t * | len ) |
read data from the gesture fifo
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | **data | pointer to a data buffer |
| [in,out] | *len | pointer to a data length buffer |
Definition at line 4692 of file driver_apds9960.c.
| uint8_t apds9960_read_proximity | ( | apds9960_handle_t * | handle, |
| uint8_t * | proximity ) |
read the proximity data
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *proximity | pointer to a proximity buffer |
Definition at line 2540 of file driver_apds9960.c.
| uint8_t apds9960_read_rgbc | ( | apds9960_handle_t * | handle, |
| uint16_t * | red, | ||
| uint16_t * | green, | ||
| uint16_t * | blue, | ||
| uint16_t * | clear ) |
read the rgbc data
| [in] | *handle | pointer to an apds9960 handle structure |
| [out] | *red | pointer to a red buffer |
| [out] | *green | pointer to a green buffer |
| [out] | *blue | pointer to a blue buffer |
| [out] | *clear | pointer to a clear buffer |
Definition at line 2479 of file driver_apds9960.c.
| uint8_t apds9960_set_adc_integration_time | ( | apds9960_handle_t * | handle, |
| uint8_t | integration_time ) |
set the adc integration time
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | integration_time | adc integration time |
Definition at line 1018 of file driver_apds9960.c.
| uint8_t apds9960_set_als_color_gain | ( | apds9960_handle_t * | handle, |
| apds9960_als_color_gain_t | gain ) |
set the als color gain
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | gain | als color gain |
Definition at line 2191 of file driver_apds9960.c.
| uint8_t apds9960_set_als_interrupt_cycle | ( | apds9960_handle_t * | handle, |
| apds9960_als_interrupt_cycle_t | cycle ) |
set the als interrupt cycle
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | cycle | als interrupt cycle |
Definition at line 1692 of file driver_apds9960.c.
| uint8_t apds9960_set_als_interrupt_high_threshold | ( | apds9960_handle_t * | handle, |
| uint16_t | threshold ) |
set the als interrupt high threshold
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | threshold | high threshold |
Definition at line 1387 of file driver_apds9960.c.
| uint8_t apds9960_set_als_interrupt_low_threshold | ( | apds9960_handle_t * | handle, |
| uint16_t | threshold ) |
set the als interrupt low threshold
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | threshold | low threshold |
Definition at line 1312 of file driver_apds9960.c.
| uint8_t apds9960_set_conf | ( | apds9960_handle_t * | handle, |
| apds9960_conf_t | conf, | ||
| apds9960_bool_t | enable ) |
set the configuration
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | conf | chip configuration |
| [in] | enable | bool value |
Definition at line 935 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_decode_sensitivity_1 | ( | apds9960_handle_t * | handle, |
| int32_t | sensitivity ) |
set the gesture decode sensitivity 1
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | sensitivity | gesture decode sensitivity |
Definition at line 826 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_decode_sensitivity_2 | ( | apds9960_handle_t * | handle, |
| int32_t | sensitivity ) |
set the gesture decode sensitivity 2
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | sensitivity | gesture decode sensitivity |
Definition at line 880 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_decode_threshold | ( | apds9960_handle_t * | handle, |
| uint8_t | threshold ) |
set the gesture decode threshold
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | threshold | gesture decode threshold |
Definition at line 772 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_dimension | ( | apds9960_handle_t * | handle, |
| apds9960_gesture_dimension_select_t | s ) |
set the gesture dimension
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | s | gesture dimension |
Definition at line 4183 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_down_offset | ( | apds9960_handle_t * | handle, |
| int8_t | offset ) |
set the gesture down offset
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | offset | gesture down offset |
Definition at line 3742 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_exit_mask | ( | apds9960_handle_t * | handle, |
| uint8_t | mask ) |
set the gesture exit mask
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | mask | exit mask |
Definition at line 3318 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_exit_persistence | ( | apds9960_handle_t * | handle, |
| apds9960_gesture_exit_persistence_t | persistence ) |
set the gesture exit persistence
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | persistence | gesture exit persistence |
Definition at line 3235 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_fifo_threshold | ( | apds9960_handle_t * | handle, |
| apds9960_gesture_fifo_threshold_t | threshold ) |
set the gesture fifo threshold
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | threshold | gesture fifo threshold |
Definition at line 3153 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_gain | ( | apds9960_handle_t * | handle, |
| apds9960_gesture_gain_control_t | gain ) |
set the gesture gain
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | gain | gesture gain |
Definition at line 3406 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_interrupt | ( | apds9960_handle_t * | handle, |
| apds9960_bool_t | enable ) |
enable or disable the gesture interrupt
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | enable | bool value |
Definition at line 4309 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_led_current | ( | apds9960_handle_t * | handle, |
| apds9960_gesture_led_current_t | current ) |
set the gesture led current
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | current | gesture led current |
Definition at line 3488 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_left_offset | ( | apds9960_handle_t * | handle, |
| int8_t | offset ) |
set the gesture left offset
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | offset | gesture left offset |
Definition at line 3832 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_mode | ( | apds9960_handle_t * | handle, |
| apds9960_bool_t | enable ) |
enable or disable the gesture mode
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | enable | bool value |
Definition at line 4391 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_proximity_enter_threshold | ( | apds9960_handle_t * | handle, |
| uint8_t | threshold ) |
set the gesture proximity enter threshold
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | threshold | gesture proximity enter threshold |
Definition at line 3005 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_proximity_exit_threshold | ( | apds9960_handle_t * | handle, |
| uint8_t | threshold ) |
set the gesture proximity exit threshold
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | threshold | gesture proximity exit threshold |
Definition at line 3079 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_pulse_count | ( | apds9960_handle_t * | handle, |
| uint16_t | count ) |
set the gesture pulse count
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | count | gesture pulse count |
Definition at line 4095 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_pulse_length | ( | apds9960_handle_t * | handle, |
| apds9960_gesture_pulse_length_t | len ) |
set the gesture pulse length
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | len | gesture pulse length |
Definition at line 4012 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_right_offset | ( | apds9960_handle_t * | handle, |
| int8_t | offset ) |
set the gesture right offset
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | offset | gesture right offset |
Definition at line 3922 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_up_offset | ( | apds9960_handle_t * | handle, |
| int8_t | offset ) |
set the gesture up offset
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | offset | gesture up offset |
Definition at line 3652 of file driver_apds9960.c.
| uint8_t apds9960_set_gesture_wait_time | ( | apds9960_handle_t * | handle, |
| apds9960_gesture_wait_time_t | t ) |
set the gesture wait time
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | t | gesture wait time |
Definition at line 3570 of file driver_apds9960.c.
| uint8_t apds9960_set_led_boost | ( | apds9960_handle_t * | handle, |
| apds9960_led_boost_t | boost ) |
set the led boost
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | boost | led boost |
Definition at line 2357 of file driver_apds9960.c.
| uint8_t apds9960_set_led_current | ( | apds9960_handle_t * | handle, |
| apds9960_led_current_t | current ) |
set the led current
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | current | led current |
Definition at line 2027 of file driver_apds9960.c.
| uint8_t apds9960_set_proximity_down_left_offset | ( | apds9960_handle_t * | handle, |
| int8_t | offset ) |
set the proximity down left offset
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | offset | proximity offset |
Definition at line 2667 of file driver_apds9960.c.
| uint8_t apds9960_set_proximity_gain | ( | apds9960_handle_t * | handle, |
| apds9960_proximity_gain_t | gain ) |
set the proximity gain
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | gain | proximity gain |
Definition at line 2109 of file driver_apds9960.c.
| uint8_t apds9960_set_proximity_gain_compensation | ( | apds9960_handle_t * | handle, |
| apds9960_bool_t | enable ) |
enable or disable the proximity gain compensation
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | enable | bool value |
Definition at line 2757 of file driver_apds9960.c.
| uint8_t apds9960_set_proximity_interrupt_cycle | ( | apds9960_handle_t * | handle, |
| apds9960_proximity_interrupt_cycle_t | cycle ) |
set the proximity interrupt cycle
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | cycle | proximity interrupt cycle |
Definition at line 1610 of file driver_apds9960.c.
| uint8_t apds9960_set_proximity_interrupt_high_threshold | ( | apds9960_handle_t * | handle, |
| uint8_t | threshold ) |
set the proximity interrupt high threshold
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | threshold | high threshold |
Definition at line 1536 of file driver_apds9960.c.
| uint8_t apds9960_set_proximity_interrupt_low_threshold | ( | apds9960_handle_t * | handle, |
| uint8_t | threshold ) |
set the proximity interrupt low threshold
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | threshold | low threshold |
Definition at line 1462 of file driver_apds9960.c.
| uint8_t apds9960_set_proximity_mask | ( | apds9960_handle_t * | handle, |
| apds9960_proximity_mask_t | mask, | ||
| apds9960_bool_t | enable ) |
enable or disable the proximity mask
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | mask | proximity mask |
| [in] | enable | bool value |
Definition at line 2922 of file driver_apds9960.c.
| uint8_t apds9960_set_proximity_pulse_count | ( | apds9960_handle_t * | handle, |
| uint16_t | count ) |
set the proximity pulse count
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | count | proximity pulse count |
Definition at line 1939 of file driver_apds9960.c.
| uint8_t apds9960_set_proximity_pulse_length | ( | apds9960_handle_t * | handle, |
| apds9960_proximity_pulse_length_t | len ) |
set the proximity pulse length
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | len | proximity pulse length |
Definition at line 1856 of file driver_apds9960.c.
| uint8_t apds9960_set_proximity_up_right_offset | ( | apds9960_handle_t * | handle, |
| int8_t | offset ) |
set the proximity up right offset
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | offset | proximity offset |
Definition at line 2577 of file driver_apds9960.c.
| uint8_t apds9960_set_saturation_interrupt | ( | apds9960_handle_t * | handle, |
| apds9960_saturation_interrupt_t | saturation, | ||
| apds9960_bool_t | enable ) |
set the saturation interrupt
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | saturation | saturation interrupt type |
| [in] | enable | bool value |
Definition at line 2274 of file driver_apds9960.c.
| uint8_t apds9960_set_sleep_after_interrupt | ( | apds9960_handle_t * | handle, |
| apds9960_bool_t | enable ) |
enable or disable sleeping after interrupt
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | enable | bool value |
Definition at line 2839 of file driver_apds9960.c.
| uint8_t apds9960_set_wait_long | ( | apds9960_handle_t * | handle, |
| apds9960_bool_t | enable ) |
enable or disable the wait long
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | enable | bool value |
Definition at line 1774 of file driver_apds9960.c.
| uint8_t apds9960_set_wait_time | ( | apds9960_handle_t * | handle, |
| uint8_t | wait_time ) |
set the wait time
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | wait_time | wait time |
Definition at line 1146 of file driver_apds9960.c.
| uint8_t apds9960_wait_time_convert_to_data | ( | apds9960_handle_t * | handle, |
| uint8_t | reg, | ||
| float * | ms ) |
convert the register raw data to the wait time
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | reg | register raw data |
| [out] | *ms | pointer to a wait time buffer |
Definition at line 1267 of file driver_apds9960.c.
| uint8_t apds9960_wait_time_convert_to_register | ( | apds9960_handle_t * | handle, |
| float | ms, | ||
| uint8_t * | reg ) |
convert the wait time to the register raw data
| [in] | *handle | pointer to an apds9960 handle structure |
| [in] | ms | wait time |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 1221 of file driver_apds9960.c.