Home
last modified time | relevance | path

Searched refs:callback (Results 1 – 17 of 17) sorted by relevance

/USBX-v6.2.1/common/usbx_host_classes/src/
Dux_host_class_hid_transfer_request_completed.c89 UX_HOST_CLASS_HID_REPORT_CALLBACK callback; in _ux_host_class_hid_transfer_request_completed() local
168 callback.ux_host_class_hid_report_callback_client = hid_client; in _ux_host_class_hid_transfer_request_completed()
169callback.ux_host_class_hid_report_callback_id = hid_report -> ux_host_class_hid_report_id; in _ux_host_class_hid_transfer_request_completed()
176callback.ux_host_class_hid_report_callback_actual_length = transfer_request -> ux_transfer_reques… in _ux_host_class_hid_transfer_request_completed()
177 callback.ux_host_class_hid_report_callback_buffer = report_buffer; in _ux_host_class_hid_transfer_request_completed()
180 callback.ux_host_class_hid_report_callback_status = status; in _ux_host_class_hid_transfer_request_completed()
183callback.ux_host_class_hid_report_callback_flags = hid_report -> ux_host_class_hid_report_callbac… in _ux_host_class_hid_transfer_request_completed()
186 hid_report -> ux_host_class_hid_report_callback_function(&callback); in _ux_host_class_hid_transfer_request_completed()
230callback.ux_host_class_hid_report_callback_flags = hid_report -> ux_host_class_hid_report_callbac… in _ux_host_class_hid_transfer_request_completed()
233 callback.ux_host_class_hid_report_callback_actual_length = 0; in _ux_host_class_hid_transfer_request_completed()
[all …]
Dux_host_class_hid_mouse_callback.c74 VOID _ux_host_class_hid_mouse_callback(UX_HOST_CLASS_HID_REPORT_CALLBACK *callback) in _ux_host_class_hid_mouse_callback() argument
81 hid_client = callback -> ux_host_class_hid_report_callback_client; in _ux_host_class_hid_mouse_callback()
87 switch (callback -> ux_host_class_hid_report_callback_usage) in _ux_host_class_hid_mouse_callback()
95 …mouse_instance -> ux_host_class_hid_mouse_x_position += (SCHAR) callback -> ux_host_class_hid_repo… in _ux_host_class_hid_mouse_callback()
102 …mouse_instance -> ux_host_class_hid_mouse_y_position += (SCHAR) callback -> ux_host_class_hid_rep… in _ux_host_class_hid_mouse_callback()
109 if (callback -> ux_host_class_hid_report_callback_value == UX_TRUE) in _ux_host_class_hid_mouse_callback()
118 if (callback -> ux_host_class_hid_report_callback_value == UX_TRUE) in _ux_host_class_hid_mouse_callback()
127 if (callback -> ux_host_class_hid_report_callback_value == UX_TRUE) in _ux_host_class_hid_mouse_callback()
137 …mouse_instance -> ux_host_class_hid_mouse_wheel += (SCHAR) callback -> ux_host_class_hid_report_ca… in _ux_host_class_hid_mouse_callback()
Dux_host_class_hid_remote_control_callback.c72 VOID _ux_host_class_hid_remote_control_callback(UX_HOST_CLASS_HID_REPORT_CALLBACK *callback) in _ux_host_class_hid_remote_control_callback() argument
85 hid_client = callback -> ux_host_class_hid_report_callback_client; in _ux_host_class_hid_remote_control_callback()
113 *array_head = callback -> ux_host_class_hid_report_callback_usage; in _ux_host_class_hid_remote_control_callback()
114 *(array_head + 1) = callback -> ux_host_class_hid_report_callback_value; in _ux_host_class_hid_remote_control_callback()
Dux_host_class_hid_keyboard_callback.c77 VOID _ux_host_class_hid_keyboard_callback(UX_HOST_CLASS_HID_REPORT_CALLBACK *callback) argument
161 hid_client = callback -> ux_host_class_hid_report_callback_client;
167 report_buffer = (ULONG *)callback -> ux_host_class_hid_report_callback_buffer;
170 report_buffer_end = &report_buffer[callback -> ux_host_class_hid_report_callback_actual_length];
/USBX-v6.2.1/test/regression/
Dusbx_hid_transfer_request_completed_raw_test.c301 VOID dummy_transfer_request_callback_successful(UX_HOST_CLASS_HID_REPORT_CALLBACK *callback) in dummy_transfer_request_callback_successful() argument
307 actual_value = *((ULONG *)callback->ux_host_class_hid_report_callback_buffer); in dummy_transfer_request_callback_successful()
324 VOID dummy_transfer_request_callback_failure(UX_HOST_CLASS_HID_REPORT_CALLBACK *callback) in dummy_transfer_request_callback_failure() argument
334 UX_HOST_CLASS_HID_REPORT_CALLBACK callback; in tx_demo_thread_host_simulation_entry() local
361 callback.ux_host_class_hid_report_callback_id = 0; in tx_demo_thread_host_simulation_entry()
362callback.ux_host_class_hid_report_callback_function = dummy_transfer_request_callback_successful; in tx_demo_thread_host_simulation_entry()
363 callback.ux_host_class_hid_report_callback_buffer = buffer; in tx_demo_thread_host_simulation_entry()
364 callback.ux_host_class_hid_report_callback_flags = UX_HOST_CLASS_HID_REPORT_RAW; in tx_demo_thread_host_simulation_entry()
365 callback.ux_host_class_hid_report_callback_length = sizeof(buffer); in tx_demo_thread_host_simulation_entry()
367 ux_host_class_hid_report_callback_register(hid, &callback); in tx_demo_thread_host_simulation_entry()
[all …]
Dusbx_hid_transfer_request_completed_decompressed_test.c299 VOID dummy_transfer_request_callback(UX_HOST_CLASS_HID_REPORT_CALLBACK *callback) in dummy_transfer_request_callback() argument
313 buffer = callback->ux_host_class_hid_report_callback_buffer; in dummy_transfer_request_callback()
358 UX_HOST_CLASS_HID_REPORT_CALLBACK callback; in tx_demo_thread_host_simulation_entry() local
382 callback.ux_host_class_hid_report_callback_id = 0; in tx_demo_thread_host_simulation_entry()
383 callback.ux_host_class_hid_report_callback_function = dummy_transfer_request_callback; in tx_demo_thread_host_simulation_entry()
384 callback.ux_host_class_hid_report_callback_buffer = buffer; in tx_demo_thread_host_simulation_entry()
385 callback.ux_host_class_hid_report_callback_flags = UX_HOST_CLASS_HID_REPORT_DECOMPRESSED; in tx_demo_thread_host_simulation_entry()
386 callback.ux_host_class_hid_report_callback_length = sizeof(buffer); in tx_demo_thread_host_simulation_entry()
388 status = ux_host_class_hid_report_callback_register(hid, &callback); in tx_demo_thread_host_simulation_entry()
Dusbx_hid_report_multiple_reports_ids_test.c326 static VOID demo_host_class_hid_report0_callback(UX_HOST_CLASS_HID_REPORT_CALLBACK *callback) in demo_host_class_hid_report0_callback() argument
328 …test_log_add(0, callback->ux_host_class_hid_report_callback_buffer,callback->ux_host_class_hid_rep… in demo_host_class_hid_report0_callback()
330 static VOID demo_host_class_hid_report2_callback(UX_HOST_CLASS_HID_REPORT_CALLBACK *callback) in demo_host_class_hid_report2_callback() argument
332 …test_log_add(2, callback->ux_host_class_hid_report_callback_buffer,callback->ux_host_class_hid_rep… in demo_host_class_hid_report2_callback()
334 static VOID demo_host_class_hid_report4_callback(UX_HOST_CLASS_HID_REPORT_CALLBACK *callback) in demo_host_class_hid_report4_callback() argument
336 …test_log_add(4, callback->ux_host_class_hid_report_callback_buffer,callback->ux_host_class_hid_rep… in demo_host_class_hid_report4_callback()
Dusbx_ux_device_class_cdc_acm_transmission_test.c762 UX_SLAVE_CLASS_CDC_ACM_CALLBACK_PARAMETER callback; in tx_test_thread_slave_simulation_entry() local
810 callback.ux_device_class_cdc_acm_parameter_write_callback = tx_demo_thread_slave_write_callback; in tx_test_thread_slave_simulation_entry()
811 callback.ux_device_class_cdc_acm_parameter_read_callback = tx_demo_thread_slave_read_callback; in tx_test_thread_slave_simulation_entry()
834 …ice_class_cdc_acm_ioctl(cdc_acm_slave, UX_SLAVE_CLASS_CDC_ACM_IOCTL_TRANSMISSION_START, &callback); in tx_test_thread_slave_simulation_entry()
845 …ice_class_cdc_acm_ioctl(cdc_acm_slave, UX_SLAVE_CLASS_CDC_ACM_IOCTL_TRANSMISSION_START, &callback); in tx_test_thread_slave_simulation_entry()
855 …ice_class_cdc_acm_ioctl(cdc_acm_slave, UX_SLAVE_CLASS_CDC_ACM_IOCTL_TRANSMISSION_START, &callback); in tx_test_thread_slave_simulation_entry()
865 …ice_class_cdc_acm_ioctl(cdc_acm_slave, UX_SLAVE_CLASS_CDC_ACM_IOCTL_TRANSMISSION_START, &callback); in tx_test_thread_slave_simulation_entry()
879 …ice_class_cdc_acm_ioctl(cdc_acm_slave, UX_SLAVE_CLASS_CDC_ACM_IOCTL_TRANSMISSION_START, &callback); in tx_test_thread_slave_simulation_entry()
893 …ice_class_cdc_acm_ioctl(cdc_acm_slave, UX_SLAVE_CLASS_CDC_ACM_IOCTL_TRANSMISSION_START, &callback); in tx_test_thread_slave_simulation_entry()
911 …ice_class_cdc_acm_ioctl(cdc_acm_slave, UX_SLAVE_CLASS_CDC_ACM_IOCTL_TRANSMISSION_START, &callback); in tx_test_thread_slave_simulation_entry()
[all …]
Dusbx_ux_device_class_hid_wMaxPacketSize_test.c321 static VOID _hid_report_callback(UX_HOST_CLASS_HID_REPORT_CALLBACK *callback) in _hid_report_callback() argument
324 length = callback->ux_host_class_hid_report_callback_actual_length; in _hid_report_callback()
328 callback->ux_host_class_hid_report_callback_buffer, in _hid_report_callback()
Dusbx_ux_device_class_cdc_acm_bulkout_thread_test.c637 UX_SLAVE_CLASS_CDC_ACM_CALLBACK_PARAMETER callback; in tx_test_thread_slave_simulation_entry() local
682 callback.ux_device_class_cdc_acm_parameter_write_callback = tx_demo_thread_slave_write_callback; in tx_test_thread_slave_simulation_entry()
683 callback.ux_device_class_cdc_acm_parameter_read_callback = tx_demo_thread_slave_read_callback; in tx_test_thread_slave_simulation_entry()
705 …ice_class_cdc_acm_ioctl(cdc_acm_slave, UX_SLAVE_CLASS_CDC_ACM_IOCTL_TRANSMISSION_START, &callback); in tx_test_thread_slave_simulation_entry()
Dusbx_ux_device_class_hid_idle_rate_test.c437 static VOID _hid_report_callback(UX_HOST_CLASS_HID_REPORT_CALLBACK *callback) in _hid_report_callback() argument
441 length = callback->ux_host_class_hid_report_callback_actual_length; in _hid_report_callback()
445 callback->ux_host_class_hid_report_callback_buffer, in _hid_report_callback()
Dusbx_class_hid_basic_test.c501 static VOID test_hid_report_callback(UX_HOST_CLASS_HID_REPORT_CALLBACK *callback) in test_hid_report_callback() argument
/USBX-v6.2.1/common/usbx_device_classes/src/
Dux_device_class_cdc_acm_ioctl.c110 UX_SLAVE_CLASS_CDC_ACM_CALLBACK_PARAMETER *callback; in _ux_device_class_cdc_acm_ioctl() local
276 callback = (UX_SLAVE_CLASS_CDC_ACM_CALLBACK_PARAMETER *) parameter; in _ux_device_class_cdc_acm_ioctl()
279 …cdc_acm -> ux_device_class_cdc_acm_write_callback = callback -> ux_device_class_cdc_acm_parameter… in _ux_device_class_cdc_acm_ioctl()
282 …cdc_acm -> ux_device_class_cdc_acm_read_callback = callback -> ux_device_class_cdc_acm_parameter_r… in _ux_device_class_cdc_acm_ioctl()
/USBX-v6.2.1/common/usbx_host_classes/inc/
Dux_host_class_hid_remote_control.h108 VOID _ux_host_class_hid_remote_control_callback(UX_HOST_CLASS_HID_REPORT_CALLBACK *callback);
Dux_host_class_hid_mouse.h126 VOID _ux_host_class_hid_mouse_callback(UX_HOST_CLASS_HID_REPORT_CALLBACK *callback);
Dux_host_class_hid_keyboard.h253 VOID _ux_host_class_hid_keyboard_callback(UX_HOST_CLASS_HID_REPORT_CALLBACK *callback);
/USBX-v6.2.1/docs/
Drevision_history.txt104 added DTR callback, proper prototype,
116 … ux_device_class_cdc_acm_write_with_callback.c Write to host with non-blocking callback mode.
124 … activation callback if default setting contains endpoints.
134 and invoke app deactivate callback
138 … ux_device_class_hid_event_get.c Removed unnecessary error callback invocation.
174 if cache callback is implemented,
193 …class_cdc_acm_reception_stop.c Reset transfer request completion callback to NULL on stop,
221 … invoke error callback if packet allocation times out,
224 … added error callback invocation when transfer fails,
238 … invoked error callback if packet allocation times out,
[all …]