Loading...
Searching...
No Matches
fxos8700_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 UC Berkeley
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 FXOS8700_PARAMS_H
20#define FXOS8700_PARAMS_H
21
22#include "board.h"
23#include "fxos8700.h"
24#include "saul_reg.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
34#ifndef FXOS8700_PARAM_I2C
38#define FXOS8700_PARAM_I2C I2C_DEV(0)
39#endif
40
41#ifndef FXOS8700_PARAM_ADDR
48#define FXOS8700_PARAM_ADDR 0x1E
49#endif
50
51#ifndef FXOS8700_PARAM_ACC_RANGE
55#define FXOS8700_PARAM_ACC_RANGE FXOS8700_REG_XYZ_DATA_CFG_FS__8G
56#endif
57
58#ifndef FXOS8700_PARAM_RENEW_INTERVAL
62#define FXOS8700_PARAM_RENEW_INTERVAL 1000000ul
63#endif
64
65#ifndef FXOS8700_PARAMS
69#define FXOS8700_PARAMS { .i2c = FXOS8700_PARAM_I2C, \
70 .addr = FXOS8700_PARAM_ADDR, \
71 .acc_range = FXOS8700_PARAM_ACC_RANGE, \
72 .renew_interval = FXOS8700_PARAM_RENEW_INTERVAL }
73#endif
74#ifndef FXOS8700_SAUL_INFO
78#define FXOS8700_SAUL_INFO { .name = "fxos8700" }
79#endif
89
97
98#ifdef __cplusplus
99}
100#endif
101
102#endif /* FXOS8700_PARAMS_H */
Interface definition for the FXOS8700 sensor driver.
static const fxos8700_params_t fxos8700_params[]
FXOS8700 configuration.
static const saul_reg_info_t fxos8700_saul_info[]
Additional meta information to keep in the SAUL registry.
#define FXOS8700_PARAMS
The parameters to initialize the FXOS8700 driver with.
#define FXOS8700_SAUL_INFO
The SAUL info to register the FXOS8700 driver instances with.
SAUL registry interface definition.
Parameters needed for device initialization.
Definition fxos8700.h:69
Additional data to collect for each entry.
Definition saul_reg.h:49