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_tft_scrn.h Source File

disp_tft_scrn.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_TFT_SCRN_H
00025 #define DISP_TFT_SCRN_H
00026 
00027 #include "r_typedefs.h"
00028 #include "display.h"
00029 
00030 /** This function initializes for creating the display image of playback screen.
00031  *
00032  *  @param p_tft Pointer to management data of TFT module.
00033  */
00034 void dsp_init_tft_scrn(dsp_tft_ctrl_t * const p_tft);
00035 
00036 /** This function creates the display image of playback screen.
00037  *
00038  *  @param p_com Pointer to common data in all module.
00039  *  @param p_tft Pointer to management data of TFT module.
00040  *
00041  *  @returns 
00042  *    Returns the number of the display layer to update.
00043  */
00044 uint32_t dsp_make_tft_scrn(const dsp_com_ctrl_t * const p_com, dsp_tft_ctrl_t * const p_tft);
00045 
00046 /** This function converts the touch position of playback screen into the key code.
00047  *
00048  *  @param pos_x Touch X position.
00049  *  @param pos_y Touch Y position.
00050  *
00051  *  @returns 
00052  *    If touch position is on the picture of key, this function returns key code. 
00053  *    Otherwise this function returns "SYS_KEYCODE_NON".
00054  */
00055 SYS_KeyCode dsp_convert_key_tft_scrn(const uint32_t pos_x, const uint32_t pos_y);
00056 
00057 #endif  /* DISP_TFT_SCRN_H */