11 #include <chipio/chipio.h> 136 #if defined(__DOXYGEN__) 145 #define ADC_VALUE(MEASUREMENT,FULL_SCALE) 154 #define ADC_MEASUREMENT(VALUE,FULL_SCALE) 165 #define ADC_VALUE(_MEASUREMENT,_FULL_SCALE) \ 166 ((uint16_t)(((_MEASUREMENT)*1024.0)/(_FULL_SCALE))) 168 #define ADC_MEASUREMENT(_VALUE,_FULL_SCALE) \ 169 ((((double)(_VALUE))*((double)(_FULL_SCALE)))/1024.0) struct xChipIoAdc xChipIoAdc
int iChipIoAdcRead(unsigned input, xChipIoAdc *xAdc)
void vChipIoAdcClose(xChipIoAdc *xAdc)
eAdcDiv eChipIoAdcSetDiv(eAdcDiv eDiv, xChipIoAdc *xAdc)
xChipIoAdc * xChipIoAdcOpen(xChipIo *xChip)
eAdcDiv eChipIoAdcDiv(xChipIoAdc *xAdc)
eAdcRef eChipIoAdcSetRef(eAdcRef eRef, xChipIoAdc *xAdc)
eAdcRef eChipIoAdcRef(xChipIoAdc *xAdc)