CM_BURNFUZE.c 466 B

1234567891011121314151617181920212223
  1. // Burn Fuze
  2. //
  3. // CryptoMemory Library Include Files
  4. #include "CM_LIB.h"
  5. #include "CM_I2C.h"
  6. #include "CM_I2C_L.h"
  7. #include <stdint.h>
  8. uint8_t ucCmdWrFuze[4] = {0xb4, 0x01, 0x00, 0x00};
  9. // Burn Fuse
  10. uint8_t cm_BurnFuse(uint8_t ucFuze)
  11. {
  12. uint8_t ucReturn;
  13. // Burn Fuze
  14. ucCmdWrFuze[2] = ucFuze;
  15. if((ucReturn = CM_LOW_LEVEL.SendCommand(ucCmdWrFuze))!= SUCCESS) return ucReturn;
  16. // done
  17. return CM_LOW_LEVEL.ReceiveRet(NULL,0);
  18. }