cbs/CbsServer/ServerInc/CbsReceiverTypes.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2003 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:  Contains enumerations and typedefs used by the receiver.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CBSRECEIVERTYPES_H
       
    20 #define CBSRECEIVERTYPES_H
       
    21 
       
    22 // INCLUDES
       
    23 
       
    24 #include <s32std.h>
       
    25 
       
    26 // CONSTANTS
       
    27 
       
    28 // Alphabet/coding indication (GSM 03.38)
       
    29 enum TCbsRecAlphabet
       
    30     {
       
    31     // 7-bit alphabet coding
       
    32     ECbsRecAlphabetDefault,
       
    33     // 8-bit alphabet
       
    34     ECbsRecAlphabet8bit,
       
    35     // UCS2 (Unicode) alphabet coding
       
    36     ECbsRecAlphabetUCS2,
       
    37     // Unspecified coding; Use default coding instead.
       
    38     ECbsRecAlphabetUnspecified
       
    39     };
       
    40 
       
    41 // Language indication (GSM 03.38)
       
    42 enum TCbsRecLanguageIndication
       
    43     {
       
    44     // Language indicated in message page header.
       
    45     ECbsRecLanguageIndicationHeader,
       
    46     // Message content preceded by language indication.
       
    47     ECbsRecLanguageIndicationBody
       
    48     };
       
    49 
       
    50 enum TCbsRecGeographicalScope 
       
    51     {
       
    52     ECbsRecGeographicalScopeCell,
       
    53     ECbsRecGeographicalScopeLAC,
       
    54     ECbsRecGeographicalScopePLMN
       
    55     };
       
    56 
       
    57 // DATA TYPES
       
    58 
       
    59 /**
       
    60 *   This represents the Data Coding Scheme of a CBS message.
       
    61 *
       
    62 *   DCS defines the language, encoding and compression of the message.
       
    63 *
       
    64 *   Refer to GSM specification 03.38 for details.
       
    65 */
       
    66 typedef TUint8 TCbsRecDCS;
       
    67 
       
    68 /**
       
    69 *   This represents the Page Parameter of a CBS message.
       
    70 *
       
    71 *   Coding starts at bit value 0001 for a page value of 1. 0000 is reserved.
       
    72 *
       
    73 *   Bits 0-3 indicate total pages in this message (1..15).
       
    74 *   Bits 4-7 indicate the page number of this message in the current message 
       
    75 *            sequence (1..15).
       
    76 */
       
    77 typedef TUint8 TCbsRecPageParameter;
       
    78 
       
    79 // These types comprise the Serial Number field of the CBS header (16 bits).
       
    80 typedef TUint16 TCbsRecMessageCode;            // actually 10 bits
       
    81 typedef TUint8 TCbsRecUpdateNumber;            // actually 4 bits
       
    82 
       
    83 #endif        // CBSRECEIVERTYPES_H