Loading...
Searching...
No Matches
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
28extern "C"
29{
30#endif
31
36#ifndef AIP31068_PARAM_I2C_DEV
38#define AIP31068_PARAM_I2C_DEV I2C_DEV(0)
39#endif
40
41#ifndef AIP31068_PARAM_I2C_ADDR
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 */
63{
64 AIP31068_PARAMS
65};
66
67#ifdef __cplusplus
68}
69#endif
70
71#endif /* AIP31068_PARAMS_H */
static const aip31068_params_t aip31068_params[]
Allocate some memory to store the actual configuration.
Register definitions for the AIP31068 I2C LCD controller.
Low-level I2C peripheral driver interface definition.
AIP31068 device initialization parameters.
Definition aip31068.h:77