rusEFI
The most advanced open source ECU
|
#include <adc_device.h>
Public Member Functions | |
AdcDevice (ADCDriver *p_adcp, ADCConversionGroup *p_hwConfig, volatile adcsample_t *p_buf, size_t p_depth) | |
int | enableChannel (adc_channel_e hwChannel) |
void | startConversionI (void) |
adc_channel_e | getAdcChannelByInternalIndex (int index) const |
adcsample_t | getAvgAdcValue (adc_channel_e hwChannel) |
adcsample_t | getAdcValueByToken (AdcToken token) |
AdcToken | getAdcChannelToken (adc_channel_e hwChannel) |
int | size () const |
void | init (void) |
Private Attributes | |
ADCDriver * | adcp |
ADCConversionGroup * | hwConfig |
volatile adcsample_t * | samples |
size_t | depth |
uint8_t | internalAdcIndexByHardwareIndex [EFI_ADC_TOTAL_CHANNELS] |
size_t | channelCount = 0 |
Definition at line 12 of file adc_device.h.
|
explicit |
Definition at line 53 of file adc_onchip_fast.cpp.
int AdcDevice::enableChannel | ( | adc_channel_e | hwChannel | ) |
Definition at line 221 of file adc_onchip_fast.cpp.
Referenced by addFastAdcChannel().
adc_channel_e AdcDevice::getAdcChannelByInternalIndex | ( | int | index | ) | const |
Definition at line 294 of file adc_onchip_fast.cpp.
Referenced by printFullAdcReport().
AdcToken AdcDevice::getAdcChannelToken | ( | adc_channel_e | hwChannel | ) |
Definition at line 303 of file adc_onchip_fast.cpp.
Referenced by enableFastAdcChannel().
|
inline |
Definition at line 20 of file adc_device.h.
Referenced by getFastAdc().
adcsample_t AdcDevice::getAvgAdcValue | ( | adc_channel_e | hwChannel | ) |
Definition at line 269 of file adc_onchip_fast.cpp.
Referenced by getInternalAdcValue().
void AdcDevice::init | ( | void | ) |
Definition at line 205 of file adc_onchip_fast.cpp.
Referenced by initAdcInputs().
int AdcDevice::size | ( | ) | const |
Definition at line 201 of file adc_onchip_fast.cpp.
Referenced by getAvgAdcValue(), init(), and printFullAdcReport().
void AdcDevice::startConversionI | ( | void | ) |
Definition at line 254 of file adc_onchip_fast.cpp.
Referenced by fastAdcStartTrigger().
|
private |
Definition at line 32 of file adc_device.h.
Referenced by AdcDevice(), init(), and startConversionI().
|
private |
Number of ADC channels in use
Definition at line 40 of file adc_device.h.
Referenced by enableChannel(), and size().
|
private |
Definition at line 35 of file adc_device.h.
Referenced by AdcDevice(), getAvgAdcValue(), init(), and startConversionI().
|
private |
Definition at line 33 of file adc_device.h.
Referenced by AdcDevice(), enableChannel(), init(), and startConversionI().
|
private |
Definition at line 36 of file adc_device.h.
Referenced by AdcDevice(), enableChannel(), getAdcChannelByInternalIndex(), getAdcChannelToken(), and getAvgAdcValue().
|
private |
Definition at line 34 of file adc_device.h.
Referenced by AdcDevice(), getAdcValueByToken(), getAvgAdcValue(), init(), and startConversionI().