Loading...
Searching...
No Matches

Default configuration for srf04 devices. More...

Detailed Description

Default configuration for srf04 devices.

Author
Semjon Kerner semjo.nosp@m.n.ke.nosp@m.rner@.nosp@m.fu-b.nosp@m.erlin.nosp@m..de

Definition in file srf04_params.h.

#include "board.h"
#include "srf04.h"
+ Include dependency graph for srf04_params.h:

Go to the source code of this file.

Macros

#define SRF04_NUMOF   ARRAY_SIZE(srf04_params)
 Number of SRF04 devices.
 

Variables

static const srf04_params_t srf04_params []
 SRF04 configuration.
 

Default configuration parameters for SRF04 device

#define SRF04_PARAM_TRIGGER   GPIO_PIN(0, 13)
 
#define SRF04_PARAM_ECHO   GPIO_PIN(0, 14)
 
#define SRF04_PARAMS
 

Macro Definition Documentation

◆ SRF04_NUMOF

#define SRF04_NUMOF   ARRAY_SIZE(srf04_params)

Number of SRF04 devices.

Definition at line 58 of file srf04_params.h.

◆ SRF04_PARAM_ECHO

#define SRF04_PARAM_ECHO   GPIO_PIN(0, 14)

Definition at line 37 of file srf04_params.h.

◆ SRF04_PARAM_TRIGGER

#define SRF04_PARAM_TRIGGER   GPIO_PIN(0, 13)

Definition at line 34 of file srf04_params.h.

◆ SRF04_PARAMS

#define SRF04_PARAMS
Value:
{ .trigger = SRF04_PARAM_TRIGGER, \
.echo = SRF04_PARAM_ECHO, \
}

Definition at line 41 of file srf04_params.h.

Variable Documentation

◆ srf04_params

const srf04_params_t srf04_params[]
static
Initial value:
= {
SRF04_PARAMS
}

SRF04 configuration.

Definition at line 51 of file srf04_params.h.