pi_ecc.h 524 Bytes
#ifndef __PI_ECC_VER_HDR__
#define __PI_ECC_VER_HDR__

int correct_ecc(unsigned char *data,
    unsigned char *ecc  /* ecc[0]: LP15,LP14,LP13,... */
                        /* ecc[1]: LP07,LP06,LP05,... */
                        /* ecc[2]: CP5,CP4,CP3,...,"1","1"  */
    );
void calculate_ecc(
    unsigned char *data, /* data */
    unsigned char *ecc  /* ecc[0]: LP15,LP14,LP13,... */
                        /* ecc[1]: LP07,LP06,LP05,... */
                        /* ecc[2]: CP5,CP4,CP3,...,"1","1"  */
    );

#endif