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 
9 #pragma once
10 
21 #include "board.h"
22 #include "fxos8700.h"
23 #include "saul_reg.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
33 #ifndef FXOS8700_PARAM_I2C
37 #define FXOS8700_PARAM_I2C I2C_DEV(0)
38 #endif
39 
40 #ifndef FXOS8700_PARAM_ADDR
47 #define FXOS8700_PARAM_ADDR 0x1E
48 #endif
49 
50 #ifndef FXOS8700_PARAM_ACC_RANGE
54 #define FXOS8700_PARAM_ACC_RANGE FXOS8700_REG_XYZ_DATA_CFG_FS__8G
55 #endif
56 
57 #ifndef FXOS8700_PARAM_RENEW_INTERVAL
61 #define FXOS8700_PARAM_RENEW_INTERVAL 1000000ul
62 #endif
63 
64 #ifndef FXOS8700_PARAMS
68 #define FXOS8700_PARAMS { .i2c = FXOS8700_PARAM_I2C, \
69  .addr = FXOS8700_PARAM_ADDR, \
70  .acc_range = FXOS8700_PARAM_ACC_RANGE, \
71  .renew_interval = FXOS8700_PARAM_RENEW_INTERVAL }
72 #endif
73 #ifndef FXOS8700_SAUL_INFO
77 #define FXOS8700_SAUL_INFO { .name = "fxos8700" }
78 #endif
85 {
87 };
88 
93 {
95 };
96 
97 #ifdef __cplusplus
98 }
99 #endif
100 
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