blob: 6f71c03091156687bbee1ef2fbdd8dbe8448e7f2 [file] [log] [blame]
Alpana Kumaric0aeac32019-11-28 05:20:10 -06001#include "vpdecc.h"
2
3/******************************************************************************/
4unsigned char seepromGetEcc(const unsigned char* data);
5
6/******************************************************************************/
7/* seepromScramble */
8/******************************************************************************/
9
10int seepromScramble(const int bitOffset, const unsigned char* cleanData,
11 size_t cleanSize, unsigned char* scrambledData,
12 size_t scrambledSize);
13
14/******************************************************************************/
15/******************************************************************************/
16int seepromUnscramble(const int bitOffset, const unsigned char* scrambledData,
17 size_t scrambledSize, unsigned char* cleanData,
18 size_t cleanSize);
19
20/******************************************************************************/
21/******************************************************************************/
22void seepromGenCsDecode(const unsigned char numBits,
23 const unsigned char syndrom,
24 const unsigned char* csdSyndroms,
25 unsigned char* vResult);
26
27/******************************************************************************/
28/* seepromGenerateCheckSyndromDecode */
29/******************************************************************************/
30void seepromGenerateCheckSyndromDecode(const unsigned char checkSyndrom,
31 unsigned char* csdData,
32 unsigned char* csdEcc);
33
34/******************************************************************************/
35/******************************************************************************/
36int seepromEccCheck(unsigned char* vData, unsigned char* vEcc,
37 size_t numOfDataBytes);
38
39/******************************************************************************/
40/******************************************************************************/
41/*int seepromCheckData(unsigned char* seepromData);*/
42
43/******************************************************************************/
44/******************************************************************************/
45/*int seepromCreateEcc(unsigned char* seepromData);*/