Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
srf08_params.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2020 Inria
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
22
#include "board.h"
23
#include "
srf08.h
"
24
29
#ifndef SRF08_PARAM_I2C
30
#define SRF08_PARAM_I2C I2C_DEV(0)
31
#endif
32
#ifndef SRF08_PARAM_ADDR
33
#define SRF08_PARAM_ADDR (0x70)
/* 0xE0 shifted by 1 */
34
#endif
35
36
#ifndef SRF08_PARAMS
37
#define SRF08_PARAMS { .i2c = SRF08_PARAM_I2C, \
38
.addr = SRF08_PARAM_ADDR }
39
#endif
41
45
static
const
srf08_params_t
srf08_params
[] = {
46
SRF08_PARAMS
47
};
48
52
#define SRF08_NUMOF ARRAY_SIZE(srf08_params)
53
54
#ifdef __cplusplus
55
}
56
#endif
57
srf08.h
Driver definitions for the SRF02 ultrasonic ranger.
srf08_params
static const srf08_params_t srf08_params[]
SRF08 configuration.
Definition
srf08_params.h:45
srf08_params_t
Device initialization parameters.
Definition
srf08.h:67
Generated on Wed Apr 15 2026 07:36:49 by
1.13.2