The "GR-PEACH_Audio_Playback_7InchLCD_Sample" is a sample code that can provides high-resolution audio playback of FLAC format files. It also allows the user to audio-playback control functions such as play, pause, and stop by manipulating key switches.

Dependencies:   GR-PEACH_video R_BSP TLV320_RBSP USBHost_custom

Fork of GR-PEACH_Audio_Playback_Sample by Renesas

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers disp_graphics.h Source File

disp_graphics.h

00001 /*******************************************************************************
00002 * DISCLAIMER
00003 * This software is supplied by Renesas Electronics Corporation and is only
00004 * intended for use with Renesas products. No other uses are authorized. This
00005 * software is owned by Renesas Electronics Corporation and is protected under
00006 * all applicable laws, including copyright laws.
00007 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
00008 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
00009 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
00010 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
00011 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
00012 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
00013 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
00014 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
00015 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
00016 * Renesas reserves the right, without notice, to make changes to this software
00017 * and to discontinue the availability of this software. By using this software,
00018 * you agree to the additional terms and conditions found by accessing the
00019 * following link:
00020 * http://www.renesas.com/disclaimer*
00021 * Copyright (C) 2015 Renesas Electronics Corporation. All rights reserved.
00022 *******************************************************************************/
00023 
00024 #ifndef DISP_GRAPHICS_H
00025 #define DISP_GRAPHICS_H
00026 
00027 #include "r_typedefs.h"
00028 
00029 /*--- Macro definition ---*/
00030 #define DSP_IMG_FORM_AUTOSEL            (0)
00031 #define DSP_IMG_FORM_RGB888             (1)
00032 #define DSP_IMG_FORM_ARGB8888           (2)
00033 #define DSP_IMG_FORM_ARGB8888_NO_BLEND  (3)
00034 
00035 /*--- User defined types ---*/
00036 typedef struct {
00037     uint32_t        *p_disp_buf;    /* Pointer to a buffer of TFT display.  */
00038                                     /* Refers VDC5 driver to this buffer.  */
00039     uint32_t        *p_back_buf;    /* Pointer to a buffer of TFT display. */
00040                                     /* Uses this buffer for making data of the display image. */
00041     uint32_t        width;          /* The width of TFT display. */
00042     uint32_t        height;         /* The height of TFT display. */
00043     uint32_t        stride;         /* Buffer stride of TFT display. */
00044 } dsp_tftlayer_t;
00045 
00046 /** Fills all area of VRAM with color of black.
00047  *
00048  *  @param p_info Pointer to VRAM structure
00049  */
00050 void dsp_clear_all(const dsp_tftlayer_t * const p_info);
00051 
00052 /** Fills the specified area of VRAM with color of black.
00053  *
00054  *  @param p_info Pointer to VRAM structure
00055  *  @param start_x Display position X
00056  *  @param start_y Display position Y
00057  *  @param size_x The width
00058  *  @param size_y The height
00059  */
00060 void dsp_clear_area(const dsp_tftlayer_t * const p_info, const int32_t start_x, 
00061                  const int32_t start_y, const int32_t size_x, const int32_t size_y);
00062 
00063 /** Draws the specified picture to VRAM.
00064  *
00065  *  @param p_info Pointer to VRAM structure
00066  *  @param start_x Display position X of the picture
00067  *  @param start_y Display position Y of the picture
00068  *  @param pict_id Picture ID
00069  *  @param pict_type Picture type
00070  */
00071 void dsp_draw_picture(const dsp_tftlayer_t * const p_info, const int32_t start_x, 
00072                 const int32_t start_y, const int32_t pict_id, const int32_t pict_type);
00073 
00074 /** Draws the filled rectangle.
00075  *
00076  *  @param p_info Pointer to VRAM structure
00077  *  @param start_x Display position X of rectangle
00078  *  @param start_y Display position Y of rectangle
00079  *  @param size_x The width of rectangle
00080  *  @param size_y The height of rectangle
00081  *  @param fg_col The foreground color of ARGB8888 format
00082  */
00083 void dsp_fill_rect(const dsp_tftlayer_t * const p_info, const int32_t start_x, 
00084     const int32_t start_y, const int32_t size_x, const int32_t size_y, const uint32_t fg_col);
00085 
00086 /** Draws the text string.
00087  *
00088  *  @param p_info Pointer to VRAM structure
00089  *  @param start_x Display position X of the text string
00090  *  @param start_y Display position Y of the text string
00091  *  @param p_str Pointer to the text string
00092  */
00093 void dsp_draw_text30x34(const dsp_tftlayer_t * const p_info, const int32_t start_x, 
00094                                     const int32_t start_y, const char_t * const p_str);
00095 
00096 /** Draws the text string.
00097  *
00098  *  @param p_info Pointer to VRAM structure
00099  *  @param start_x Display position X of the text string
00100  *  @param start_y Display position Y of the text string
00101  *  @param p_str Pointer to the text string
00102  */
00103 void dsp_draw_text15x17(const dsp_tftlayer_t * const p_info, const int32_t start_x, 
00104                                     const int32_t start_y, const char_t * const p_str);
00105 
00106 #endif  /* DISP_GRAPHICS_H */