summaryrefslogtreecommitdiff
path: root/reset-controller/fw/src/rslib.h
blob: bba8bb01c70389adb89a2617b215688cb9a9a1d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef __RSLIB_H__
#define __RSLIB_H__

/* parity length configuration */
#include "rscode-config.h"

void rslib_encode(int nbits, size_t msglen, char msg[static msglen], char out[msglen + NPAR]);
int rslib_decode(int nbits, size_t msglen, char msg_inout[static msglen]);
int rslib_gexp(int z, int nbits);
size_t rslib_npar(void);

#endif /* __RSLIB_H__ */