air_misc.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef __AIR_MISC_H
  2. #define __AIR_MISC_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /* Includes ------------------------------------------------------------------*/
  7. #include <stdint.h>
  8. #include "air_crypt.h"
  9. #define AIR_CMP_INIT (0x00AA)
  10. #define AIR_CMP_EQUAL (0x05AA)
  11. #define AIR_CMP_BIGGER (0xA5AA)
  12. #define AIR_CMP_SMALLER (0x25AA)
  13. #define AIR_CMP_ERR (0xAAAA)
  14. #define AIR_CMP_UNEQUAL (0x85AA)
  15. #define AIR_RET_MISC_PARAM_ERR (0x51B649AB)
  16. uint32_t AIRMEM_SCopy(void *pvDst, void *pvSrc, uint32_t u32ByteLen, uint8_t *pu8Index);
  17. uint32_t AIRMEM_SEqual(void *pvDst, void *pvSrc, uint32_t u32ByteLen, uint8_t *pu8Index);
  18. uint32_t AIRMEM_SCopyBig(void *pvDst, void *pvSrc, uint32_t u32DstLen, uint32_t u32SrcLen, uint8_t *pu8Index);
  19. uint32_t AIRMEM_CopyBig(void *pvDst, void *pvSrc, uint32_t u32DstLen, uint32_t u32SrcLen);
  20. uint32_t AIRMEM_Equal(void *pvDst, void *pvSrc, uint32_t u32ByteLen);
  21. #ifdef __cplusplus
  22. }
  23. #endif
  24. #endif