VSF Documented
vsf_disp_solomon_systech_common.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17#ifndef __VSF_DISP_SOLOMON_SYSTECH_COMMON_H__
18#define __VSF_DISP_SOLOMON_SYSTECH_COMMON_H__
19
20/*============================ INCLUDES ======================================*/
21
23
24#if VSF_USE_UI == ENABLED \
25 && ( (VSF_DISP_USE_SSD1306 == ENABLED) \
26 || (VSF_DISP_USE_SSD1316 == ENABLED))
27
28#include "hal/vsf_hal.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34/*============================ MACROS ========================================*/
35/*============================ MACROFIED FUNCTIONS ===========================*/
36
37#define VSF_DISP_SOLOMON_SYSTECH_IIC_WRITE_I(__INSTR) \
38 0x80, (__INSTR)
39#define VSF_DISP_SOLOMON_SYSTECH_IIC_WRITE_D(__DATA) \
40 0xC0, (__DATA)
41
42/*============================ TYPES =========================================*/
43
44#if VSF_HAL_USE_I2C == ENABLED
48#endif
49
51 void *port;
52 struct {
54 int8_t pin; // -1 for unused
55 } cs;
56 struct {
59 } dc;
61
63 void *addr;
64 struct {
66 int8_t pin; // -1 for unused
67 } cs;
68 struct {
71 } dc;
73
74/*============================ GLOBAL VARIABLES ==============================*/
75/*============================ PROTOTYPES ====================================*/
76
77#ifdef __cplusplus
78}
79#endif
80
81#endif // VSF_USE_UI
82#endif // __VSF_DISP_SOLOMON_SYSTECH_COMMON_H__
unsigned char uint8_t
Definition stdint.h:5
signed char int8_t
Definition stdint.h:4
Definition vsf_disp_solomon_systech_common.h:62
uint8_t pin
Definition vsf_disp_solomon_systech_common.h:70
vsf_gpio_t * port
Definition vsf_disp_solomon_systech_common.h:65
int8_t pin
Definition vsf_disp_solomon_systech_common.h:66
struct vsf_disp_solomon_systech_hw_ebi_t::@124 cs
void * addr
Definition vsf_disp_solomon_systech_common.h:63
struct vsf_disp_solomon_systech_hw_ebi_t::@125 dc
Definition vsf_disp_solomon_systech_common.h:45
vsf_i2c_t * port
Definition vsf_disp_solomon_systech_common.h:46
Definition vsf_disp_solomon_systech_common.h:50
void * port
Definition vsf_disp_solomon_systech_common.h:51
int8_t pin
Definition vsf_disp_solomon_systech_common.h:54
struct vsf_disp_solomon_systech_hw_spi_t::@122 cs
struct vsf_disp_solomon_systech_hw_spi_t::@123 dc
uint8_t pin
Definition vsf_disp_solomon_systech_common.h:58
vsf_gpio_t * port
Definition vsf_disp_solomon_systech_common.h:53
Definition vsf_template_gpio.h:942
I2C instance structure for multi-class support.
Definition vsf_template_i2c.h:1056
Generated from commit: vsfteam/vsf@3b461d0