comparison src/cs/layer1/gtt_include/ctm/conv_encoder.h @ 0:945cf7f506b2

src/cs: chipsetsw import from tcs211-fcmodem binary blobs and LCD demo files have been excluded, all line endings are LF only
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 25 Sep 2016 22:50:11 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:945cf7f506b2
1 /*
2 *******************************************************************************
3 *
4 * COPYRIGHT (C) 2000 BY ERICSSON EUROLAB DEUTSCHLAND GmbH
5 *
6 * The program(s) may be used and/or copied only with the
7 * written permission from Ericsson or in accordance
8 * with the terms and conditions stipulated in the agreement or
9 * contract under which the program(s) have been supplied.
10 *
11 *******************************************************************************
12 *
13 * File : conv_encoder.h
14 * Purpose : Header file for conv_encoder.c
15 * Author : Francisco Javier Gil Gomez
16 *
17 *******************************************************************************
18 *
19 * Changes since October 13, 2000:
20 * - added reset function conv_encoder_reset()
21 *
22 *******************************************************************************
23 * $Id: $
24 *
25 */
26
27
28 #ifndef conv_encoder_h
29 #define conv_encoder_h "$Id: $"
30
31 #include "conv_poly.h" /* definition of encoder_t */
32
33 /***********************************************************************/
34 /* conv_encoder_init() */
35 /* ******************* */
36 /* Initialization of the convolutional encoder. */
37 /* */
38 /* output variables: */
39 /* *ptr_state Initialized state variable of the encoder */
40 /***********************************************************************/
41
42 void conv_encoder_init(conv_encoder_t* ptr_state);
43
44 void conv_encoder_reset(conv_encoder_t* ptr_state);
45
46 /***********************************************************************/
47 /* conv_encoder_exec() */
48 /* ******************* */
49 /* Execution of the convolutional encoder */
50 /* */
51 /* input variables: */
52 /* in Vector with net bits */
53 /* inbits Number of valid net bits in vector in. */
54 /* */
55 /* output variables: */
56 /* out Vector with the encoded gross bits. The gross */
57 /* bits are either 0 or 1. The vector out must */
58 /* have at least CHC_RATE*inbits elements. */
59 /* */
60 /* input/output variables: */
61 /* *ptr_state State variable of the encoder */
62 /* */
63 /***********************************************************************/
64
65 void conv_encoder_exec(conv_encoder_t* ptr_state,
66 WORD16* in,
67 WORD16 inbits,
68 WORD16* out);
69
70 #endif