Loading...
Searching...
No Matches
mma7660_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 University of California, Berkeley
3 * Copyright (C) 2016 Michael Andersen <m.andersen@cs.berkeley.edu>
4 *
5 * This file is subject to the terms and conditions of the GNU Lesser
6 * General Public License v2.1. See the file LICENSE in the top level
7 * directory for more details.
8 *
9 */
10
11#pragma once
12
23
24#include "board.h"
25#include "saul_reg.h"
26#include "mma7660.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
36#ifndef MMA7660_PARAM_I2C
37#define MMA7660_PARAM_I2C I2C_DEV(0)
38#endif
39#ifndef MMA7660_PARAM_ADDR
40#define MMA7660_PARAM_ADDR (MMA7660_ADDR)
41#endif
42#ifndef MMA7660_PARAM_AMSR
43#define MMA7660_PARAM_AMSR (MMA7660_SR_AM1)
44#endif
45#ifndef MMA7660_PARAM_AWSR
46#define MMA7660_PARAM_AWSR (MMA7660_SR_AW1)
47#endif
48#ifndef MMA7660_PARAM_FILT
49#define MMA7660_PARAM_FILT (1)
50#endif
51
52#ifndef MMA7660_PARAMS
53#define MMA7660_PARAMS { .i2c = MMA7660_PARAM_I2C, \
54 .addr = MMA7660_PARAM_ADDR, \
55 .amsr = MMA7660_PARAM_AMSR, \
56 .awsr = MMA7660_PARAM_AWSR, \
57 .filt = MMA7660_PARAM_FILT}
58#endif
59#ifndef MMA7660_SAUL_INFO
60#define MMA7660_SAUL_INFO { .name = "mma7660" }
61#endif
63
68{
69 MMA7660_PARAMS,
70};
71
76{
77 MMA7660_SAUL_INFO
78};
79
80#ifdef __cplusplus
81}
82#endif
83
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:49
Additional data to collect for each entry.
Definition saul_reg.h:48