Loading...
Searching...
No Matches

Default configuration for PULSE_COUNTER devices. More...

Detailed Description

Default configuration for PULSE_COUNTER devices.

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

Definition in file pulse_counter_params.h.

#include "board.h"
#include "pulse_counter.h"
#include "saul_reg.h"
+ Include dependency graph for pulse_counter_params.h:

Go to the source code of this file.

GPIO pulse counter driver initialization parameters

#define PULSE_COUNTER_GPIO   GPIO_PIN(0, 18)
 The GPIO pin to count pulses of.
 
#define PULSE_COUNTER_GPIO_FLANK   GPIO_FALLING
 The signal flank to count pulses at.
 
#define PULSE_COUNTER_PARAMS
 The pulse counter parameters to initialize the driver with.
 
#define PULSE_COUNTER_SAUL_INFO   { .name = "pulse counter" }
 The SAUL info to use when registering the pulse counter instances.
 
static const pulse_counter_params_t pulse_counter_params []
 PULSE_COUNTER configuration.
 
static const saul_reg_info_t pulse_counter_saul_info []
 Additional meta information to keep in the SAUL registry.
 

Macro Definition Documentation

◆ PULSE_COUNTER_GPIO

#define PULSE_COUNTER_GPIO   GPIO_PIN(0, 18)

The GPIO pin to count pulses of.

Definition at line 38 of file pulse_counter_params.h.

◆ PULSE_COUNTER_GPIO_FLANK

#define PULSE_COUNTER_GPIO_FLANK   GPIO_FALLING

The signal flank to count pulses at.

Definition at line 45 of file pulse_counter_params.h.

◆ PULSE_COUNTER_PARAMS

#define PULSE_COUNTER_PARAMS
Value:
{ .gpio = PULSE_COUNTER_GPIO, \
.gpio_flank = PULSE_COUNTER_GPIO_FLANK }
#define PULSE_COUNTER_GPIO_FLANK
The signal flank to count pulses at.
#define PULSE_COUNTER_GPIO
The GPIO pin to count pulses of.

The pulse counter parameters to initialize the driver with.

Definition at line 52 of file pulse_counter_params.h.

◆ PULSE_COUNTER_SAUL_INFO

#define PULSE_COUNTER_SAUL_INFO   { .name = "pulse counter" }

The SAUL info to use when registering the pulse counter instances.

Definition at line 60 of file pulse_counter_params.h.

Variable Documentation

◆ pulse_counter_params

const pulse_counter_params_t pulse_counter_params[]
static
Initial value:
=
{
}
#define PULSE_COUNTER_PARAMS
The pulse counter parameters to initialize the driver with.

PULSE_COUNTER configuration.

Definition at line 66 of file pulse_counter_params.h.

◆ pulse_counter_saul_info

const saul_reg_info_t pulse_counter_saul_info[]
static
Initial value:
=
{
}
#define PULSE_COUNTER_SAUL_INFO
The SAUL info to use when registering the pulse counter instances.

Additional meta information to keep in the SAUL registry.

Definition at line 74 of file pulse_counter_params.h.