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

Method getRotationalPeriod

lib/usb/fluxengineusb.cc:155–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153 }
154
155 nanoseconds_t getRotationalPeriod(int hardSectorCount) override
156 {
157 struct measurespeed_frame f = {
158 .f = {.type = F_FRAME_MEASURE_SPEED_CMD, .size = sizeof(f)},
159 .hard_sector_count = (uint8_t)hardSectorCount,
160 };
161 usb_cmd_send(&f, f.f.size);
162
163 auto r = await_reply<struct speed_frame>(F_FRAME_MEASURE_SPEED_REPLY);
164 return r->period_ms * 1000000;
165 }
166
167 void testBulkWrite() override
168 {

Callers 1

usbGetRotationalPeriodFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected