devsound/a3fcharacterisationtest/src/char_a3f_devsound_compliancesuiteconstants.h
changeset 41 f7bf1ed8db72
parent 26 c36d67f77f75
equal deleted inserted replaced
32:ae690a8c4a18 41:f7bf1ed8db72
   106 enum TPanicCodes
   106 enum TPanicCodes
   107 	{
   107 	{
   108 	EFsmIncorrectErrorPassed = 0,
   108 	EFsmIncorrectErrorPassed = 0,
   109 	EInvalidCallbackCall
   109 	EInvalidCallbackCall
   110 	};
   110 	};
   111 	
   111 
   112 // DevSound events
   112 // DevSound events
   113 enum TMmfDevSoundEvent
   113 enum TMmfDevSoundEvent
   114 	{
   114 	{
   115 	EEventInitialize = 0,
   115 	EEventInitialize = 0,
   116 	EEventInitComplete,
   116 	EEventInitComplete,
   145 static void Panic(const TDesC &aCategory, TInt aReason)
   145 static void Panic(const TDesC &aCategory, TInt aReason)
   146 	{
   146 	{
   147 	User::Panic(aCategory, aReason);
   147 	User::Panic(aCategory, aReason);
   148 	}
   148 	}
   149 
   149 
   150 const TUint8 KFixedSequenceTestSequenceDataX[]=
   150 #ifdef MM_TB101_L
   151     {
   151 		// Valid data for tone sequence. This code should be used for non-ref tests. This is a valid tone sequence for HW
   152     0x53, 0x51, 0x4E, 0x43, // HEADER
   152 		const TUint8 KFixedSequenceTestSequenceDataX[]=
   153     0xFE, 0xFF, // -2 STARTLOOP INDICATOR
   153 		{
   154     0x0A, 0x00,  // Number of times that the sequence will be played
   154 		0x02, 0x4A, 0x3A, 0x69, 0x39, 0xBD, 0xAD, 0xA5,
   155     /* Tone Data constitutes the following:
   155 		0x84, 0x81, 0xD1, 0xD5, 0xB9, 0x94, 0x04, 0x00,
   156       ToneDur,    Freq1,      Vol1,       Freq2       Vol2
   156 		0x27, 0x34, 0x41, 0x0B, 0x2A, 0x82, 0x68, 0x51,
   157     The sequence is arranged in blocks of 8 bits to represent 16 bit values, 
   157 		0x72, 0x19, 0x22, 0xC9, 0x21, 0x47, 0x10, 0x4C,
   158    	which allows more dynamic range, frequency and time values.
   158 		0x85, 0x48, 0x71, 0x06, 0x90, 0x48, 0x85, 0x48,
   159     The tag Low and High mean low and high byte block.
   159 		0x68, 0x20, 0x00
   160     Low    Hi    Low   Hi   Low   Hi    Low   Hi    Low   Hi
   160 		};
   161     */
   161 #else
   162     0x64, 0x00, 0xB8, 0x01, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   162 	// Valid data for tone sequence for reference platform. Below tone data may not work for HW devices
   163     0x64, 0x00, 0xD2, 0x01, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   163 	const TUint8 KFixedSequenceTestSequenceDataX[]=
   164     0x64, 0x00, 0xEE, 0x01, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   164 		{
   165     0x64, 0x00, 0x0B, 0x02, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   165 		0x53, 0x51, 0x4E, 0x43, // HEADER
   166     0x64, 0x00, 0x2A, 0x02, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   166 		0xFE, 0xFF, // -2 STARTLOOP INDICATOR
   167     0x64, 0x00, 0x4B, 0x02, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   167 		0x0A, 0x00,  // Number of times that the sequence will be played
   168     0x64, 0x00, 0x6E, 0x02, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   168 		/* Tone Data constitutes the following:
   169     0x64, 0x00, 0x93, 0x02, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   169 		  ToneDur,    Freq1,      Vol1,       Freq2       Vol2
   170     0x64, 0x00, 0xBA, 0x02, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   170 		The sequence is arranged in blocks of 8 bits to represent 16 bit values,
   171     0x64, 0x00, 0xE4, 0x02, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   171 		which allows more dynamic range, frequency and time values.
   172     0x64, 0x00, 0x3F, 0x03, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   172 		The tag Low and High mean low and high byte block.
   173     0x64, 0x00, 0x70, 0x03, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   173 		Low    Hi    Low   Hi   Low   Hi    Low   Hi    Low   Hi
   174     0x64, 0x00, 0xA4, 0x03, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   174 		*/
   175     0x64, 0x00, 0xDC, 0x03, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   175 		0x64, 0x00, 0xB8, 0x01, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   176     0x64, 0x00, 0x17, 0x04, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   176 		0x64, 0x00, 0xD2, 0x01, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   177     // Silence
   177 		0x64, 0x00, 0xEE, 0x01, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   178     // ToneDur,    Freq1,      Vol1,       Freq2       Vol2
   178 		0x64, 0x00, 0x0B, 0x02, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   179     0x70, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   179 		0x64, 0x00, 0x2A, 0x02, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   180     0xFD, 0xFF, // -3 ENDOFLOOP INDICATOR
   180 		0x64, 0x00, 0x4B, 0x02, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   181     // Another silence
   181 		0x64, 0x00, 0x6E, 0x02, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   182     // ToneDur,    Freq1,      Vol1,       Freq2       Vol2
   182 		0x64, 0x00, 0x93, 0x02, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   183     0x70, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   183 		0x64, 0x00, 0xBA, 0x02, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   184     0xFF, 0xFF // -1 SEQ_CMD_RET INDICATOR
   184 		0x64, 0x00, 0xE4, 0x02, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
   185     };
   185 		0x64, 0x00, 0x3F, 0x03, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
       
   186 		0x64, 0x00, 0x70, 0x03, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
       
   187 		0x64, 0x00, 0xA4, 0x03, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
       
   188 		0x64, 0x00, 0xDC, 0x03, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
       
   189 		0x64, 0x00, 0x17, 0x04, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00,
       
   190 		// Silence
       
   191 		// ToneDur,    Freq1,      Vol1,       Freq2       Vol2
       
   192 		0x70, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
       
   193 		0xFD, 0xFF, // -3 ENDOFLOOP INDICATOR
       
   194 		// Another silence
       
   195 		// ToneDur,    Freq1,      Vol1,       Freq2       Vol2
       
   196 		0x70, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
       
   197 		0xFF, 0xFF // -1 SEQ_CMD_RET INDICATOR
       
   198 		};
       
   199 
       
   200 
       
   201 #endif//#if defined(MM_TB101_L)
       
   202 
   186 
   203 
   187 #endif	// CHAR_A3F_DEVSOUND_COMPLIANCESUITECONSTANTS_H
   204 #endif	// CHAR_A3F_DEVSOUND_COMPLIANCESUITECONSTANTS_H
   188 
   205