r_pdl_cgc.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*""FILE COMMENT""*******************************************************
  2. * System Name : CGC API
  3. * File Name : r_pdl_cgc.h
  4. * Version : 1.02
  5. * Contents : CGC header
  6. * Customer :
  7. * Model :
  8. * Order :
  9. * CPU : RX
  10. * Compiler : RXC
  11. * OS :
  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_CGC_H
  23. #define R_PDL_CGC_H
  24. #include "r_pdl_common_defs_RX62Nxx.h"
  25. /* Function prototypes */
  26. bool R_CGC_Set(
  27. uint32_t,
  28. uint32_t,
  29. uint32_t,
  30. uint32_t,
  31. uint16_t
  32. );
  33. bool R_CGC_Control(
  34. uint16_t
  35. );
  36. bool R_CGC_GetStatus(
  37. uint8_t *
  38. );
  39. /* BCLK pin putput control */
  40. #define PDL_CGC_BCLK_DISABLE 0x0001u
  41. #define PDL_CGC_BCLK_DIV_1 0x0002u
  42. #define PDL_CGC_BCLK_DIV_2 0x0004u
  43. #define PDL_CGC_BCLK_HIGH 0x0008u
  44. /* SDCLK pin putput control */
  45. #define PDL_CGC_SDCLK_DISABLE 0x0010u
  46. #define PDL_CGC_SDCLK_ENABLE 0x0020u
  47. /* Oscillation Stop Detection control */
  48. #define PDL_CGC_OSC_STOP_ENABLE 0x0040u
  49. #define PDL_CGC_OSC_STOP_DISABLE 0x0080u
  50. /* Sub-clock oscillator control */
  51. #define PDL_CGC_SUB_CLOCK_ENABLE 0x0100u
  52. #define PDL_CGC_SUB_CLOCK_DISABLE 0x0200u
  53. #endif
  54. /* End of file */