MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / dusb_next_command

Function dusb_next_command

core/usb/dusb.c:626–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624}
625
626static void dusb_next_command(usb_event_t *event) {
627 dusb_context_t *context = event->context;
628 dusb_command_t *command = context->command++;
629 switch (command->type) {
630 case DUSB_SEND_COMMAND:
631 context->progress += command->file_length;
632 break;
633 default:
634 break;
635 }
636}
637
638static int dusb_transition(usb_event_t *event, dusb_state_t state) {
639 dusb_context_t *context = event->context;

Callers 1

dusb_transitionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected