Home
last modified time | relevance | path

Searched refs:dpump (Results 1 – 19 of 19) sorted by relevance

/USBX-v6.2.1/common/core/src/
Dux_device_class_dpump_read_run.c83 UINT _ux_device_class_dpump_read_run(UX_SLAVE_CLASS_DPUMP *dpump, UCHAR *buffer, in _ux_device_class_dpump_read_run() argument
95 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_DEVICE_CLASS_DPUMP_READ, dpump, buffer, requested_length, 0, UX_T… in _ux_device_class_dpump_read_run()
111 dpump -> ux_device_class_dpump_read_state = UX_STATE_RESET; in _ux_device_class_dpump_read_run()
112 dpump -> ux_device_class_dpump_read_status = UX_CONFIGURATION_HANDLE_UNKNOWN; in _ux_device_class_dpump_read_run()
117 endpoint = dpump -> ux_slave_class_dpump_bulkout_endpoint; in _ux_device_class_dpump_read_run()
125 dpump -> ux_device_class_dpump_read_state = UX_STATE_RESET; in _ux_device_class_dpump_read_run()
126 dpump -> ux_device_class_dpump_read_status = UX_ENDPOINT_HANDLE_UNKNOWN; in _ux_device_class_dpump_read_run()
134 read_state = dpump -> ux_device_class_dpump_read_state; in _ux_device_class_dpump_read_run()
138 dpump -> ux_device_class_dpump_read_state = UX_DEVICE_CLASS_DPUMP_READ_START; in _ux_device_class_dpump_read_run()
139 dpump -> ux_device_class_dpump_read_status = UX_TRANSFER_NO_ANSWER; in _ux_device_class_dpump_read_run()
[all …]
Dux_device_class_dpump_write_run.c83 UINT _ux_device_class_dpump_write_run(UX_SLAVE_CLASS_DPUMP *dpump, UCHAR *buffer, in _ux_device_class_dpump_write_run() argument
96 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_DEVICE_CLASS_DPUMP_WRITE, dpump, buffer, requested_length, 0, UX_… in _ux_device_class_dpump_write_run()
112 dpump -> ux_device_class_dpump_write_state = UX_STATE_RESET; in _ux_device_class_dpump_write_run()
113 dpump -> ux_device_class_dpump_write_status = UX_CONFIGURATION_HANDLE_UNKNOWN; in _ux_device_class_dpump_write_run()
118 endpoint = dpump -> ux_slave_class_dpump_bulkin_endpoint; in _ux_device_class_dpump_write_run()
126 dpump -> ux_device_class_dpump_write_state = UX_STATE_RESET; in _ux_device_class_dpump_write_run()
127 dpump -> ux_device_class_dpump_write_status = UX_ENDPOINT_HANDLE_UNKNOWN; in _ux_device_class_dpump_write_run()
135 read_state = dpump -> ux_device_class_dpump_write_state; in _ux_device_class_dpump_write_run()
139 dpump -> ux_device_class_dpump_write_state = UX_DEVICE_CLASS_DPUMP_WRITE_START; in _ux_device_class_dpump_write_run()
140 dpump -> ux_device_class_dpump_write_status = UX_TRANSFER_NO_ANSWER; in _ux_device_class_dpump_write_run()
[all …]
Dux_host_class_dpump_activate.c91 UX_HOST_CLASS_DPUMP *dpump; in _ux_host_class_dpump_activate() local
100dpump = _ux_utility_memory_allocate(UX_NO_ALIGN, UX_REGULAR_MEMORY, sizeof(UX_HOST_CLASS_DPUMP)); in _ux_host_class_dpump_activate()
101 if (dpump == UX_NULL) in _ux_host_class_dpump_activate()
105 dpump -> ux_host_class_dpump_class = command -> ux_host_class_command_class_ptr; in _ux_host_class_dpump_activate()
108 dpump -> ux_host_class_dpump_interface = interface_ptr; in _ux_host_class_dpump_activate()
111dpump -> ux_host_class_dpump_device = interface_ptr -> ux_interface_configuration -> ux_configura… in _ux_host_class_dpump_activate()
114 interface_ptr -> ux_interface_class_instance = (VOID *) dpump; in _ux_host_class_dpump_activate()
117 _ux_host_stack_class_instance_create(dpump -> ux_host_class_dpump_class, (VOID *) dpump); in _ux_host_class_dpump_activate()
120 status = _ux_host_class_dpump_configure(dpump); in _ux_host_class_dpump_activate()
124 _ux_host_stack_class_instance_destroy(dpump -> ux_host_class_dpump_class, (VOID *) dpump); in _ux_host_class_dpump_activate()
[all …]
Dux_host_class_dpump_deactivate.c85 UX_HOST_CLASS_DPUMP *dpump; in _ux_host_class_dpump_deactivate() local
90 dpump = (UX_HOST_CLASS_DPUMP *) command -> ux_host_class_command_instance; in _ux_host_class_dpump_deactivate()
93 dpump -> ux_host_class_dpump_state = UX_HOST_CLASS_INSTANCE_SHUTDOWN; in _ux_host_class_dpump_deactivate()
96 status = _ux_host_semaphore_get(&dpump -> ux_host_class_dpump_semaphore, UX_WAIT_FOREVER); in _ux_host_class_dpump_deactivate()
101 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, dpump, 0, 0, UX_TRACE_ERRO… in _ux_host_class_dpump_deactivate()
107 _ux_host_stack_endpoint_transfer_abort(dpump -> ux_host_class_dpump_bulk_out_endpoint); in _ux_host_class_dpump_deactivate()
110 _ux_host_stack_endpoint_transfer_abort(dpump -> ux_host_class_dpump_bulk_in_endpoint); in _ux_host_class_dpump_deactivate()
116 _ux_host_stack_class_instance_destroy(dpump -> ux_host_class_dpump_class, (VOID *) dpump); in _ux_host_class_dpump_deactivate()
119 _ux_host_semaphore_delete(&dpump -> ux_host_class_dpump_semaphore); in _ux_host_class_dpump_deactivate()
127 … ux_system_host_change_function(UX_DEVICE_REMOVAL, dpump -> ux_host_class_dpump_class, (VOID *) dp… in _ux_host_class_dpump_deactivate()
[all …]
Dux_device_class_dpump_change.c86 UX_SLAVE_CLASS_DPUMP *dpump; in _ux_device_class_dpump_change() local
93 dpump = (UX_SLAVE_CLASS_DPUMP *) class_ptr -> ux_slave_class_instance; in _ux_device_class_dpump_change()
102dpump -> ux_slave_class_dpump_alternate_setting = interface_ptr -> ux_slave_interface_descriptor.… in _ux_device_class_dpump_change()
122 dpump -> ux_slave_class_dpump_bulkin_endpoint = endpoint; in _ux_device_class_dpump_change()
131 dpump -> ux_slave_class_dpump_bulkout_endpoint = endpoint; in _ux_device_class_dpump_change()
140 …if (dpump -> ux_slave_class_dpump_bulkout_endpoint == UX_NULL || dpump -> ux_slave_class_dpump_bul… in _ux_device_class_dpump_change()
146 …_ux_utility_memory_set(dpump -> ux_slave_class_dpump_bulkout_endpoint -> ux_slave_endpoint_transfe… in _ux_device_class_dpump_change()
148 …_ux_utility_memory_set(dpump -> ux_slave_class_dpump_bulkin_endpoint -> ux_slave_endpoint_transfer… in _ux_device_class_dpump_change()
152dpump -> ux_slave_class_dpump_alternate_setting = interface_ptr -> ux_slave_interface_descriptor.… in _ux_device_class_dpump_change()
157 dpump -> ux_device_class_dpump_read_state = 0; in _ux_device_class_dpump_change()
[all …]
Dux_device_class_dpump_activate.c82 UX_SLAVE_CLASS_DPUMP *dpump; in _ux_device_class_dpump_activate() local
90 dpump = (UX_SLAVE_CLASS_DPUMP *) class_ptr -> ux_slave_class_instance; in _ux_device_class_dpump_activate()
96 interface_ptr -> ux_slave_interface_class_instance = (VOID *)dpump; in _ux_device_class_dpump_activate()
99 dpump -> ux_slave_class_dpump_interface = interface_ptr; in _ux_device_class_dpump_activate()
116 dpump -> ux_slave_class_dpump_bulkin_endpoint = endpoint; in _ux_device_class_dpump_activate()
125 dpump -> ux_slave_class_dpump_bulkout_endpoint = endpoint; in _ux_device_class_dpump_activate()
135 dpump -> ux_device_class_dpump_read_state = 0; in _ux_device_class_dpump_activate()
136 dpump -> ux_device_class_dpump_write_state = 0; in _ux_device_class_dpump_activate()
140 if (dpump -> ux_slave_class_dpump_parameter.ux_slave_class_dpump_instance_activate != UX_NULL) in _ux_device_class_dpump_activate()
144 dpump -> ux_slave_class_dpump_parameter.ux_slave_class_dpump_instance_activate(dpump); in _ux_device_class_dpump_activate()
[all …]
Dux_host_class_dpump_configure.c78 UINT _ux_host_class_dpump_configure(UX_HOST_CLASS_DPUMP *dpump) in _ux_host_class_dpump_configure() argument
90 if (dpump -> ux_host_class_dpump_device -> ux_device_state == UX_DEVICE_CONFIGURED) in _ux_host_class_dpump_configure()
95 …status = _ux_host_stack_device_configuration_get(dpump -> ux_host_class_dpump_device, 0, &configu… in _ux_host_class_dpump_configure()
103 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_CONFIGURATION_HANDLE_UNKNOWN, dpump -> ux_host_class_dp… in _ux_host_class_dpump_configure()
111 if (dpump -> ux_host_class_dpump_device -> ux_device_power_source == UX_DEVICE_BUS_POWERED) in _ux_host_class_dpump_configure()
115 parent_device = dpump -> ux_host_class_dpump_device -> ux_device_parent; in _ux_host_class_dpump_configure()
123 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_CONNECTION_INCOMPATIBLE, dpump, 0, 0, UX_TRACE_ERRORS, … in _ux_host_class_dpump_configure()
138 …status = _ux_host_stack_configuration_interface_get(configuration, 0, 0, &dpump -> ux_host_class_… in _ux_host_class_dpump_configure()
144 dpump -> ux_host_class_dpump_interface -> ux_interface_class_instance = (VOID *) dpump; in _ux_host_class_dpump_configure()
Dux_device_class_dpump_deactivate.c81 UX_SLAVE_CLASS_DPUMP *dpump; in _ux_device_class_dpump_deactivate() local
89 dpump = (UX_SLAVE_CLASS_DPUMP *) class_ptr -> ux_slave_class_instance; in _ux_device_class_dpump_deactivate()
92 interface_ptr = dpump -> ux_slave_class_dpump_interface; in _ux_device_class_dpump_deactivate()
119 if (dpump -> ux_slave_class_dpump_parameter.ux_slave_class_dpump_instance_deactivate != UX_NULL) in _ux_device_class_dpump_deactivate()
123 dpump -> ux_slave_class_dpump_parameter.ux_slave_class_dpump_instance_deactivate(dpump); in _ux_device_class_dpump_deactivate()
127 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_DEVICE_CLASS_DPUMP_DEACTIVATE, dpump, 0, 0, 0, UX_TRACE_DEVICE_CL… in _ux_device_class_dpump_deactivate()
130 UX_TRACE_OBJECT_UNREGISTER(dpump); in _ux_device_class_dpump_deactivate()
Dux_host_class_dpump_read.c84 UINT _ux_host_class_dpump_read(UX_HOST_CLASS_DPUMP *dpump, UCHAR *data_pointer, in _ux_host_class_dpump_read() argument
96 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_DPUMP_READ, dpump, data_pointer, requested_length, 0, … in _ux_host_class_dpump_read()
99 …if (_ux_host_stack_class_instance_verify(_ux_system_host_class_dpump_name, (VOID *) dpump) != UX_S… in _ux_host_class_dpump_read()
106 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, dpump, 0, 0, UX_TRACE_ERRO… in _ux_host_class_dpump_read()
114 if (dpump -> ux_host_class_dpump_flags & UX_HOST_CLASS_DPUMP_READ_LOCK) in _ux_host_class_dpump_read()
119 dpump -> ux_host_class_dpump_flags |= UX_HOST_CLASS_DPUMP_READ_LOCK; in _ux_host_class_dpump_read()
122 status = _ux_host_semaphore_get(&dpump -> ux_host_class_dpump_semaphore, UX_WAIT_FOREVER); in _ux_host_class_dpump_read()
131 …transfer_request = &dpump -> ux_host_class_dpump_bulk_in_endpoint -> ux_endpoint_transfer_request; in _ux_host_class_dpump_read()
162 dpump -> ux_host_class_dpump_flags &= ~UX_HOST_CLASS_DPUMP_READ_LOCK; in _ux_host_class_dpump_read()
186 _ux_host_semaphore_put(&dpump -> ux_host_class_dpump_semaphore); in _ux_host_class_dpump_read()
[all …]
Dux_host_class_dpump_write.c87 UINT _ux_host_class_dpump_write(UX_HOST_CLASS_DPUMP *dpump, UCHAR * data_pointer, in _ux_host_class_dpump_write() argument
99 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_DPUMP_WRITE, dpump, data_pointer, requested_length, 0,… in _ux_host_class_dpump_write()
102 …ck_class_instance_verify((UCHAR *) _ux_system_host_class_dpump_name, (VOID *) dpump) != UX_SUCCESS) in _ux_host_class_dpump_write()
109 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, dpump, 0, 0, UX_TRACE_ERRO… in _ux_host_class_dpump_write()
117 if (dpump -> ux_host_class_dpump_flags & UX_HOST_CLASS_DPUMP_WRITE_LOCK) in _ux_host_class_dpump_write()
122 dpump -> ux_host_class_dpump_flags |= UX_HOST_CLASS_DPUMP_WRITE_LOCK; in _ux_host_class_dpump_write()
125 status = _ux_host_semaphore_get(&dpump -> ux_host_class_dpump_semaphore, UX_WAIT_FOREVER); in _ux_host_class_dpump_write()
134 …transfer_request = &dpump -> ux_host_class_dpump_bulk_out_endpoint -> ux_endpoint_transfer_reques… in _ux_host_class_dpump_write()
165 dpump -> ux_host_class_dpump_flags &= ~UX_HOST_CLASS_DPUMP_WRITE_LOCK; in _ux_host_class_dpump_write()
188 _ux_host_semaphore_put(&dpump -> ux_host_class_dpump_semaphore); in _ux_host_class_dpump_write()
[all …]
Dux_host_class_dpump_endpoints_get.c76 UINT _ux_host_class_dpump_endpoints_get(UX_HOST_CLASS_DPUMP *dpump) in _ux_host_class_dpump_endpoints_get() argument
85 …for (endpoint_index = 0; endpoint_index < dpump -> ux_host_class_dpump_interface -> ux_interface_d… in _ux_host_class_dpump_endpoints_get()
90 …status = _ux_host_stack_interface_endpoint_get(dpump -> ux_host_class_dpump_interface, endpoint_i… in _ux_host_class_dpump_endpoints_get()
109 dpump -> ux_host_class_dpump_bulk_out_endpoint = endpoint; in _ux_host_class_dpump_endpoints_get()
116 if (dpump -> ux_host_class_dpump_bulk_out_endpoint == UX_NULL) in _ux_host_class_dpump_endpoints_get()
123 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_ENDPOINT_HANDLE_UNKNOWN, dpump, 0, 0, UX_TRACE_ERRORS, … in _ux_host_class_dpump_endpoints_get()
130 …for (endpoint_index = 0; endpoint_index < dpump -> ux_host_class_dpump_interface -> ux_interface_d… in _ux_host_class_dpump_endpoints_get()
135 …status = _ux_host_stack_interface_endpoint_get(dpump -> ux_host_class_dpump_interface, endpoint_i… in _ux_host_class_dpump_endpoints_get()
154 dpump -> ux_host_class_dpump_bulk_in_endpoint = endpoint; in _ux_host_class_dpump_endpoints_get()
161 if (dpump -> ux_host_class_dpump_bulk_in_endpoint == UX_NULL) in _ux_host_class_dpump_endpoints_get()
[all …]
Dux_device_class_dpump_initialize.c78 UX_SLAVE_CLASS_DPUMP *dpump; in _ux_device_class_dpump_initialize() local
86dpump = _ux_utility_memory_allocate(UX_NO_ALIGN, UX_REGULAR_MEMORY, sizeof(UX_SLAVE_CLASS_DPUMP)); in _ux_device_class_dpump_initialize()
89 if (dpump == UX_NULL) in _ux_device_class_dpump_initialize()
93 class_ptr -> ux_slave_class_instance = (VOID *) dpump; in _ux_device_class_dpump_initialize()
99dpump -> ux_slave_class_dpump_parameter.ux_slave_class_dpump_instance_activate = dpump_parameter -… in _ux_device_class_dpump_initialize()
100dpump -> ux_slave_class_dpump_parameter.ux_slave_class_dpump_instance_deactivate = dpump_parameter… in _ux_device_class_dpump_initialize()
Dux_host_class_dpump_ioctl.c80 UINT _ux_host_class_dpump_ioctl(UX_HOST_CLASS_DPUMP *dpump, ULONG ioctl_function, in _ux_host_class_dpump_ioctl() argument
89 if ((dpump -> ux_host_class_dpump_state != UX_HOST_CLASS_INSTANCE_LIVE) && in _ux_host_class_dpump_ioctl()
90 (dpump -> ux_host_class_dpump_state != UX_HOST_CLASS_INSTANCE_MOUNTING)) in _ux_host_class_dpump_ioctl()
97 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, dpump, 0, 0, UX_TRACE_ERRO… in _ux_host_class_dpump_ioctl()
111 interface_ptr = dpump -> ux_host_class_dpump_interface; in _ux_host_class_dpump_ioctl()
Dux_device_class_dpump_thread.c93 UX_SLAVE_CLASS_DPUMP *dpump; in _ux_device_class_dpump_thread() local
109 dpump = (UX_SLAVE_CLASS_DPUMP *) class_ptr -> ux_slave_class_instance; in _ux_device_class_dpump_thread()
115 interface_ptr = dpump -> ux_slave_class_dpump_interface; in _ux_device_class_dpump_thread()
Dux_device_class_dpump_read.c75 UINT _ux_device_class_dpump_read(UX_SLAVE_CLASS_DPUMP *dpump, UCHAR *buffer, in _ux_device_class_dpump_read() argument
86 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_DEVICE_CLASS_DPUMP_READ, dpump, buffer, requested_length, 0, UX_T… in _ux_device_class_dpump_read()
106 endpoint = dpump -> ux_slave_class_dpump_bulkout_endpoint; in _ux_device_class_dpump_read()
Dux_device_class_dpump_write.c75 UINT _ux_device_class_dpump_write(UX_SLAVE_CLASS_DPUMP *dpump, UCHAR *buffer, in _ux_device_class_dpump_write() argument
86 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_DEVICE_CLASS_DPUMP_WRITE, dpump, buffer, requested_length, 0, UX_… in _ux_device_class_dpump_write()
106 endpoint = dpump -> ux_slave_class_dpump_bulkin_endpoint; in _ux_device_class_dpump_write()
/USBX-v6.2.1/common/core/inc/
Dux_host_class_dpump.h95 UINT _ux_host_class_dpump_configure(UX_HOST_CLASS_DPUMP *dpump);
97 UINT _ux_host_class_dpump_endpoints_get(UX_HOST_CLASS_DPUMP *dpump);
99 UINT _ux_host_class_dpump_read (UX_HOST_CLASS_DPUMP *dpump, UCHAR *data_pointer,
101 UINT _ux_host_class_dpump_write(UX_HOST_CLASS_DPUMP *dpump, UCHAR * data_pointer,
103 UINT _ux_host_class_dpump_ioctl(UX_HOST_CLASS_DPUMP *dpump, ULONG ioctl_function,
Dux_device_class_dpump.h120 UINT _ux_device_class_dpump_read(UX_SLAVE_CLASS_DPUMP *dpump, UCHAR *buffer,
122 UINT _ux_device_class_dpump_read_run(UX_SLAVE_CLASS_DPUMP *dpump, UCHAR *buffer,
124 UINT _ux_device_class_dpump_write(UX_SLAVE_CLASS_DPUMP *dpump, UCHAR *buffer,
126 UINT _ux_device_class_dpump_write_run(UX_SLAVE_CLASS_DPUMP *dpump, UCHAR *buffer,
/USBX-v6.2.1/samples/
Ddemo_usbx.c32 UX_HOST_CLASS_DPUMP *dpump; variable
131 UINT _ux_host_class_dpump_write(UX_HOST_CLASS_DPUMP *dpump, UCHAR * data_pointer,
133 UINT _ux_host_class_dpump_read (UX_HOST_CLASS_DPUMP *dpump, UCHAR *data_pointer,
271 status = ux_host_stack_class_instance_get(class, 0, (VOID **) &dpump); in tx_demo_thread_host_simulation_entry()
276 while (dpump -> ux_host_class_dpump_state != UX_HOST_CLASS_INSTANCE_LIVE) in tx_demo_thread_host_simulation_entry()
305 …status = _ux_host_class_dpump_write (dpump, host_out_buffer, UX_HOST_CLASS_DPUMP_PACKET_SIZE, &ac… in tx_demo_thread_host_simulation_entry()
316 …status = _ux_host_class_dpump_read (dpump, host_in_buffer, UX_HOST_CLASS_DPUMP_PACKET_SIZE, &actu… in tx_demo_thread_host_simulation_entry()