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. More...
 
static const saul_reg_info_t pir_saul_info []
 Additional meta information to keep in the SAUL registry. More...
 
#define PIR_PARAM_GPIO   GPIO_PIN(0, 6)
 Set default configuration parameters for the PIR driver.
 
#define PIR_PARAM_ACTIVE_HIGH   1
 
#define PIR_PARAMS
 
#define PIR_SAUL_INFO   { .name = "pir" }
 

Macro Definition Documentation

◆ PIR_PARAMS

#define PIR_PARAMS
Value:
{ .gpio = PIR_PARAM_GPIO, \
.active_high = PIR_PARAM_ACTIVE_HIGH }

Definition at line 42 of file pir_params.h.

Variable Documentation

◆ pir_params

const pir_params_t pir_params[]
static
Initial value:
=
{
PIR_PARAMS
}

PIR configuration.

Definition at line 53 of file pir_params.h.

◆ pir_saul_info

const saul_reg_info_t pir_saul_info[]
static
Initial value:
=
{
PIR_SAUL_INFO
}

Additional meta information to keep in the SAUL registry.

Definition at line 61 of file pir_params.h.

PIR_PARAM_GPIO
#define PIR_PARAM_GPIO
Set default configuration parameters for the PIR driver.
Definition: pir_params.h:35