Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
aip31068_params.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 Freie Universität Berlin
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
18
#ifndef AIP31068_PARAMS_H
19
#define AIP31068_PARAMS_H
20
21
#include <stdbool.h>
22
23
#include "
periph/i2c.h
"
24
25
#include "
aip31068_regs.h
"
26
27
#ifdef __cplusplus
28
extern
"C"
29
{
30
#endif
31
36
#ifndef AIP31068_PARAM_I2C_DEV
37
38
#define AIP31068_PARAM_I2C_DEV I2C_DEV(0)
39
#endif
40
41
#ifndef AIP31068_PARAM_I2C_ADDR
42
43
#define AIP31068_PARAM_I2C_ADDR (0x7c >> 1)
44
#endif
45
46
#ifndef AIP31068_PARAMS
47
#define AIP31068_PARAMS \
48
{ \
49
.i2c_dev = AIP31068_PARAM_I2C_DEV, \
50
.i2c_addr = AIP31068_PARAM_I2C_ADDR, \
51
.row_count = 2, \
52
.col_count = 16, \
53
.font_size = FONT_SIZE_5x8, \
54
.bit_mode = BITMODE_8_BIT, \
55
}
56
#endif
/* AIP31068_PARAMS */
57
62
static
const
aip31068_params_t
aip31068_params
[] =
63
{
64
AIP31068_PARAMS
65
};
66
67
#ifdef __cplusplus
68
}
69
#endif
70
71
#endif
/* AIP31068_PARAMS_H */
72
aip31068_params
static const aip31068_params_t aip31068_params[]
Allocate some memory to store the actual configuration.
Definition:
aip31068_params.h:62
aip31068_regs.h
Register definitions for the AIP31068 I2C LCD controller.
i2c.h
Low-level I2C peripheral driver interface definition.
aip31068_params_t
AIP31068 device initialization parameters.
Definition:
aip31068.h:77
Generated on Tue Nov 24 2020 19:46:50 by
1.8.17