drv_adc.h 524 B

1234567891011121314151617181920212223242526
  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-02-22 airm2m first version
  9. */
  10. #ifndef DRV_ADC_H__
  11. #define DRV_ADC_H__
  12. typedef struct
  13. {
  14. ADC_TypeDef *Instance;
  15. ADC_InitTypeDef Init;
  16. }ADC_HandleTypeDef;
  17. typedef struct
  18. {
  19. uint32_t Channel;
  20. uint32_t Rank;
  21. uint32_t SamplingTime;
  22. uint32_t Offset;
  23. }ADC_ChannelConfTypeDef;
  24. #endif