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