GNU Radio's SATELLITES Package
ra_encoder.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright (C) Miklos Maroti 2015
4  * Obtained from https://gitlab.com/phorvath/smogcli2
5  * Copyright 2020 Daniel Estevez <daniel@destevez.net> (adaptation to gr-satellites)
6  *
7  * This file is part of gr-satellites
8  *
9  * SPDX-License-Identifier: GPL-3.0-or-later
10  *
11  */
12 
13 #ifndef __RA_ENCODER_H__
14 #define __RA_ENCODER_H__
15 
16 #include "ra_config.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 void ra_encoder_init(struct ra_context* ctx, const ra_word_t* packet);
23 
24 /* call this ra_code_length times to get all code words */
26 
27 /* this calls the above two functions */
28 void ra_encoder(struct ra_context* ctx, const ra_word_t* packet, ra_word_t* output);
29 
30 #ifdef __cplusplus
31 }
32 #endif
33 
34 #endif //__RA_ENCODER_H__
uint16_t ra_word_t
Definition: ra_config.h:21
void ra_encoder(struct ra_context *ctx, const ra_word_t *packet, ra_word_t *output)
void ra_encoder_init(struct ra_context *ctx, const ra_word_t *packet)
ra_word_t ra_encoder_next(struct ra_context *ctx)
Definition: ra_config.h:37