drv_dac.h 644 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-10-19 Nations first version
  9. */
  10. #ifndef __DRV_DAC__
  11. #define __DRV_DAC__
  12. #include <rtthread.h>
  13. #include <rtdevice.h>
  14. #include <rthw.h>
  15. #include <board.h>
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. /* n32 config class */
  20. struct n32_dac_config
  21. {
  22. const char *name;
  23. rt_uint32_t dac_periph;
  24. };
  25. struct n32_dac
  26. {
  27. struct rt_dac_device dac_device;
  28. struct n32_dac_config *config;
  29. };
  30. int rt_hw_dac_init(void);
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif /* __DRV_DAC__ */