mikroSDK Reference Manual
ssd1963.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2023 MikroElektronika d.o.o.
4 ** Contact: https://www.mikroe.com/contact
5 **
6 ** This file is part of the mikroSDK package
7 **
8 ** Commercial License Usage
9 **
10 ** Licensees holding valid commercial NECTO compilers AI licenses may use this
11 ** file in accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and The MikroElektronika Company.
14 ** For licensing terms and conditions see
15 ** https://www.mikroe.com/legal/software-license-agreement.
16 ** For further information use the contact form at
17 ** https://www.mikroe.com/contact.
18 **
19 **
20 ** GNU Lesser General Public License Usage
21 **
22 ** Alternatively, this file may be used for
23 ** non-commercial projects under the terms of the GNU Lesser
24 ** General Public License version 3 as published by the Free Software
25 ** Foundation: https://www.gnu.org/licenses/lgpl-3.0.html.
26 **
27 ** The above copyright notice and this permission notice shall be
28 ** included in all copies or substantial portions of the Software.
29 **
30 ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
31 ** OF MERCHANTABILITY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
32 ** TO THE WARRANTIES FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
33 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
34 ** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
35 ** OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
36 ** OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
37 **
38 ****************************************************************************/
44 #ifndef SSD1963_H
45 #define SSD1963_H
46 
47 #include <stdint.h>
48 #include "hal_gpio.h"
49 #include "gl_types.h"
50 #include "generic_pointer.h"
51 
56 typedef enum
57 {
62 
67 typedef struct
68 {
73  hal_pin_name_t wr;
75  hal_port_name_t data_channel_0;
76  uint32_t data_channel_0_mask;
78  hal_port_name_t data_channel_1;
79  uint32_t data_channel_1_mask;
81  ssd1963_host_interface_t host_interface;
83  uint16_t width;
84  uint16_t height;
86  // ssd1963_color_depth_t color_depth;
88 
108 void ssd1963_init(ssd1963_cfg_t *cfg, gl_driver_t * __generic_ptr driver);
109 
116 void ssd1963_write_command(uint8_t command);
117 
124 void ssd1963_write_param(uint8_t param);
125 
131 uint16_t ssd1963_get_display_width();
132 
138 uint16_t ssd1963_get_display_height();
139  // ssd1963 // mwgroup
142 
143 #endif // SSD1963_H
144 // ------------------------------------------------------------------------- END
ssd1963_write_command
void ssd1963_write_command(uint8_t command)
Send command to SSD1963 Display Controller.
gl_driver_t
The context structure for storing driver configuration.
Definition: gl_types.h:145
ssd1963_cfg_t
SSD1963 Configuration Object.
Definition: ssd1963.h:66
ssd1963_get_display_height
uint16_t ssd1963_get_display_height()
Get display height.
gl_types.h
Declaration of types for Graphic Library.
hal_port_name_t
hal_ll_port_name_t hal_port_name_t
Definition: hal_target.h:60
hal_pin_name_t
hal_ll_pin_name_t hal_pin_name_t
Definition: hal_target.h:59
ssd1963_init
void ssd1963_init(ssd1963_cfg_t *cfg, gl_driver_t *__generic_ptr driver)
SSD1963 Display Controller initialization.
hal_gpio.h
This file contains all the functions prototypes for the GPIO library.
ssd1963_host_interface_t
ssd1963_host_interface_t
SSD1963 Interface Mode.
Definition: ssd1963.h:55
SSD1963_HOST_INTERFACE_8BIT
Definition: ssd1963.h:57
ssd1963_get_display_width
uint16_t ssd1963_get_display_width()
Get display width.
SSD1963_HOST_INTERFACE_16BIT
Definition: ssd1963.h:58
ssd1963_write_param
void ssd1963_write_param(uint8_t param)
Send data to SSD1963 Display Controller.
SSD1963_HOST_INTERFACE_CUSTOM
Definition: ssd1963.h:59