Skip to content

Commit 1ac803e

Browse files
author
Cristian Dragomir
committed
added public retrieval of pointer to PF155_Control
1 parent c08f3da commit 1ac803e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/PF1550.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ void PF1550::configCharger(IFastCharge const i_fast_charge,
178178
_control.setInputCurrentLimit (i_input_current_limit);
179179
}
180180

181+
PF1550_Control * PF1550::getControlPointer(){
182+
return &this -> _control;
183+
}
184+
181185
/******************************************************************************
182186
EXTERN DEFINITION
183187
******************************************************************************/

src/PF1550.h

+2
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ class PF1550
9595
/* Actual PMIC event ISR handler with access to member variables */
9696
inline void onPMICEvent() { _control.onPMICEvent(); }
9797

98+
PF1550_Control * getControlPointer();
99+
98100

99101
private:
100102
PF1550_Control _control;

0 commit comments

Comments
 (0)