r_pdl_crc_rx62nxx.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*""FILE COMMENT""*******************************************************
  2. * System Name : CRC calculator API for RX62Nxx
  3. * File Name : r_pdl_crc_RX62Nxx.h
  4. * Version : 1.02
  5. * Contents : CRC header
  6. * Customer :
  7. * Model :
  8. * Order :
  9. * CPU : RX
  10. * Compiler : RXC
  11. * OS : Nothing
  12. * Programmer :
  13. * Note :
  14. ************************************************************************
  15. * Copyright, 2011. Renesas Electronics Corporation
  16. * and Renesas Solutions Corporation
  17. ************************************************************************
  18. * History : 2011.04.08
  19. * : Ver 1.02
  20. * : CS-5 release.
  21. *""FILE COMMENT END""**************************************************/
  22. #ifndef R_PDL_CRC_RX62Nxx_H
  23. #define R_PDL_CRC_RX62Nxx_H
  24. /* Library prototypes */
  25. bool R_CRC_CreateAll(
  26. const uint8_t
  27. );
  28. bool R_CRC_DestroyAll(
  29. void
  30. );
  31. bool R_CRC_WriteAll(
  32. const uint8_t
  33. );
  34. bool R_CRC_ReadAll(
  35. const uint8_t,
  36. volatile uint16_t * const
  37. );
  38. /* Macro definitions */
  39. #define R_CRC_Create(a) \
  40. ( \
  41. R_CRC_CreateAll( (a) ) \
  42. )
  43. #define R_CRC_Destroy() \
  44. ( \
  45. R_CRC_DestroyAll() \
  46. )
  47. #define R_CRC_Write(a) \
  48. ( \
  49. R_CRC_WriteAll( (a) ) \
  50. )
  51. #define R_CRC_Read(a, b) \
  52. ( \
  53. R_CRC_ReadAll( (a), (b) ) \
  54. )
  55. #endif
  56. /* End of file */