/******************************************************************************
* Copyright(c)2006 Analog Devices,Inc. All Rights Reserved
* This software is proprietary and confidential to Analog Devices,Inc.and its licensors
*
* File Name		: adi_id3_macros.h
* Function Names: 
*
* Revision		: 1.0
*
* Description	: This file contains the 
*					1. 
*					
*						
*
* Author       : Dushyanth
*
* Date         :
*
******************************************************************************/

/* internal to ID3 */
#define ID3_INTERNAL_NOT_DONE	0x200
#define ID3_INTERNAL_DONE		0x201

#define ID3_SYNC				0x202
#define ID3_PROCESS_TAG			0x203
#define ID3_PROCESS_V1			0x204
#define ID3_PROCESS_V2			0x205
#define ID3_GOTO_ANOTHER_TAG	0x206
#define ID3_RETURN_TO_APP		0x207
#define ID3_PROCESS_FRAME       0x208 
#define ID3_FRAME_PROCESSING_COMPLETE 0x209
#define ID3_TAG_PROCESSED       0x20A
#define ID3_SKIP_DATA			0x20B
#define ID3_READ_FRAME_HEADER   0x20C
#define ID3_PROCESS_FRAME_CONTENTS 0x20D
#define  ID3_PADDING_NOT_FOUND     0x20E
#define  ID3_PADDING_START     0x20F


#define ID3_SYNC_LEN_IN_BYTES		3
#define ID3_VER1_DATA_LEN_IN_BYTES	125

#define ID3_V1_SONG_TITLE_BYTES		30
#define ID3_V1_ARTIST_BYTES			30
#define ID3_V1_ALBUM_BYTES			30
#define ID3_V1_YEAR_BYTES			4
#define ID3_V1_COMMENTS_BYTES		30
#define ID3_V1_GENRE_BYTES			1

#define ID3_REQUIRED_FRAMES         10
#define ID3_REQUIRED_FRAMES_V4      8
#define ID3_FOOTER_SIZE				10

/* V2 macros */

#define ID3_V2_HEADER_SIZE			10
#define ID3_REQUIRED_FRAMES_V2_2    10
#define ID3_REQUIRED_FRAMES_V2_3    10
#define ID3_REQUIRED_FRAMES_V2_4    8

#define ID3_ASCII                  0x30


