kgoba-ft8_lib/ft8/ldpc.h

24 wiersze
466 B
C
Czysty Zwykły widok Historia

2021-08-05 10:56:35 +00:00
#ifndef _INCLUDE_LDPC_H_
#define _INCLUDE_LDPC_H_
2021-08-05 10:56:35 +00:00
#include <stdint.h>
#ifdef __cplusplus
extern "C"
{
#endif
2022-05-11 12:33:26 +00:00
// codeword is 174 log-likelihoods.
// plain is a return value, 174 ints, to be 0 or 1.
// iters is how hard to try.
// ok == 87 means success.
void ldpc_decode(float codeword[], int max_iters, uint8_t plain[], int* ok);
2022-05-11 12:33:26 +00:00
void bp_decode(float codeword[], int max_iters, uint8_t plain[], int* ok);
#ifdef __cplusplus
}
#endif
2021-08-05 10:56:35 +00:00
#endif // _INCLUDE_LDPC_H_