MCPcopy Create free account
hub / github.com/Ralim/usb-pd / currentStateCode

Method currentStateCode

include/policy_engine.h:113–118  ·  view source on GitHub ↗

Useful for debug reading out

Source from the content-addressed store, hash-verified

111 void printStateName();
112 // Useful for debug reading out
113 int currentStateCode(const bool noWait = false) {
114 if (noWait && (state == PEWaitingEvent)) {
115 return (int)postNotificationEvalState;
116 }
117 return (int)state;
118 }
119
120 inline void renegotiate() { notify(Notifications::NEW_POWER); }
121

Callers 2

test_NormalNegotiationFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_NormalNegotiationFunction · 0.64