r_pdl_dac_10.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*""FILE COMMENT""*******************************************************
  2. * System Name : DAC API for RX62Nxx
  3. * File Name : r_pdl_dac_10.h
  4. * Version : 1.02
  5. * Contents : CRC function prototypes
  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_DAC_H
  23. #define R_PDL_DAC_H
  24. #include "r_pdl_common_defs_RX62Nxx.h"
  25. /* Function prototypes */
  26. bool R_DAC_10_Create(
  27. uint8_t,
  28. uint16_t,
  29. uint16_t
  30. );
  31. bool R_DAC_10_Destroy(
  32. uint8_t
  33. );
  34. bool R_DAC_10_Write(
  35. uint8_t,
  36. uint16_t,
  37. uint16_t
  38. );
  39. /* Channel selection */
  40. #define PDL_DAC_10_CHANNEL_0 0x01u
  41. #define PDL_DAC_10_CHANNEL_1 0x02u
  42. /* Data alignment */
  43. #define PDL_DAC_10_ALIGN_LEFT 0x04u
  44. #define PDL_DAC_10_ALIGN_RIGHT 0x08u
  45. #endif
  46. /* End of file */