Loading...
Searching...
No Matches
pir_params.h File Reference

Default configuration for PIR devices. More...

Detailed Description

Default configuration for PIR devices.

Author
Hyung-Sin Kim hs.ki.nosp@m.m@cs.nosp@m..berk.nosp@m.eley.nosp@m..edu

Definition in file pir_params.h.

#include "board.h"
#include "pir.h"
#include "saul_reg.h"
+ Include dependency graph for pir_params.h:

Go to the source code of this file.

Variables

static const pir_params_t pir_params []
 PIR configuration.
 
static const saul_reg_info_t pir_saul_info []
 Additional meta information to keep in the SAUL registry.
 

default configuration parameters for the PIR driver

#define PIR_PARAM_GPIO   GPIO_PIN(0, 6)
 GPIO pin the PIR is connected to.
 
#define PIR_PARAM_ACTIVE_HIGH   1
 Signal polarity: 1 means high on active, 0 means low on active.
 
#define PIR_PARAMS
 The PIR configuration parameters.
 
#define PIR_SAUL_INFO   { .name = "PIR" }
 The SAUL information the PIR devices get registered with.
 

Macro Definition Documentation

◆ PIR_PARAM_ACTIVE_HIGH

#define PIR_PARAM_ACTIVE_HIGH   1

Signal polarity: 1 means high on active, 0 means low on active.

Definition at line 44 of file pir_params.h.

◆ PIR_PARAM_GPIO

#define PIR_PARAM_GPIO   GPIO_PIN(0, 6)

GPIO pin the PIR is connected to.

Definition at line 38 of file pir_params.h.

◆ PIR_PARAMS

#define PIR_PARAMS
Value:
{ .gpio = PIR_PARAM_GPIO, \
.active_high = PIR_PARAM_ACTIVE_HIGH }
#define PIR_PARAM_ACTIVE_HIGH
Signal polarity: 1 means high on active, 0 means low on active.
Definition pir_params.h:44
#define PIR_PARAM_GPIO
GPIO pin the PIR is connected to.
Definition pir_params.h:38

The PIR configuration parameters.

Definition at line 51 of file pir_params.h.

◆ PIR_SAUL_INFO

#define PIR_SAUL_INFO   { .name = "PIR" }

The SAUL information the PIR devices get registered with.

Definition at line 59 of file pir_params.h.

Variable Documentation

◆ pir_params

const pir_params_t pir_params[]
static
Initial value:
=
{
}
#define PIR_PARAMS
The PIR configuration parameters.
Definition pir_params.h:51

PIR configuration.

Definition at line 66 of file pir_params.h.

◆ pir_saul_info

const saul_reg_info_t pir_saul_info[]
static
Initial value:
=
{
}
#define PIR_SAUL_INFO
The SAUL information the PIR devices get registered with.
Definition pir_params.h:59

Additional meta information to keep in the SAUL registry.

Definition at line 74 of file pir_params.h.