/Zephyr-Core-3.5.0/drivers/usb/device/ |
D | usb_dc_stm32.c | 164 usb_dc_status_callback status_cb; /* Status callback */ member 203 usb_dc_stm32_state.status_cb(USB_DC_SOF, NULL); in HAL_PCD_SOFCallback() 541 usb_dc_stm32_state.status_cb = cb; in usb_dc_set_status_callback() 1012 if (usb_dc_stm32_state.status_cb) { in HAL_PCD_ResetCallback() 1013 usb_dc_stm32_state.status_cb(USB_DC_RESET, NULL); in HAL_PCD_ResetCallback() 1021 if (usb_dc_stm32_state.status_cb) { in HAL_PCD_ConnectCallback() 1022 usb_dc_stm32_state.status_cb(USB_DC_CONNECTED, NULL); in HAL_PCD_ConnectCallback() 1030 if (usb_dc_stm32_state.status_cb) { in HAL_PCD_DisconnectCallback() 1031 usb_dc_stm32_state.status_cb(USB_DC_DISCONNECTED, NULL); in HAL_PCD_DisconnectCallback() 1039 if (usb_dc_stm32_state.status_cb) { in HAL_PCD_SuspendCallback() [all …]
|
D | usb_dc_nrfx.c | 237 usb_dc_status_callback status_cb; member 695 if (ctx->status_cb) { in usbd_work_process_pwr_events() 696 ctx->status_cb(USB_DC_CONNECTED, NULL); in usbd_work_process_pwr_events() 708 if (ctx->status_cb) { in usbd_work_process_pwr_events() 709 ctx->status_cb(USB_DC_DISCONNECTED, NULL); in usbd_work_process_pwr_events() 718 if (ctx->status_cb) { in usbd_work_process_pwr_events() 719 ctx->status_cb(USB_DC_SUSPEND, NULL); in usbd_work_process_pwr_events() 724 if (ctx->status_cb && dev_ready()) { in usbd_work_process_pwr_events() 726 ctx->status_cb(USB_DC_RESUME, NULL); in usbd_work_process_pwr_events() 1239 if (ctx->status_cb) { in usbd_work_handler() [all …]
|
D | usb_dc_dw.c | 92 usb_dc_status_callback status_cb; member 662 if (usb_dw_ctrl.status_cb) { in usb_dw_handle_reset() 663 usb_dw_ctrl.status_cb(USB_DC_RESET, NULL); in usb_dw_handle_reset() 687 if (usb_dw_ctrl.status_cb) { in usb_dw_handle_enum_done() 688 usb_dw_ctrl.status_cb(USB_DC_CONNECTED, NULL); in usb_dw_handle_enum_done() 829 if (usb_dw_ctrl.status_cb) { in usb_dw_isr_handler() 830 usb_dw_ctrl.status_cb(USB_DC_SUSPEND, NULL); in usb_dw_isr_handler() 838 if (usb_dw_ctrl.status_cb) { in usb_dw_isr_handler() 839 usb_dw_ctrl.status_cb(USB_DC_RESUME, NULL); in usb_dw_isr_handler() 1370 usb_dw_ctrl.status_cb = cb; in usb_dc_set_status_callback()
|
D | usb_dc_sam_usbhs.c | 65 usb_dc_status_callback status_cb; member 243 dev_data.status_cb(USB_DC_RESUME, NULL); in usb_dc_isr() 275 dev_data.status_cb(USB_DC_RESET, NULL); in usb_dc_isr() 284 dev_data.status_cb(USB_DC_SUSPEND, NULL); in usb_dc_isr() 294 dev_data.status_cb(USB_DC_SOF, NULL); in usb_dc_isr() 420 dev_data.status_cb = cb; in usb_dc_set_status_callback()
|
D | usb_dc_mcux.c | 102 usb_dc_status_callback status_cb; member 728 dev_state.status_cb = cb; in usb_dc_set_status_callback() 872 dev_state.status_cb(USB_DC_RESET, NULL); in usb_mcux_thread_main() 875 dev_state.status_cb(USB_DC_ERROR, NULL); in usb_mcux_thread_main() 878 dev_state.status_cb(USB_DC_SUSPEND, NULL); in usb_mcux_thread_main() 881 dev_state.status_cb(USB_DC_RESUME, NULL); in usb_mcux_thread_main()
|
D | usb_dc_kinetis.c | 112 usb_dc_status_callback status_cb; member 832 dev_data.status_cb = cb; in usb_dc_set_status_callback() 1023 } else if (dev_data.status_cb) { in usb_kinetis_thread_main() 1026 dev_data.status_cb(USB_DC_RESET, NULL); in usb_kinetis_thread_main() 1029 dev_data.status_cb(USB_DC_ERROR, NULL); in usb_kinetis_thread_main() 1032 dev_data.status_cb(USB_DC_SUSPEND, NULL); in usb_kinetis_thread_main() 1035 dev_data.status_cb(USB_DC_RESUME, NULL); in usb_kinetis_thread_main()
|
D | usb_dc_smartbond.c | 132 usb_dc_status_callback status_cb; member 712 dev_state.status_cb(USB_DC_RESET, NULL); in handle_bus_reset() 751 dev_state.status_cb(USB_DC_RESUME, NULL); in handle_alt_ev() 758 dev_state.status_cb(USB_DC_SUSPEND, NULL); in handle_alt_ev() 908 dev_state.status_cb(USB_DC_CONNECTED, NULL); in usb_dc_smartbond_vbus_changed() 911 dev_state.status_cb(USB_DC_DISCONNECTED, NULL); in usb_dc_smartbond_vbus_changed() 1102 dev_state.status_cb = cb; in usb_dc_set_status_callback()
|
D | usb_dc_sam_usbc.c | 98 usb_dc_status_callback status_cb; member 551 dev_data.status_cb(USB_DC_SOF, NULL); in usb_dc_sam_usbc_isr() 581 dev_data.status_cb(USB_DC_RESUME, NULL); in usb_dc_sam_usbc_isr() 600 dev_data.status_cb(USB_DC_RESET, NULL); in usb_dc_sam_usbc_isr() 630 dev_data.status_cb(USB_DC_SUSPEND, NULL); in usb_dc_sam_usbc_isr() 834 dev_data.status_cb = cb; in usb_dc_set_status_callback()
|
D | usb_dc_rpi_pico.c | 56 usb_dc_status_callback status_cb; member 487 state.status_cb = cb; in usb_dc_set_status_callback() 979 if (state.status_cb) { in udc_rpi_thread_main() 980 state.status_cb(msg.type, NULL); in udc_rpi_thread_main()
|
D | usb_dc_native_posix.c | 62 usb_dc_status_callback status_cb; member 488 usbip_ctrl.status_cb = cb; in usb_dc_set_status_callback()
|
/Zephyr-Core-3.5.0/samples/subsys/usb/hid/src/ |
D | main.c | 117 static void status_cb(enum usb_dc_status_code status, const uint8_t *param) in status_cb() function 166 ret = usb_enable(status_cb); in main()
|
/Zephyr-Core-3.5.0/samples/subsys/usb/hid-mouse/src/ |
D | main.c | 40 static void status_cb(enum usb_dc_status_code status, const uint8_t *param) in status_cb() function 124 ret = usb_enable(status_cb); in main()
|
/Zephyr-Core-3.5.0/tests/subsys/usb/device/src/ |
D | main.c | 59 static void status_cb(struct usb_cfg_data *cfg, in status_cb() function 84 .cb_usb_status = status_cb,
|
/Zephyr-Core-3.5.0/include/zephyr/usb/ |
D | usb_device.h | 238 int usb_enable(usb_dc_status_callback status_cb);
|
/Zephyr-Core-3.5.0/samples/subsys/usb/hid-cdc/src/ |
D | main.c | 530 static void status_cb(enum usb_dc_status_code status, const uint8_t *param) in status_cb() function 607 ret = usb_enable(status_cb); in main()
|
/Zephyr-Core-3.5.0/subsys/usb/device/ |
D | usb_device.c | 1594 int usb_enable(usb_dc_status_callback status_cb) in usb_enable() argument 1618 usb_dev.user_status_callback = status_cb; in usb_enable()
|
/Zephyr-Core-3.5.0/doc/connectivity/usb/device/ |
D | usb_device.rst | 221 static void status_cb(enum usb_dc_status_code status, const uint8_t *param) 268 return usb_enable(status_cb);
|