⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 text.h

📁 本程序为ST公司开发的源代码
💻 H
字号:
/*******************************************************************************
 *                    CONFIDENTIAL - PHILIPS APM
 *
 *  This is unpublished work is a trade secret. Philips APM owns all rights
 *  to this work and intends to maintain it in confidence to preserve its
 *  trade secret status. Philips Automotive Playback Modules reserves the
 *  right to protect this work as an unpublished copyrighted work in the
 *  event of an inadvertent Automotive Systems also reserves its right.
 *  Those having access to this work mayor deliberate unauthorized publication.
 *  Do not copy it, use it, or disclose the information contained in it
 *  without the written authorization of Philips Automotive Playback Modules.
 ******************************************************************************/
/******************************************************************************/
/*! \file
 *
 *  Project Scope: CDM M8
 *
 *  Organization:  Philips APM-DS
 *
 *  Version Control:
 *    \source       sources/player/text.h
 *    \version      0.1
 *    \author       Wolfgang Werner
 *    \date         31.03.2004
 *
 *  Target Hardware:    Accordo
 *******************************************************************************
 *  \brief        CD-Text management
 *
 *  \par          Change History:
 * - WW040707a    Implement CD-Text debug mode
 * - WW040818a    Implement S-One reading
 * - BB041213a    Improved module power on time
 *
 ****************************************************
 *
 * STM CVS Log:
 *
 * $Log: text.h,v $ * Revision 1.10  2006/09/18 09:55:21  belardi * Corrected CVS keyword usage *
 * Revision 1.9  2006/09/18 09:22:36  belardi
 * Added Log CVS keyword into file header
 *
 * Revision 1.8  2006/09/15 20:17:25  belardi
 * Added Log CVS keyword into file header
 *
 *
 ******************************************************************************/

#ifndef __TEXT_H
#define __TEXT_H

#include "configuration.h"

//all string pac id`s
typedef enum {
  PAC_ID_TITLE      = 0,
  PAC_ID_PERFORMER  = 1,
  PAC_ID_SONGWRITER = 2,
  PAC_ID_COMPOSER   = 3,
  PAC_ID_ARANGER    = 4,
  PAC_ID_MESSAGE    = 5
} t_pack_id;

void   CDText_init(void);

#if (1==HAVE_CDTEXT)

#define PAC_ID_MAX_TO_READ    (PAC_ID_PERFORMER)

void   text_fsm(void);
void   text_idle(void);
void   text_start_reading(void);
uint8  text_available(void);
RETVAL text_get_status(void);
uint8 text_get_state(uint8 get_char_code);
uint8 text_is_block_dbcc(void);
#ifdef APM_PICKUP
void text_read_buffer(uint16 index, uint8 *data_ptr);
t_bool text_get(uint8 tno, t_pack_id pac_id, uint16 *index);
#else
const uint8 *text_get(uint8 tno, t_pack_id pac_id);
#endif
const uint8 *text_get_pack(void);

#define SERVICE_PACK_LEN      16
#define STORED_PACK_LEN       12
#define STORED_PACK_NUM       253
#define CD_TEXT_DATA_OFFSET   1

/* CD_TEXT_BUFFERSIZE = 12*253+1 = 3037 */
#define CD_TEXT_BUFFERSIZE ((STORED_PACK_LEN * STORED_PACK_NUM) + CD_TEXT_DATA_OFFSET)

#if (1 == HAVE_SHOCK_MEMORY)
 #define CD_TEXT_SDRAMBUFFERSIZE (((CD_TEXT_BUFFERSIZE + sizeof(uint32) - 1) * (sizeof(uint32))) / sizeof(uint32))

 extern uint8 *cd_text_buffer;       //[MM]
 extern uint8 *cd_text_sdram_buffer; //[MM]
#endif /*(1 == HAVE_SHOCK_MEMORY)*/

#endif /*(1 == HAVE_CDTEXT)*/

#endif  /* __TEXT_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -