/USBX-v6.3.0/common/usbx_host_classes/src/ |
D | ux_host_class_prolific_deactivate.c | 86 UX_HOST_CLASS_PROLIFIC *prolific; in _ux_host_class_prolific_deactivate() local 92 prolific = (UX_HOST_CLASS_PROLIFIC *) command -> ux_host_class_command_instance; in _ux_host_class_prolific_deactivate() 95 prolific -> ux_host_class_prolific_state = UX_HOST_CLASS_INSTANCE_SHUTDOWN; in _ux_host_class_prolific_deactivate() 98 … status = _ux_host_semaphore_get(&prolific -> ux_host_class_prolific_semaphore, UX_WAIT_FOREVER); in _ux_host_class_prolific_deactivate() 105 if (prolific -> ux_host_class_prolific_interrupt_endpoint != UX_NULL) in _ux_host_class_prolific_deactivate() 109 …transfer_request = &prolific -> ux_host_class_prolific_interrupt_endpoint -> ux_endpoint_transfer… in _ux_host_class_prolific_deactivate() 113 … _ux_host_stack_endpoint_transfer_abort(prolific -> ux_host_class_prolific_interrupt_endpoint); in _ux_host_class_prolific_deactivate() 122 …transfer_request = &prolific -> ux_host_class_prolific_bulk_in_endpoint -> ux_endpoint_transfer_r… in _ux_host_class_prolific_deactivate() 126 _ux_host_stack_endpoint_transfer_abort(prolific -> ux_host_class_prolific_bulk_in_endpoint); in _ux_host_class_prolific_deactivate() 130 …transfer_request = &prolific -> ux_host_class_prolific_bulk_out_endpoint -> ux_endpoint_transfer_… in _ux_host_class_prolific_deactivate() [all …]
|
D | ux_host_class_prolific_activate.c | 87 UX_HOST_CLASS_PROLIFIC *prolific; in _ux_host_class_prolific_activate() local 96 …prolific = _ux_utility_memory_allocate(UX_NO_ALIGN, UX_CACHE_SAFE_MEMORY, sizeof(UX_HOST_CLASS_PR… in _ux_host_class_prolific_activate() 97 if (prolific == UX_NULL) in _ux_host_class_prolific_activate() 101 prolific -> ux_host_class_prolific_class = command -> ux_host_class_command_class_ptr; in _ux_host_class_prolific_activate() 104 prolific -> ux_host_class_prolific_device = device; in _ux_host_class_prolific_activate() 108 device -> ux_device_class_instance = (VOID *) prolific; in _ux_host_class_prolific_activate() 111 … _ux_host_stack_class_instance_create(prolific -> ux_host_class_prolific_class, (VOID *) prolific); in _ux_host_class_prolific_activate() 114 status = _ux_host_class_prolific_configure(prolific); in _ux_host_class_prolific_activate() 119 status = _ux_host_class_prolific_endpoints_get(prolific); in _ux_host_class_prolific_activate() 126 prolific -> ux_host_class_prolific_version = device -> ux_device_descriptor.bcdDevice; in _ux_host_class_prolific_activate() [all …]
|
D | ux_host_class_prolific_transfer_request_completed.c | 81 UX_HOST_CLASS_PROLIFIC *prolific; in _ux_host_class_prolific_transfer_request_completed() local 85 prolific = (UX_HOST_CLASS_PROLIFIC *) transfer_request -> ux_transfer_request_class_instance; in _ux_host_class_prolific_transfer_request_completed() 94 if (prolific -> ux_host_class_prolific_state == UX_HOST_CLASS_INSTANCE_SHUTDOWN) in _ux_host_class_prolific_transfer_request_completed() 100 prolific -> ux_host_class_prolific_notification_count++; in _ux_host_class_prolific_transfer_request_completed() 112 … prolific -> ux_host_class_prolific_device_state = UX_HOST_CLASS_PROLIFIC_DEVICE_NOT_PRESENT; in _ux_host_class_prolific_transfer_request_completed() 117 … prolific -> ux_host_class_prolific_device_state = UX_HOST_CLASS_PROLIFIC_DEVICE_PRESENT; in _ux_host_class_prolific_transfer_request_completed() 120 if (prolific -> ux_host_class_prolific_device_status_change_callback != UX_NULL) in _ux_host_class_prolific_transfer_request_completed() 123 …prolific -> ux_host_class_prolific_device_status_change_callback(prolific, prolific -> ux_host_cla… in _ux_host_class_prolific_transfer_request_completed()
|
D | ux_host_class_prolific_ioctl.c | 87 UINT _ux_host_class_prolific_ioctl(UX_HOST_CLASS_PROLIFIC *prolific, ULONG ioctl_function, in _ux_host_class_prolific_ioctl() argument 101 if ((prolific -> ux_host_class_prolific_state != UX_HOST_CLASS_INSTANCE_LIVE) && in _ux_host_class_prolific_ioctl() 102 (prolific -> ux_host_class_prolific_state != UX_HOST_CLASS_INSTANCE_MOUNTING)) in _ux_host_class_prolific_ioctl() 109 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, prolific, 0, 0, UX_TRACE_E… in _ux_host_class_prolific_ioctl() 121 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_PROLIFIC_IOCTL_SET_LINE_CODING, prolific, parameter, 0… in _ux_host_class_prolific_ioctl() 154 … status = _ux_host_class_prolific_command(prolific, UX_HOST_CLASS_PROLIFIC_REQ_SET_LINE_CODING, in _ux_host_class_prolific_ioctl() 165 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_PROLIFIC_IOCTL_GET_LINE_CODING, prolific, parameter, 0… in _ux_host_class_prolific_ioctl() 179 … status = _ux_host_class_prolific_command(prolific, UX_HOST_CLASS_PROLIFIC_REQ_GET_LINE_CODING, in _ux_host_class_prolific_ioctl() 213 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_PROLIFIC_IOCTL_SET_LINE_STATE, prolific, parameter, 0,… in _ux_host_class_prolific_ioctl() 223 … status = _ux_host_class_prolific_command(prolific, UX_HOST_CLASS_PROLIFIC_REQ_SET_LINE_STATE, in _ux_host_class_prolific_ioctl() [all …]
|
D | ux_host_class_prolific_reception_stop.c | 78 UINT _ux_host_class_prolific_reception_stop (UX_HOST_CLASS_PROLIFIC *prolific, in _ux_host_class_prolific_reception_stop() argument 83 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_PROLIFIC_RECEPTION_STOP, prolific, 0, 0, 0, UX_TRACE_H… in _ux_host_class_prolific_reception_stop() 86 if (prolific -> ux_host_class_prolific_state != UX_HOST_CLASS_INSTANCE_LIVE) in _ux_host_class_prolific_reception_stop() 93 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, prolific, 0, 0, UX_TRACE_E… in _ux_host_class_prolific_reception_stop() 103 _ux_host_stack_endpoint_transfer_abort(prolific -> ux_host_class_prolific_bulk_in_endpoint); in _ux_host_class_prolific_reception_stop() 152 UINT _uxe_host_class_prolific_reception_stop (UX_HOST_CLASS_PROLIFIC *prolific, in _uxe_host_class_prolific_reception_stop() argument 157 if ((prolific == UX_NULL) || (prolific_reception == UX_NULL)) in _uxe_host_class_prolific_reception_stop() 161 return(_ux_host_class_prolific_reception_stop(prolific, prolific_reception)); in _uxe_host_class_prolific_reception_stop()
|
D | ux_host_class_prolific_endpoints_get.c | 83 UINT _ux_host_class_prolific_endpoints_get(UX_HOST_CLASS_PROLIFIC *prolific) in _ux_host_class_prolific_endpoints_get() argument 93 …for (endpoint_index = 0; endpoint_index < prolific -> ux_host_class_prolific_interface -> ux_inter… in _ux_host_class_prolific_endpoints_get() 98 …status = _ux_host_stack_interface_endpoint_get(prolific -> ux_host_class_prolific_interface, endp… in _ux_host_class_prolific_endpoints_get() 113 prolific -> ux_host_class_prolific_bulk_out_endpoint = endpoint; in _ux_host_class_prolific_endpoints_get() 120 if (prolific -> ux_host_class_prolific_bulk_out_endpoint == UX_NULL) in _ux_host_class_prolific_endpoints_get() 127 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_ENDPOINT_HANDLE_UNKNOWN, prolific, 0, 0, UX_TRACE_ERROR… in _ux_host_class_prolific_endpoints_get() 133 …for (endpoint_index = 0; endpoint_index < prolific -> ux_host_class_prolific_interface -> ux_inter… in _ux_host_class_prolific_endpoints_get() 138 …status = _ux_host_stack_interface_endpoint_get(prolific -> ux_host_class_prolific_interface, endp… in _ux_host_class_prolific_endpoints_get() 153 prolific -> ux_host_class_prolific_bulk_in_endpoint = endpoint; in _ux_host_class_prolific_endpoints_get() 160 if (prolific -> ux_host_class_prolific_bulk_in_endpoint == UX_NULL) in _ux_host_class_prolific_endpoints_get() [all …]
|
D | ux_host_class_prolific_reception_start.c | 77 UINT _ux_host_class_prolific_reception_start (UX_HOST_CLASS_PROLIFIC *prolific, in _ux_host_class_prolific_reception_start() argument 85 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_PROLIFIC_RECEPTION_START, prolific, 0, 0, 0, UX_TRACE_… in _ux_host_class_prolific_reception_start() 88 if (prolific -> ux_host_class_prolific_state != UX_HOST_CLASS_INSTANCE_LIVE) in _ux_host_class_prolific_reception_start() 95 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, prolific, 0, 0, UX_TRACE_E… in _ux_host_class_prolific_reception_start() 105 …transfer_request = &prolific -> ux_host_class_prolific_bulk_in_endpoint -> ux_endpoint_transfer_r… in _ux_host_class_prolific_reception_start() 108 transfer_request -> ux_transfer_request_class_instance = (VOID *) prolific; in _ux_host_class_prolific_reception_start() 114 prolific -> ux_host_class_prolific_reception = prolific_reception; in _ux_host_class_prolific_reception_start() 171 UINT _uxe_host_class_prolific_reception_start (UX_HOST_CLASS_PROLIFIC *prolific, in _uxe_host_class_prolific_reception_start() argument 176 if ((prolific == UX_NULL) || (prolific_reception == UX_NULL)) in _uxe_host_class_prolific_reception_start() 180 return(_ux_host_class_prolific_reception_start(prolific, prolific_reception)); in _uxe_host_class_prolific_reception_start()
|
D | ux_host_class_prolific_configure.c | 82 UINT _ux_host_class_prolific_configure(UX_HOST_CLASS_PROLIFIC *prolific) in _ux_host_class_prolific_configure() argument 94 if (prolific -> ux_host_class_prolific_device -> ux_device_state == UX_DEVICE_CONFIGURED) in _ux_host_class_prolific_configure() 99 …status = _ux_host_stack_device_configuration_get(prolific -> ux_host_class_prolific_device, 0, &c… in _ux_host_class_prolific_configure() 107 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_CONFIGURATION_HANDLE_UNKNOWN, prolific -> ux_host_class… in _ux_host_class_prolific_configure() 115 … if (prolific -> ux_host_class_prolific_device -> ux_device_power_source == UX_DEVICE_BUS_POWERED) in _ux_host_class_prolific_configure() 119 parent_device = prolific -> ux_host_class_prolific_device -> ux_device_parent; in _ux_host_class_prolific_configure() 130 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_CONNECTION_INCOMPATIBLE, prolific, 0, 0, UX_TRACE_ERROR… in _ux_host_class_prolific_configure() 145 …status = _ux_host_stack_configuration_interface_get(configuration, 0, 0, &prolific -> ux_host_cla… in _ux_host_class_prolific_configure()
|
D | ux_host_class_prolific_command.c | 89 UINT _ux_host_class_prolific_command(UX_HOST_CLASS_PROLIFIC *prolific, ULONG command, in _ux_host_class_prolific_command() argument 99 control_endpoint = &prolific -> ux_host_class_prolific_device -> ux_device_control_endpoint; in _ux_host_class_prolific_command() 104 …status = _ux_host_semaphore_get(&prolific -> ux_host_class_prolific_device -> ux_device_protectio… in _ux_host_class_prolific_command() 118 …transfer_request -> ux_transfer_request_index = prolific -> ux_host_class_prolific_int… in _ux_host_class_prolific_command() 170 UINT _uxe_host_class_prolific_command(UX_HOST_CLASS_PROLIFIC *prolific, ULONG command, in _uxe_host_class_prolific_command() argument 175 if (prolific == UX_NULL) in _uxe_host_class_prolific_command() 179 return(_ux_host_class_prolific_command(prolific, command, value, data_buffer, data_length)); in _uxe_host_class_prolific_command()
|
D | ux_host_class_prolific_reception_callback.c | 77 UX_HOST_CLASS_PROLIFIC *prolific; in _ux_host_class_prolific_reception_callback() local 81 prolific = (UX_HOST_CLASS_PROLIFIC *) transfer_request -> ux_transfer_request_class_instance; in _ux_host_class_prolific_reception_callback() 84 prolific_reception = prolific -> ux_host_class_prolific_reception; in _ux_host_class_prolific_reception_callback() 94 …prolific_reception -> ux_host_class_prolific_reception_callback(prolific, transfer_request -> ux_t… in _ux_host_class_prolific_reception_callback() 103 if (prolific -> ux_host_class_prolific_state == UX_HOST_CLASS_INSTANCE_SHUTDOWN) in _ux_host_class_prolific_reception_callback() 124 …prolific_reception -> ux_host_class_prolific_reception_callback(prolific, UX_BUFFER_OVERFLOW, UX_N… in _ux_host_class_prolific_reception_callback() 144 prolific_reception -> ux_host_class_prolific_reception_callback(prolific, in _ux_host_class_prolific_reception_callback()
|
D | ux_host_class_prolific_read.c | 84 UINT _ux_host_class_prolific_read (UX_HOST_CLASS_PROLIFIC *prolific, UCHAR *data_pointer, in _ux_host_class_prolific_read() argument 93 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_PROLIFIC_READ, prolific, data_pointer, requested_lengt… in _ux_host_class_prolific_read() 96 if (prolific -> ux_host_class_prolific_state != UX_HOST_CLASS_INSTANCE_LIVE) in _ux_host_class_prolific_read() 103 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, prolific, 0, 0, UX_TRACE_E… in _ux_host_class_prolific_read() 112 …transfer_request = &prolific -> ux_host_class_prolific_bulk_in_endpoint -> ux_endpoint_transfer_r… in _ux_host_class_prolific_read() 239 UINT _uxe_host_class_prolific_read (UX_HOST_CLASS_PROLIFIC *prolific, UCHAR *data_pointer, in _uxe_host_class_prolific_read() argument 244 if ((prolific == UX_NULL) || (data_pointer == UX_NULL) || (actual_length == UX_NULL)) in _uxe_host_class_prolific_read() 248 return(_ux_host_class_prolific_read(prolific, data_pointer, requested_length, actual_length)); in _uxe_host_class_prolific_read()
|
D | ux_host_class_prolific_write.c | 83 UINT _ux_host_class_prolific_write(UX_HOST_CLASS_PROLIFIC *prolific, UCHAR *data_pointer, in _ux_host_class_prolific_write() argument 92 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_PROLIFIC_WRITE, prolific, data_pointer, requested_leng… in _ux_host_class_prolific_write() 95 if (prolific -> ux_host_class_prolific_state != UX_HOST_CLASS_INSTANCE_LIVE) in _ux_host_class_prolific_write() 102 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, prolific, 0, 0, UX_TRACE_E… in _ux_host_class_prolific_write() 111 …transfer_request = &prolific -> ux_host_class_prolific_bulk_out_endpoint -> ux_endpoint_transfer_… in _ux_host_class_prolific_write() 238 UINT _uxe_host_class_prolific_write(UX_HOST_CLASS_PROLIFIC *prolific, UCHAR *data_pointer, in _uxe_host_class_prolific_write() argument 243 if ((prolific == UX_NULL) || in _uxe_host_class_prolific_write() 251 return(_ux_host_class_prolific_write(prolific, data_pointer, requested_length, actual_length)); in _uxe_host_class_prolific_write()
|
D | ux_host_class_prolific_setup.c | 79 UINT _ux_host_class_prolific_setup(UX_HOST_CLASS_PROLIFIC *prolific) in _ux_host_class_prolific_setup() argument 88 control_endpoint = &prolific -> ux_host_class_prolific_device -> ux_device_control_endpoint; in _ux_host_class_prolific_setup() 97 …if (prolific -> ux_host_class_prolific_device -> ux_device_descriptor.bDeviceClass == 0x02) in _ux_host_class_prolific_setup() 100 prolific -> ux_host_class_prolific_device_type = UX_HOST_CLASS_PROLIFIC_DEVICE_TYPE_0; in _ux_host_class_prolific_setup() 106 if (prolific -> ux_host_class_prolific_device -> ux_device_descriptor.bMaxPacketSize0 == 64) in _ux_host_class_prolific_setup() 109 prolific -> ux_host_class_prolific_device_type = UX_HOST_CLASS_PROLIFIC_DEVICE_TYPE_HX; in _ux_host_class_prolific_setup() 114 prolific -> ux_host_class_prolific_device_type = UX_HOST_CLASS_PROLIFIC_DEVICE_TYPE_1; in _ux_host_class_prolific_setup() 349 if (prolific -> ux_host_class_prolific_device_type == UX_HOST_CLASS_PROLIFIC_DEVICE_TYPE_HX) in _ux_host_class_prolific_setup()
|
/USBX-v6.3.0/common/usbx_host_classes/inc/ |
D | ux_host_class_prolific.h | 224 …host_class_prolific_device_status_change_callback)(struct UX_HOST_CLASS_PROLIFIC_STRUCT *prolific, 246 … (*ux_host_class_prolific_reception_callback)(struct UX_HOST_CLASS_PROLIFIC_STRUCT *prolific, 288 UINT _ux_host_class_prolific_configure(UX_HOST_CLASS_PROLIFIC *prolific); 290 UINT _ux_host_class_prolific_endpoints_get(UX_HOST_CLASS_PROLIFIC *prolific); 292 UINT _ux_host_class_prolific_read (UX_HOST_CLASS_PROLIFIC *prolific, UCHAR *data_pointer, 294 UINT _ux_host_class_prolific_write(UX_HOST_CLASS_PROLIFIC *prolific, UCHAR *data_pointer, 296 UINT _ux_host_class_prolific_ioctl(UX_HOST_CLASS_PROLIFIC *prolific, ULONG request, 298 UINT _ux_host_class_prolific_command(UX_HOST_CLASS_PROLIFIC *prolific, ULONG command, 301 UINT _ux_host_class_prolific_reception_stop (UX_HOST_CLASS_PROLIFIC *prolific, 303 UINT _ux_host_class_prolific_reception_start (UX_HOST_CLASS_PROLIFIC *prolific, [all …]
|