comparison chipsetsw/layer1/gtt_include/ctm/m_sequence.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 /*
2 *******************************************************************************
3 *
4 * COPYRIGHT (C) 2000 BY ERICSSON EUROLAB DEUTSCHLAND GmbH
5 * 90411 NUERNBERG, GERMANY, Tel Int + 49 911 5217 100
6 *
7 * The program(s) may be used and/or copied only with the
8 * written permission from Ericsson or in accordance
9 * with the terms and conditions stipulated in the agreement or
10 * contract under which the program(s) have been supplied.
11 *
12 *******************************************************************************
13 *
14 * File : m_sequence.h
15 * Purpose : Calculation of m-sequences
16 * (maximum-length sequecnes or pseudo noise)
17 *
18 *******************************************************************************
19 */
20
21 #ifndef m_sequence_h
22 #define m_sequence_h "$Id: $"
23
24 /*
25 *******************************************************************************
26 * INCLUDE FILES
27 *******************************************************************************
28 */
29
30
31 /*
32 *******************************************************************************
33 * DECLARATION OF PROTOTYPES
34 *******************************************************************************
35 */
36
37 /* -------------------------------------------------------------------- */
38 /* function m_sequence() */
39 /* ********************* */
40 /* Calculates one period of an m-sequence (binary pseudo noise). */
41 /* The sequence is stored in the vector sequence, which must have a */
42 /* of (2^r)-1, where r is an integer number between 2 and 10. */
43 /* Therefore, with this release of m_sequence, sequences of length */
44 /* 3, 7, 15, 31, 63, 127, 255, 511, or 1023 can be generated. */
45 /* The resulting sequence is bipolar, i.e. it has values -1 and +1. */
46 /* -------------------------------------------------------------------- */
47
48 void m_sequence(WORD16 *sequence, WORD16 length);
49
50
51 #endif
52
53