| 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 | { |
no outgoing calls
no test coverage detected