File: ra_encoder.h

package info (click to toggle)
gr-satellites 5.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,836 kB
  • sloc: python: 29,546; cpp: 5,448; ansic: 1,247; sh: 118; makefile: 24
file content (34 lines) | stat: -rw-r--r-- 773 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* -*- c++ -*- */
/*
 * Copyright (C) Miklos Maroti 2015
 * Obtained from https://gitlab.com/phorvath/smogcli2
 * Copyright 2020 Daniel Estevez <daniel@destevez.net> (adaptation to gr-satellites)
 *
 * This file is part of gr-satellites
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 *
 */

#ifndef __RA_ENCODER_H__
#define __RA_ENCODER_H__

#include "ra_config.h"

#ifdef __cplusplus
extern "C" {
#endif

void ra_encoder_init(struct ra_context* ctx, const ra_word_t* packet);

/* call this ra_code_length times to get all code words */
ra_word_t ra_encoder_next(struct ra_context* ctx);

/* this calls the above two functions */
void ra_encoder(struct ra_context* ctx, const ra_word_t* packet, ra_word_t* output);

#ifdef __cplusplus
}
#endif

#endif //__RA_ENCODER_H__