MCPcopy Create free account
hub / github.com/LowPowerLab/RFM69 / BYTEfromHEX

Function BYTEfromHEX

RFM69_OTA.cpp:487–490  ·  view source on GitHub ↗

=================================================================================================================== BYTEfromHEX() - converts from ASCII HEX to byte, assume A and B are valid HEX chars [0-9A-F] ===================================================================================================================

Source from the content-addressed store, hash-verified

485// BYTEfromHEX() - converts from ASCII HEX to byte, assume A and B are valid HEX chars [0-9A-F]
486//===================================================================================================================
487uint8_t BYTEfromHEX(char MSB, char LSB)
488{
489 return (MSB>=65?MSB-55:MSB-48)*16 + (LSB>=65?LSB-55:LSB-48);
490}
491
492
493//===================================================================================================================

Callers 3

validateHEXDataFunction · 0.85
prepareSendBufferFunction · 0.85
prepareStoreBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected