MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / read_short_from_usb

Function read_short_from_usb

lib/usb/fluxengineusb.cc:12–16  ·  view source on GitHub ↗

Hacky: the board always operates in little-endian mode. */

Source from the content-addressed store, hash-verified

10
11/* Hacky: the board always operates in little-endian mode. */
12static uint16_t read_short_from_usb(uint16_t usb)
13{
14 uint8_t* p = (uint8_t*)&usb;
15 return p[0] | (p[1] << 8);
16}
17
18class FluxEngineUsb : public USB
19{

Callers 1

measureVoltagesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected