IoT Drivers  v3.3.0 (S2022)
Engineering in Software Technology
hcsr501.h File Reference

Driver to PIR Motion Detector Module. More...

#include <stdbool.h>
Include dependency graph for hcsr501.h:

Go to the source code of this file.

Typedefs

typedef struct hcsr501_struct * hcsr501_p
 

Functions

hcsr501_p hcsr501_create (volatile uint8_t *port, uint8_t portPin)
 Create the HC-SR501 driver. More...
 
void hcsr501_destroy (hcsr501_p instance)
 Destroy the HC-SR501 driver. More...
 
bool hcsr501_isDetecting (hcsr501_p instance)
 Tell if the sensor is detecting something. More...
 

Detailed Description

Driver to PIR Motion Detector Module.

Author
Ib Havn
Version
1.0.0

Typedef Documentation

◆ hcsr501_p

typedef struct hcsr501_struct* hcsr501_p