This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

USB boot protocol and report protocol?

static void hid_user_ev_handler(app_usbd_class_inst_t const * p_inst,
                                app_usbd_hid_user_event_t event)
{
    switch (event)
    {
        case APP_USBD_HID_USER_EVT_OUT_REPORT_READY:
        {
            /* No output report defined for this example.*/
            ASSERT(0);
            break;
        }
        case APP_USBD_HID_USER_EVT_IN_REPORT_DONE:
        {
            m_report_pending = false;
            hid_generic_mouse_process_state();
            bsp_board_led_invert(LED_HID_REP_IN);
            break;
        }
        case APP_USBD_HID_USER_EVT_SET_BOOT_PROTO:
        {
            UNUSED_RETURN_VALUE(hid_generic_clear_buffer(p_inst));
            NRF_LOG_INFO("SET_BOOT_PROTO");
            break;
        }
        case APP_USBD_HID_USER_EVT_SET_REPORT_PROTO:
        {
            UNUSED_RETURN_VALUE(hid_generic_clear_buffer(p_inst));
            NRF_LOG_INFO("SET_REPORT_PROTO");
            break;
        }
        default:
            break;
    }
}
APP_USBD_HID_USER_EVT_SET_REPORT_PROTO and APP_USBD_HID_USER_EVT_SET_BOOT_PROTO  

  • Will the event trigger when the computer is turned on

Parents Reply
  • Hi

    How did you test this? 

    Did you restart the PC with the device connected?

    Also, which operating system and version are you using?

    In the end it is OS specific how these two modes are handled, but if you get the SET_BOOT_PROTO event during startup it would seem logical that you should get the SET_REPORT_PROTO event once the OS starts in full. 

    Best regards
    Torbjørn

Children
No Data
Related