123456789101112131415161718192021222324252627282930313233343536 |
- #include "CM_LIB.h"
- #include "CM_I2C.h"
- #include "CM_I2C_L.h"
- #include "CM_GPA.h"
- uint8_t cm_ReadSmallZone(uint8_t ucCryptoAddr, uint8_t* pucBuffer, uint8_t ucCount)
- {
- uint8_t ucReturn;
- ucCM_InsBuff[0] = 0xb2;
- ucCM_InsBuff[1] = 0;
- ucCM_InsBuff[2] = ucCryptoAddr;
- ucCM_InsBuff[3] = ucCount;
-
- cm_GPAcmd2(ucCM_InsBuff);
-
-
- if ((ucReturn = cm_ReadCommand(ucCM_InsBuff, pucBuffer, ucCount)) != SUCCESS) return ucReturn;
-
-
- cm_GPAdecrypt(ucCM_Encrypt, pucBuffer, ucCount);
-
- return SUCCESS;
- }
|