Header file containing functions prototypes of DC app library. More...
#include "gr55xx.h"
#include "app_io.h"
#include "hal_gdc.h"
#include "hal_gdc_regs.h"
#include "hal_gdc_mipi.h"
Go to the source code of this file.
Classes | |
struct | app_graphics_dc_pin_t |
QSPI IO configuration Structures. More... | |
struct | app_graphics_dc_pins_t |
define DC pins More... | |
struct | app_graphics_dc_params_t |
Define init params for DC. More... | |
struct | app_graphics_dc_framelayer_t |
Define DC Frame Layer configuration. More... | |
struct | app_graphics_dc_cmd_t |
Define Control Command for DC Frame. More... | |
Typedefs | |
typedef void(* | graphics_dc_irq_event_notify_cb) (uint32_t evt) |
DC IRQ callback definition. More... | |
typedef void(* | graphics_dc_set_refresh_area_cb) (uint32_t mark, uint32_t x_start, uint32_t x_end, uint32_t y_start, uint32_t y_end) |
DC Refresh callback definition. More... | |
Functions | |
uint16_t | graphics_dc_init (app_graphics_dc_params_t *dc_params, graphics_dc_irq_event_notify_cb evt_cb) |
init Graphics DC dev More... | |
void | graphics_dc_deinit (void) |
de-init Graphics DC dev, just called when needed to reboot/reset More... | |
void | graphics_dc_pins_reinit (void) |
re-init i/o for Graphics DC dev with pre-init i/o setting More... | |
void | app_graphics_dc_set_power_state (graphics_dc_power_state_e state) |
Switch power state for DC module. More... | |
void | app_graphics_dc_freq_set (graphics_dc_clock_freq_e clock_freq) |
DC clock frequency set. More... | |
void | app_graphics_dc_spi_send (uint8_t cmd_8bit, uint32_t address_24bit, uint8_t *data, uint32_t length) |
Send 1 Byte CMD,3 Byte ADDR And N Byte Data in 1-wire SPI Mode. More... | |
void | app_graphics_dc_dspi_send_cmd_in_3wire_1lane (uint8_t cmd) |
Send single cmd in 3-wire mode for DSPI (no DCX and 1 more MSB Bit for cmd indicator) More... | |
void | app_graphics_dc_dspi_send_cmd_data_in_3wire_1lane (uint8_t cmd, uint8_t data) |
Send single cmd &data in 3-wire mode for DSPI (no DCX and 1 more MSB Bit for cmd/data indicator) More... | |
void | app_graphics_dc_dspi_send_cmd_data_in_4wire_2lane (uint16_t cmd, uint16_t data) |
Send cmd &data in 4-wire mode for DSPI (DCX as SD1, and 1 more MSB Bit for cmd/data indicator) More... | |
void | app_graphics_dc_dspi_send_cmd_datas_in_4wire_2lane (uint16_t cmd, uint16_t *data, int length) |
Send cmd &data in 4-wire mode for DSPI (DCX as SD1, and 1 more MSB Bit for cmd/data indicator) More... | |
app_graphics_dc_frame_result_e | app_graphics_dc_send_single_frame (uint32_t which_layer, app_graphics_dc_framelayer_t *frame_layer, app_graphics_dc_cmd_t *dc_cmd, app_graphics_dc_access_type_e access_type) |
Send one whole frame by DC. More... | |
Header file containing functions prototypes of DC app library.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file app_graphics_dc.h.