MCPcopy Create free account
hub / github.com/DexterInd/GoPiGo3 / get_version_hardware

Method get_version_hardware

Software/C/GoPiGo3.cpp:160–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160int GoPiGo3::get_version_hardware(char *str){
161 uint32_t value;
162 // assign error to the value returned by spi_read_32, and if not 0:
163 if(int error = spi_read_32(GPGSPI_MESSAGE_GET_HARDWARE_VERSION, value)){
164 return error;
165 }
166 sprintf(str, "%d.x.x", (value / 1000000));
167}
168
169int GoPiGo3::get_version_firmware(char *str){
170 uint32_t value;

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected