MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / getDesignCapacity

Method getDesignCapacity

Drivers/BQ27220/Source/Bq27220.cpp:162–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162bool Bq27220::getDesignCapacity(uint16_t &value) {
163 if (readRegister16(registers::CMD_DESIGN_CAPACITY, value)) {
164 swapEndianess(value);
165 return true;
166 }
167 return false;
168}
169
170bool Bq27220::getRemainingCapacity(uint16_t &value) {
171 if (readRegister16(registers::CMD_REMAINING_CAPACITY, value)) {

Callers

nothing calls this directly

Calls 1

swapEndianessFunction · 0.85

Tested by

no test coverage detected