13 #define QC3_MIN_VOLTAGE_MV 3600 14 #define QC3_CLASS_A_MAX_VOLTAGE_MV 12000 15 #define QC3_CLASS_B_MAX_VOLTAGE_MV 20000 18 #define QC_T_GLITCH_BC_DONE_MS 1500 19 #define QC_T_GLICH_V_CHANGE_MS 60 20 #define QC_T_ACTIVE_MS 1 21 #define QC_T_INACTIVE_MS 1 57 QC3Control(byte DpPin, byte DmPin, byte DmGndPin);
81 void begin(
bool classB);
215 void QC3Control::switchToContinuousMode();
double getVoltage()
(deprecated - use getMilliVoltage()) Return the voltage that the charger is supposed to currently pro...
Definition: QC3Control.cpp:234
void incrementVoltage()
Increment the desired voltage of the QC3.0 source by 200mV.
Definition: QC3Control.cpp:137
const byte _DpPin
Data+ pin connected to the middle of the D+ 1K5-10K bridge via a 470R resistor.
Definition: QC3Control.h:205
void setVoltage(double volt)
(deprecated - use setMilliVoltage()) Sets the desired voltage of the QC source.
Definition: QC3Control.cpp:215
void decrementVoltage()
Decrement the desired voltage of the QC3.0 source by 200mV.
Definition: QC3Control.cpp:156
Main class of the QC3Control-library.
Definition: QC3Control.h:30
void set5V()
Set voltage to 5V.
Definition: QC3Control.cpp:64
unsigned int getMilliVoltage()
Return the voltage that the charger is supposed to currently provide.
Definition: QC3Control.cpp:238
bool _classB
Do we have a class B QC source (up to 20V) ?
Definition: QC3Control.h:211
bool _continuousMode
Are we in continuous adjustment (QC3) mode?
Definition: QC3Control.h:210
void set9V()
Set voltage to 9V.
Definition: QC3Control.cpp:78
unsigned int _milliVoltNow
Voltage currently set (in mV). Using the word "now" instead of "current" to prevent confusion between...
Definition: QC3Control.h:213
const byte _DmGndPin
Pin pin connected to the bottom of the D- 1K5-10K bridge in legacy "3-wire" circuit. Must be 0 if using a recommended "2-wire" circuit.
Definition: QC3Control.h:207
void begin()
Starts the handshake with the QC source in "class A" (up to 12V).
Definition: QC3Control.cpp:24
void set20V()
Set voltage to 20V.
Definition: QC3Control.cpp:116
void set12V()
Set voltage to 12V.
Definition: QC3Control.cpp:97
const byte _DmPin
Data- pin connected either to the middle of the D- 1K5-10K bridge via a 470R resistor (in recommended...
Definition: QC3Control.h:206
QC3Control(byte DpPin, byte DmPin)
Makes an object to control a Quick Charge source with a recommended "2-wire" circuit.
Definition: QC3Control.cpp:14
bool _handshakeDone
Is the handshake done?
Definition: QC3Control.h:209
void setMilliVoltage(unsigned int milliVolt)
Sets the desired voltage of the QC3.0 source.
Definition: QC3Control.cpp:183