Microchip® Advanced Software Framework

re200b.h File Reference

API driver for re200b pir sensor component.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include "compiler.h"
#include "board.h"
#include "acc.h"
#include "pmc.h"

Typedefs

typedef enum _e_cmp_res e_cmp_res
 enumeration of different result for acc comparison More...
 

Enumerations

enum  _e_cmp_res {
  CMP_EQUAL,
  CMP_GREATER,
  CMP_LESS
}
 enumeration of different result for acc comparison More...
 

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...
 

typedef enum _e_cmp_res e_cmp_res

enumeration of different result for acc comparison

enum _e_cmp_res

enumeration of different result for acc comparison

Enumerator
CMP_EQUAL 

equal comparison ( inp=inn)

CMP_GREATER 

greater comparison ( inp>inn)

CMP_LESS 

equal comparison ( inp<inn)