Loading...
Searching...
No Matches
srf08_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 Inria
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
19#ifndef SRF08_PARAMS_H
20#define SRF08_PARAMS_H
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#include "board.h"
27#include "srf08.h"
28
33#ifndef SRF08_PARAM_I2C
34#define SRF08_PARAM_I2C I2C_DEV(0)
35#endif
36#ifndef SRF08_PARAM_ADDR
37#define SRF08_PARAM_ADDR (0x70) /* 0xE0 shifted by 1 */
38#endif
39
40#ifndef SRF08_PARAMS
41#define SRF08_PARAMS { .i2c = SRF08_PARAM_I2C, \
42 .addr = SRF08_PARAM_ADDR }
43#endif
49static const srf08_params_t srf08_params[] = {
50 SRF08_PARAMS
51};
52
56#define SRF08_NUMOF ARRAY_SIZE(srf08_params)
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif /* SRF08_PARAMS_H */
Driver definitions for the SRF02 ultrasonic ranger.
static const srf08_params_t srf08_params[]
SRF08 configuration.
Device initialization parameters.
Definition srf08.h:68