drv_adc.h 587 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-09-16 linshire add some operation function
  9. * 2021-09-09 WCH the first version
  10. */
  11. #ifndef DRV_ADC_H__
  12. #define DRV_ADC_H__
  13. typedef struct
  14. {
  15. ADC_TypeDef *Instance;
  16. ADC_InitTypeDef Init;
  17. }ADC_HandleTypeDef;
  18. typedef struct
  19. {
  20. uint32_t Channel;
  21. uint32_t Rank;
  22. uint32_t SamplingTime;
  23. uint32_t Offset;
  24. }ADC_ChannelConfTypeDef;
  25. #endif