![]() |
SimpleFOClibrary
2.1
|
#include "../hardware_api.h"Go to the source code of this file.
Macros | |
| #define | _ADC_VOLTAGE 5.0 |
| #define | _ADC_RESOLUTION 1024.0 |
| #define | _ADC_CONV ( (_ADC_VOLTAGE) / (_ADC_RESOLUTION) ) |
Functions | |
| float | _readADCVoltage (const int pinA) |
| void | _configureADC (const int pinA, const int pinB, const int pinC) |
| #define _ADC_CONV ( (_ADC_VOLTAGE) / (_ADC_RESOLUTION) ) |
Definition at line 34 of file current_sense/hardware_specific/generic_mcu.cpp.
| #define _ADC_RESOLUTION 1024.0 |
Definition at line 29 of file current_sense/hardware_specific/generic_mcu.cpp.
| #define _ADC_VOLTAGE 5.0 |
Definition at line 28 of file current_sense/hardware_specific/generic_mcu.cpp.
| void _configureADC | ( | const int | pinA, |
| const int | pinB, | ||
| const int | pinC = NOT_SET |
||
| ) |
function reading an ADC value and returning the read voltage
| pinA | - adc pin A |
| pinB | - adc pin B |
| pinC | - adc pin C |
Definition at line 43 of file current_sense/hardware_specific/generic_mcu.cpp.
| float _readADCVoltage | ( | const int | pinA | ) |
function reading an ADC value and returning the read voltage
| pinA | - the arduino pin to be read (it has to be ADC pin) |
Definition at line 36 of file current_sense/hardware_specific/generic_mcu.cpp.