r_pdl_pfc_rx62nxx.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*""FILE COMMENT""*******************************************************
  2. * System Name : PFC API for RX62Nxx
  3. * File Name : r_pdl_pfc_RX62Nxx.h
  4. * Version : 1.02
  5. * Contents : PFC 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_PFC_RX62Nxx_H
  23. #define R_PDL_PFC_RX62Nxx_H
  24. /* Library prototypes */
  25. bool R_PFC_ReadRegisterAll(
  26. const uint8_t,
  27. volatile uint8_t * const
  28. );
  29. bool R_PFC_WriteRegisterAll(
  30. const uint8_t,
  31. const uint8_t
  32. );
  33. bool R_PFC_ModifyRegisterAll(
  34. const uint8_t,
  35. const uint8_t,
  36. const uint8_t
  37. );
  38. bool ReturnFalse(void);
  39. /* Macro definitions */
  40. /* R_PFC_Read */
  41. /* Call the function if the PFC number is valid (0 to 9). */
  42. #define R_PFC_Read(a, b) \
  43. ( \
  44. ((a) <= PDL_PFC_PFNPOE) ? \
  45. R_PFC_ReadRegisterAll( (a), (b) ) : \
  46. ReturnFalse() \
  47. )
  48. /* R_PFC_Write */
  49. /* Call the function if the PFC number is valid (0 to 9). */
  50. #define R_PFC_Write(a, b) \
  51. ( \
  52. ((a) <= PDL_PFC_PFNPOE) ? \
  53. R_PFC_WriteRegisterAll( (a), (b) ) : \
  54. ReturnFalse() \
  55. )
  56. /* R_PFC_Modify */
  57. /* Call the function if the PFC number is valid (0 to 9). */
  58. #define R_PFC_Modify(a, b, c) \
  59. ( \
  60. ((a) <= PDL_PFC_PFNPOE) ? \
  61. R_PFC_ModifyRegisterAll( (a), (b), (c) ) : \
  62. ReturnFalse() \
  63. )
  64. #endif
  65. /* End of file */