API driver for re200b pir sensor component.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
void | re200b_motion_detect_disable (void) |
Disable re200b pir sensor. More... | |
void | re200b_motion_detect_enable (void) |
Enable re200b pir sensor. More... | |
e_cmp_res | re200b_motion_detect_get_compare_result (void) |
return comparison result More... | |
void | re200b_motion_detect_handler (void) |
re200b_motion_detect_handler which allow to know comparison result (CMP_GREATER or CMP_LESS) More... | |
void | re200b_motion_detect_init (uint32_t ul_acc_minus, uint32_t ul_acc_plus) |
Initialize re200b sensor in order to detect motion. More... | |
void | re200b_motion_detect_reset (void) |
Reset variable used in re200b sensor functions. More... | |
uint32_t | re200b_motion_detection (void) |
Allow to know if a motion was detected. More... | |
Variables | |
static volatile e_cmp_res | g_compare_result = CMP_EQUAL |
indicate type of comparison event(CMP_GREATER or CMP_LESS) More... | |
volatile uint32_t | g_ul_compare_event_flag = false |
indicate if there's any comparison event triggered More... | |