r_pdl_poe_rx62nxx.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*""FILE COMMENT""*******************************************************
  2. * System Name : POE API for RX62Nxx
  3. * File Name : r_pdl_poe_RX62Nxx.h
  4. * Version : 1.02
  5. * Contents : POE 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_POE_RX62Nxx_H
  23. #define R_PDL_POE_RX62Nxx_H
  24. #define POE_INTERRUPTS 4
  25. /* Callback function storage */
  26. extern VoidCallBackFunc rpdl_POE_callback_func[];
  27. /* Library prototypes */
  28. bool R_POE_SetAll(
  29. const uint32_t,
  30. const uint8_t,
  31. const uint32_t
  32. );
  33. bool R_POE_CreateAll(
  34. const uint16_t,
  35. VoidCallBackFunc const,
  36. VoidCallBackFunc const,
  37. VoidCallBackFunc const,
  38. VoidCallBackFunc const,
  39. const uint8_t
  40. );
  41. bool R_POE_ControlAll(
  42. const uint8_t,
  43. const uint16_t,
  44. const uint16_t
  45. );
  46. bool R_POE_GetStatusAll(
  47. volatile uint16_t * const
  48. );
  49. bool ReturnFalse(void);
  50. /* Macro definitions */
  51. #define R_POE_Set(a, b, c) \
  52. ( \
  53. R_POE_SetAll( (a), (b), (c) ) \
  54. )
  55. #define R_POE_Create(a, b, c, d, e, f) \
  56. ( \
  57. ( ((f) <= IPL_MAX) ) ? \
  58. R_POE_CreateAll( (a), (b), (c), (d), (e), (f) ) : \
  59. ReturnFalse() \
  60. )
  61. #define R_POE_Control(a, b, c) \
  62. ( \
  63. R_POE_ControlAll( (a), (b), (c) ) \
  64. )
  65. #define R_POE_GetStatus(a) \
  66. ( \
  67. R_POE_GetStatusAll( (a) ) \
  68. )
  69. #endif
  70. /* End of file */