Loading...
Searching...
No Matches
mag3110_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 HAW Hamburg
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 MAG3110_PARAMS_H
20#define MAG3110_PARAMS_H
21
22#include "board.h"
23#include "saul_reg.h"
24#include "mag3110.h"
25#include "mag3110_reg.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
35#ifndef MAG3110_PARAM_I2C
36#define MAG3110_PARAM_I2C (I2C_DEV(0))
37#endif
38#ifndef MAG3110_PARAM_ADDR
39#define MAG3110_PARAM_ADDR (CONFIG_MAG3110_I2C_ADDRESS)
40#endif
41#ifndef MAG3110_PARAM_OFFSET
42#define MAG3110_PARAM_OFFSET { 0, 0, 0 }
43#endif
44#ifndef MAG3110_PARAMS
45#define MAG3110_PARAMS { .i2c = MAG3110_PARAM_I2C, \
46 .addr = MAG3110_PARAM_ADDR, \
47 .type = MAG3110_ID, \
48 .dros = MAG3110_DROS_DEFAULT, \
49 .offset = MAG3110_PARAM_OFFSET }
50#endif
51#ifndef MAG3110_SAUL_INFO
52#define MAG3110_SAUL_INFO { .name = "mag3110" }
53#endif
60{
61 MAG3110_PARAMS
62};
63
68{
69 MAG3110_SAUL_INFO
70};
71
72#ifdef __cplusplus
73}
74#endif
75
76#endif /* MAG3110_PARAMS_H */
Interface definition for the MAG3110 magnetometer driver.
static const mag3110_params_t mag3110_params[]
MAG3110 configuration.
static const saul_reg_info_t mag3110_saul_info[]
Additional meta information to keep in the SAUL registry.
Register definition for the MAG3110 magnetometer driver.
SAUL registry interface definition.
Configuration parameters.
Definition mag3110.h:115
Additional data to collect for each entry.
Definition saul_reg.h:49