Loading...
Searching...
No Matches
fxos8700_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 UC Berkeley
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "fxos8700.h"
20#include "saul_reg.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30#ifndef FXOS8700_PARAM_I2C
34#define FXOS8700_PARAM_I2C I2C_DEV(0)
35#endif
36
37#ifndef FXOS8700_PARAM_ADDR
44#define FXOS8700_PARAM_ADDR 0x1E
45#endif
46
47#ifndef FXOS8700_PARAM_ACC_RANGE
51#define FXOS8700_PARAM_ACC_RANGE FXOS8700_REG_XYZ_DATA_CFG_FS__8G
52#endif
53
54#ifndef FXOS8700_PARAM_RENEW_INTERVAL
58#define FXOS8700_PARAM_RENEW_INTERVAL 1000000ul
59#endif
60
61#ifndef FXOS8700_PARAMS
65#define FXOS8700_PARAMS { .i2c = FXOS8700_PARAM_I2C, \
66 .addr = FXOS8700_PARAM_ADDR, \
67 .acc_range = FXOS8700_PARAM_ACC_RANGE, \
68 .renew_interval = FXOS8700_PARAM_RENEW_INTERVAL }
69#endif
70#ifndef FXOS8700_SAUL_INFO
74#define FXOS8700_SAUL_INFO { .name = "fxos8700" }
75#endif
77
85
93
94#ifdef __cplusplus
95}
96#endif
97
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:68
Additional data to collect for each entry.
Definition saul_reg.h:48