Added decoding and error correction on the NID fields: NAC and DUID. Making use of the IT++ library for BCH encoding/decoding.

This commit is contained in:
EdFuentetaja
2014-02-02 14:45:19 +08:00
parent e40e89ae81
commit 9b9cb78ddf
13 changed files with 330 additions and 89 deletions

14
check_nid.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef __CHECK_NID_H__
#define __CHECK_NID_H__
#ifdef __cplusplus
extern "C" {
#endif
int check_NID(char* bch_code, int* new_nac, char* new_duid, unsigned char parity);
#ifdef __cplusplus
}
#endif
#endif // __CHECK_NID_H__