Alpana Kumari | c0aeac3 | 2019-11-28 05:20:10 -0600 | [diff] [blame] | 1 | #include "vpdecc.h" |
| 2 | |
| 3 | /******************************************************************************/ |
| 4 | unsigned char seepromGetEcc(const unsigned char* data); |
| 5 | |
| 6 | /******************************************************************************/ |
| 7 | /* seepromScramble */ |
| 8 | /******************************************************************************/ |
| 9 | |
| 10 | int seepromScramble(const int bitOffset, const unsigned char* cleanData, |
| 11 | size_t cleanSize, unsigned char* scrambledData, |
| 12 | size_t scrambledSize); |
| 13 | |
| 14 | /******************************************************************************/ |
| 15 | /******************************************************************************/ |
| 16 | int seepromUnscramble(const int bitOffset, const unsigned char* scrambledData, |
| 17 | size_t scrambledSize, unsigned char* cleanData, |
| 18 | size_t cleanSize); |
| 19 | |
| 20 | /******************************************************************************/ |
| 21 | /******************************************************************************/ |
| 22 | void seepromGenCsDecode(const unsigned char numBits, |
| 23 | const unsigned char syndrom, |
| 24 | const unsigned char* csdSyndroms, |
| 25 | unsigned char* vResult); |
| 26 | |
| 27 | /******************************************************************************/ |
| 28 | /* seepromGenerateCheckSyndromDecode */ |
| 29 | /******************************************************************************/ |
| 30 | void seepromGenerateCheckSyndromDecode(const unsigned char checkSyndrom, |
| 31 | unsigned char* csdData, |
| 32 | unsigned char* csdEcc); |
| 33 | |
| 34 | /******************************************************************************/ |
| 35 | /******************************************************************************/ |
| 36 | int 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);*/ |