rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | /*============================================================================*/ |
| 2 | /* eCall ANSI C fixed-point reference source code */ |
| 3 | /* */ |
| 4 | /* File: ecall_rom.h */ |
| 5 | /* Version: 8.6.0 (Rel8) / 9.4.0 (Rel9) */ |
| 6 | /* Date: 2011-02-08 */ |
| 7 | /* Description: ROM data arrays (header file) */ |
| 8 | /*----------------------------------------------------------------------------*/ |
| 9 | |
| 10 | #ifndef ECALL_ROM_H_ |
| 11 | #define ECALL_ROM_H_ |
| 12 | |
| 13 | #include "ecall_defines.h" |
| 14 | |
| 15 | |
| 16 | /*============================================================================*/ |
| 17 | /* Synchronization */ |
| 18 | /*----------------------------------------------------------------------------*/ |
| 19 | |
| 20 | extern const Int16 wakeupSin500[16]; |
| 21 | extern const Int16 wakeupCos500[16]; |
| 22 | extern const Int16 wakeupSin800[10]; |
| 23 | extern const Int16 wakeupCos800[10]; |
| 24 | |
| 25 | extern const Int16 syncPulseForm[5]; |
| 26 | extern const Int16 syncSequence[15]; |
| 27 | extern const Int16 syncIndexPreamble[SYNC_IDXLEN]; |
| 28 | extern const Int16 syncFrame[10*PCM_LENGTH]; |
| 29 | |
| 30 | /*============================================================================*/ |
| 31 | /* Uplink/Downlink format */ |
| 32 | /*----------------------------------------------------------------------------*/ |
| 33 | |
| 34 | extern const Int16 indexBits[24]; |
| 35 | |
| 36 | extern const Int16 m4smp_ulPulse[16]; |
| 37 | extern const Int16 m8smp_ulPulse[32]; |
| 38 | extern const Int16 m4smp_ulPulseMatch[64]; |
| 39 | extern const Int16 m8smp_ulPulseMatch[128]; |
| 40 | |
| 41 | extern const Int16 m4smp_mgTable[66]; |
| 42 | extern const Int16 m8smp_mgTable[116]; |
| 43 | |
| 44 | extern const Int16 dlPcmData[4][NRF_DLDATA*PCM_LENGTH]; |
| 45 | extern const Int16 dlPcmDataMatch[4][NRF_DLDATA*PCM_LENGTH]; |
| 46 | |
| 47 | /*============================================================================*/ |
| 48 | /* FEC encoder/decoder */ |
| 49 | /*----------------------------------------------------------------------------*/ |
| 50 | |
| 51 | extern const Ord16 stateTrans[16]; |
| 52 | extern const Ord16 revStateTrans[16]; |
| 53 | extern const Ord1 outputParity[16]; |
| 54 | |
| 55 | extern const Ord1 crcPolynomial[NRB_CRC+1]; |
| 56 | extern const Ord1 scramblingSeq[NRB_INFO_CRC]; |
| 57 | extern const Ord16 interleaverSeq[NRB_INFO_CRC]; |
| 58 | extern const Ord16 redVerIndex[8][NRB_CODE_ARQ]; |
| 59 | |
| 60 | extern const IntLLR logExpTable[LOGEXP_RES]; |
| 61 | |
| 62 | #endif |