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

Method setDrive

lib/usb/fluxengineusb.cc:305–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303 }
304
305 void setDrive(int drive, bool high_density, int index_mode) override
306 {
307 struct set_drive_frame f = {
308 .f = {.type = F_FRAME_SET_DRIVE_CMD, .size = sizeof(f)},
309 .drive = (uint8_t)drive,
310 .high_density = high_density,
311 .index_mode = (uint8_t)index_mode
312 };
313 usb_cmd_send(&f, f.f.size);
314 await_reply<struct any_frame>(F_FRAME_SET_DRIVE_REPLY);
315 }
316
317 void measureVoltages(struct voltages_frame* voltages) override
318 {

Callers 1

usbSetDriveFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected