Skip to content

Commit 852f739

Browse files
add a new driver api to read the current draw by the lock in mA.
1 parent 21c1bdb commit 852f739

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

example/test/mocks/hwLockCtrl/mockHwLockCtrl.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,9 @@ bool HwLockCtrlSelfTest(HwLockCtrlSelfTestResultT* outResult)
5050
mock(MOCK_NAME).actualCall("SelfTest").withOutputParameter("outResult", outResult);
5151
return static_cast<bool>(mock(MOCK_NAME).returnIntValueOrDefault(true));
5252
}
53+
54+
int32_t HwLockCtrlReadCurrent()
55+
{
56+
mock(MOCK_NAME).actualCall("ReadCurrent");
57+
return mock(MOCK_NAME).returnIntValueOrDefault(50);
58+
}

0 commit comments

Comments
 (0)