kopia lustrzana https://github.com/kgoba/ft8_lib
				
				
				
			
		
			
				
	
	
		
			24 wiersze
		
	
	
		
			478 B
		
	
	
	
		
			C
		
	
	
			
		
		
	
	
			24 wiersze
		
	
	
		
			478 B
		
	
	
	
		
			C
		
	
	
#ifndef _INCLUDE_LDPC_H_
 | 
						|
#define _INCLUDE_LDPC_H_
 | 
						|
 | 
						|
#include <stdint.h>
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
extern "C"
 | 
						|
{
 | 
						|
#endif
 | 
						|
 | 
						|
// 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(const float codeword[], int max_iters, uint8_t plain[], int* ok);
 | 
						|
 | 
						|
void bp_decode(const float codeword[], int max_iters, uint8_t plain[], int* ok);
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif
 | 
						|
 | 
						|
#endif // _INCLUDE_LDPC_H_
 |