ax_efuse_api.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /**********************************************************************************
  2. *
  3. * Copyright (c) 2019-2020 Beijing AXera Technology Co., Ltd. All Rights Reserved.
  4. *
  5. * This source file is the property of Beijing AXera Technology Co., Ltd. and
  6. * may not be copied or distributed in any isomorphic form without the prior
  7. * written consent of Beijing AXera Technology Co., Ltd.
  8. *
  9. **********************************************************************************/
  10. #ifndef _AX_EFUSE_API_H_
  11. #define _AX_EFUSE_API_H_
  12. #ifdef __cplusplus
  13. #if __cplusplus
  14. extern "C" {
  15. #endif
  16. #endif /* __cplusplus */
  17. #define EFSC_MAX_BLK 96
  18. #ifndef AX_SUCCESS
  19. #define AX_SUCCESS 0
  20. #endif
  21. typedef enum {
  22. AX_ERR_EFUSE_ILLEGAL_PARAM = 0x8005000a,
  23. AX_ERR_EFUSE_SYS_NOTREADY = 0x80050010,
  24. AX_ERR_EFUSE_READ_FAIL = 0x80050080,
  25. AX_ERR_EFUSE_WRITE_FAIL = 0x80050081,
  26. AX_ERR_EFUSE_MMAP_FAIL = 0x80050082,
  27. } EFUSE_STAUS_E;
  28. AX_S32 AX_EFUSE_Init(void);
  29. AX_S32 AX_EFUSE_Deinit(void);
  30. AX_S32 AX_EFUSE_Read(AX_S32 blk, AX_S32 *data);
  31. AX_S32 AX_EFUSE_Write(AX_S32 blk, AX_S32 data);
  32. #ifdef __cplusplus
  33. #if __cplusplus
  34. }
  35. #endif
  36. #endif /* __cplusplus */
  37. #endif