Adc_ARTERY_AT32/Inc/AdcArtery.h

33 lines
502 B
C

//
// Created by cfif on 17.11.22.
//
#ifndef ADC_ARTERY_H
#define ADC_ARTERY_H
#include "Adc.h"
#include "cmsis_os2.h"
#include "at32f435_437.h"
typedef struct {
adc_type *ADCx;
uint8_t ADC_Channel;
int32_t offset;
int32_t mux;
int32_t div;
} tAdcArtery;
tAdcArtery ADC_Initial(
adc_type *ADCx,
adc_channel_select_type ADC_Channel,
int32_t offset,
int32_t mux,
int32_t div
);
tAdcIO vAdcGetIo(tAdcArtery *env);
#endif //ADC_ARTERY_H