r_pdl_dtc_rx62nxx.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*""FILE COMMENT""*******************************************************
  2. * System Name : DTC API for RX62N
  3. * File Name : r_pdl_dtc_RX62Nxx.h
  4. * Version : 1.02
  5. * Contents : DTC API 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_DTC_RX62Nxx_H
  23. #define R_PDL_DTC_RX62Nxx_H
  24. /* Library prototypes */
  25. bool R_DTC_SetAll(
  26. const uint8_t,
  27. uint32_t * const
  28. );
  29. bool R_DTC_CreateAll(
  30. const uint32_t,
  31. const uint8_t,
  32. uint32_t * const,
  33. volatile const void * const,
  34. volatile const void * const,
  35. const uint16_t,
  36. const uint8_t
  37. );
  38. bool R_DTC_DestroyAll(
  39. void
  40. );
  41. bool R_DTC_ControlAll(
  42. const uint32_t,
  43. const uint8_t,
  44. uint32_t * const,
  45. volatile const void * const,
  46. volatile const void * const,
  47. const uint16_t,
  48. const uint8_t
  49. );
  50. bool R_DTC_GetStatusAll(
  51. const uint32_t * const,
  52. volatile uint16_t * const,
  53. volatile uint32_t * const,
  54. volatile uint32_t * const,
  55. volatile uint16_t * const,
  56. volatile uint8_t * const
  57. );
  58. bool ReturnFalse(void);
  59. /* Macro definitions */
  60. #define R_DTC_Set(a, b) \
  61. ( \
  62. R_DTC_SetAll( (a), (b) ) \
  63. )
  64. #define R_DTC_Create(a, b, c, d, e, f) \
  65. ( \
  66. R_DTC_CreateAll( (a), (uint8_t)((a) >> 24), (b), (c), (d), (e), (f) ) \
  67. )
  68. #define R_DTC_Destroy() \
  69. ( \
  70. R_DTC_DestroyAll() \
  71. )
  72. #define R_DTC_Control(a, b, c, d, e, f) \
  73. ( \
  74. R_DTC_ControlAll( (a), (uint8_t)((a) >> 24), (b), (c), (d), (e), (f) ) \
  75. )
  76. #define R_DTC_GetStatus(a, b, c, d, e, f) \
  77. ( \
  78. R_DTC_GetStatusAll( (a), (b), (c), (d), (e), (f) ) \
  79. )
  80. #endif
  81. /* End of file */