multimediacommscontroller/mmccredpayloadformat/inc/mccredpayloadformatdefs.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:    Provides Red payload format spesific definitions
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MCCREDPAYLOADFORMATDEFS_H
       
    21 #define MCCREDPAYLOADFORMATDEFS_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #ifdef _DEBUG 
       
    26     #include <e32svr.h>
       
    27     #define _DEBUG_RED_DECODE
       
    28     #define _DEBUG_RED_ENCODE 
       
    29 #endif
       
    30 
       
    31 // CONSTANTS
       
    32 const TInt KMaxRedCount             = 1;
       
    33 const TInt KRedHeaderSize           = 4;
       
    34 const TInt KFinalHeaderSize         = 1;
       
    35 const TInt KDefRedCount             = 1;
       
    36 
       
    37 const TInt KPTFieldBits             = 7;
       
    38 const TInt KTSOffsetBits            = 14;
       
    39 const TInt KBlockLengthBits         = 10;
       
    40 const TInt KFBitLength              = 1;
       
    41 
       
    42 // MACROS
       
    43 #ifdef _DEBUG_RED_DECODE
       
    44     #define DP_RED_DECODE(a) { _LIT(KName, a); RDebug::Print(KName); }
       
    45     #define DP_RED_DECODE2(a, b) { _LIT(KName, a); RDebug::Print(KName, b); }
       
    46     #define DP_RED_DECODE3(a, b, c) \
       
    47         { _LIT(KName, a); RDebug::Print(KName, b, c); }
       
    48     #define DP_RED_DECODE4(a, b, c, d) \
       
    49         { _LIT(KName, a); RDebug::Print(KName, b, c, d); }
       
    50     #define DP_RED_DECODE5(a, b, c, d, e) \
       
    51         { _LIT(KName, a); RDebug::Print(KName, b, c, d, e); }
       
    52     #define DP_RED_DECODE6(a, b, c, d, e, f) \
       
    53         { _LIT(KName, a); RDebug::Print(KName, b, c, d, e, f); }
       
    54 #else
       
    55     #define DP_RED_DECODE(a);
       
    56     #define DP_RED_DECODE2(a, b);
       
    57     #define DP_RED_DECODE3(a, b, c);
       
    58     #define DP_RED_DECODE4(a, b, c, d);
       
    59     #define DP_RED_DECODE5(a, b, c, d, e);
       
    60     #define DP_RED_DECODE6(a, b, c, d, e, f);
       
    61 #endif
       
    62 
       
    63 #ifdef _DEBUG_RED_ENCODE
       
    64     #define DP_RED_ENCODE(a) { _LIT(KName, a); RDebug::Print(KName); }
       
    65     #define DP_RED_ENCODE2(a, b) { _LIT(KName, a); RDebug::Print(KName, b); }
       
    66     #define DP_RED_ENCODE3(a, b, c) \
       
    67         { _LIT(KName, a); RDebug::Print(KName, b, c); }
       
    68     #define DP_RED_ENCODE4(a, b, c, d) \
       
    69         { _LIT(KName, a); RDebug::Print(KName, b, c, d); }
       
    70     #define DP_RED_ENCODE5(a, b, c, d, e) \
       
    71         { _LIT(KName, a); RDebug::Print(KName, b, c, d, e); }
       
    72     #define DP_RED_ENCODE6(a, b, c, d, e, f) \
       
    73         { _LIT(KName, a); RDebug::Print(KName, b, c, d, e, f); }  
       
    74 #else
       
    75     #define DP_RED_ENCODE(a);
       
    76     #define DP_RED_ENCODE2(a, b);
       
    77     #define DP_RED_ENCODE3(a, b, c);
       
    78     #define DP_RED_ENCODE4(a, b, c, d);
       
    79     #define DP_RED_ENCODE5(a, b, c, d, e);
       
    80     #define DP_RED_ENCODE6(a, b, c, d, e, f);
       
    81 #endif
       
    82 
       
    83 #endif      // MCCREDPAYLOADFORMATDEFS_H
       
    84             
       
    85 // End of File