Loading...
Searching...
No Matches
mma7660_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 University of California, Berkeley
3 * SPDX-FileCopyrightText: 2016 Michael Andersen <m.andersen@cs.berkeley.edu>
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
19
20#include "board.h"
21#include "saul_reg.h"
22#include "mma7660.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
32#ifndef MMA7660_PARAM_I2C
33#define MMA7660_PARAM_I2C I2C_DEV(0)
34#endif
35#ifndef MMA7660_PARAM_ADDR
36#define MMA7660_PARAM_ADDR (MMA7660_ADDR)
37#endif
38#ifndef MMA7660_PARAM_AMSR
39#define MMA7660_PARAM_AMSR (MMA7660_SR_AM1)
40#endif
41#ifndef MMA7660_PARAM_AWSR
42#define MMA7660_PARAM_AWSR (MMA7660_SR_AW1)
43#endif
44#ifndef MMA7660_PARAM_FILT
45#define MMA7660_PARAM_FILT (1)
46#endif
47
48#ifndef MMA7660_PARAMS
49#define MMA7660_PARAMS { .i2c = MMA7660_PARAM_I2C, \
50 .addr = MMA7660_PARAM_ADDR, \
51 .amsr = MMA7660_PARAM_AMSR, \
52 .awsr = MMA7660_PARAM_AWSR, \
53 .filt = MMA7660_PARAM_FILT}
54#endif
55#ifndef MMA7660_SAUL_INFO
56#define MMA7660_SAUL_INFO { .name = "mma7660" }
57#endif
59
64{
65 MMA7660_PARAMS,
66};
67
72{
73 MMA7660_SAUL_INFO
74};
75
76#ifdef __cplusplus
77}
78#endif
79
Interface definition for the MMA7660 accelerometer driver.
static const saul_reg_info_t mma7660_saul_info[]
Additional meta information to keep in the SAUL registry.
static const mma7660_params_t mma7660_params[]
MMA7660 configuration.
SAUL registry interface definition.
Parameters for an MMA7660 device.
Definition mma7660.h:46
Additional data to collect for each entry.
Definition saul_reg.h:48