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
* 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
9
#pragma once
10
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
#include "board.h"
26
#include "
srf08.h
"
27
32
#ifndef SRF08_PARAM_I2C
33
#define SRF08_PARAM_I2C I2C_DEV(0)
34
#endif
35
#ifndef SRF08_PARAM_ADDR
36
#define SRF08_PARAM_ADDR (0x70)
/* 0xE0 shifted by 1 */
37
#endif
38
39
#ifndef SRF08_PARAMS
40
#define SRF08_PARAMS { .i2c = SRF08_PARAM_I2C, \
41
.addr = SRF08_PARAM_ADDR }
42
#endif
44
48
static
const
srf08_params_t
srf08_params
[] = {
49
SRF08_PARAMS
50
};
51
55
#define SRF08_NUMOF ARRAY_SIZE(srf08_params)
56
57
#ifdef __cplusplus
58
}
59
#endif
60
srf08.h
Driver definitions for the SRF02 ultrasonic ranger.
srf08_params
static const srf08_params_t srf08_params[]
SRF08 configuration.
Definition
srf08_params.h:48
srf08_params_t
Device initialization parameters.
Definition
srf08.h:67
Generated on Thu Jul 3 2025 17:41:20 by
1.13.2