1 /* ------------------------------------------------------------------ 2 * Copyright (C) 1998-2009 PacketVideo 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 13 * express or implied. 14 * See the License for the specific language governing permissions 15 * and limitations under the License. 16 * ------------------------------------------------------------------- 17 */ 18 /* 19 20 Filename: s_crc_buffer.h 21 Funtions: 22 23 ------------------------------------------------------------------------------ 24 REVISION HISTORY 25 26 27 Who: Date: MM/DD/YYYY 28 Description: 29 ------------------------------------------------------------------------------ 30 31 32 ---------------------------------------------------------------------------- 33 ; CONTINUE ONLY IF NOT ALREADY DEFINED 34 ----------------------------------------------------------------------------*/ 35 #ifndef S_CRC_BUFFER_H 36 #define S_CRC_BUFFER_H 37 38 /*---------------------------------------------------------------------------- 39 ; INCLUDES 40 ----------------------------------------------------------------------------*/ 41 42 /*---------------------------------------------------------------------------- 43 ; MACROS 44 ; Define module specific macros here 45 ----------------------------------------------------------------------------*/ 46 47 /*---------------------------------------------------------------------------- 48 ; DEFINES 49 ; Include all pre-processor statements here. 50 ----------------------------------------------------------------------------*/ 51 52 /*---------------------------------------------------------------------------- 53 ; EXTERNAL VARIABLES REFERENCES 54 ; Declare variables used in this module but defined elsewhere 55 ----------------------------------------------------------------------------*/ 56 57 /*---------------------------------------------------------------------------- 58 ; SIMPLE TYPEDEF'S 59 ----------------------------------------------------------------------------*/ 60 61 /*---------------------------------------------------------------------------- 62 ; ENUMERATED TYPEDEF'S 63 ----------------------------------------------------------------------------*/ 64 65 /*---------------------------------------------------------------------------- 66 ; STRUCTURES TYPEDEF'S 67 ----------------------------------------------------------------------------*/ 68 typedef struct 69 { 70 unsigned short crcState; 71 unsigned short crcMask; 72 unsigned short crcPoly; 73 } 74 CRC_BUFFER; 75 76 typedef CRC_BUFFER *HANDLE_CRC; 77 78 79 /*---------------------------------------------------------------------------- 80 ; GLOBAL FUNCTION DEFINITIONS 81 ; Function Prototype declaration 82 ----------------------------------------------------------------------------*/ 83 84 85 /*---------------------------------------------------------------------------- 86 ; END 87 ----------------------------------------------------------------------------*/ 88 #endif 89 90 91