Home
last modified time | relevance | path

Searched refs:cdc_acm (Results 1 – 25 of 33) sorted by relevance

12

/USBX-v6.2.1/common/usbx_device_classes/src/
Dux_device_class_cdc_acm_tasks_run.c36 static inline VOID _ux_device_class_cdc_acm_transmission_read_run(UX_SLAVE_CLASS_CDC_ACM *cdc_acm);
37 static inline VOID _ux_device_class_cdc_acm_transmission_write_run(UX_SLAVE_CLASS_CDC_ACM *cdc_acm);
98 UX_SLAVE_CLASS_CDC_ACM *cdc_acm; in _ux_device_class_cdc_acm_tasks_run() local
101 cdc_acm = (UX_SLAVE_CLASS_CDC_ACM*) instance; in _ux_device_class_cdc_acm_tasks_run()
104 if (!cdc_acm -> ux_slave_class_cdc_acm_transmission_status) in _ux_device_class_cdc_acm_tasks_run()
111 cdc_acm -> ux_slave_class_cdc_acm_transmission_status = UX_FALSE; in _ux_device_class_cdc_acm_tasks_run()
112 cdc_acm -> ux_device_class_cdc_acm_read_state = UX_STATE_RESET; in _ux_device_class_cdc_acm_tasks_run()
113 cdc_acm -> ux_device_class_cdc_acm_read_status = UX_CONFIGURATION_HANDLE_UNKNOWN; in _ux_device_class_cdc_acm_tasks_run()
114 cdc_acm -> ux_device_class_cdc_acm_write_state = UX_STATE_RESET; in _ux_device_class_cdc_acm_tasks_run()
115 cdc_acm -> ux_device_class_cdc_acm_write_status = UX_CONFIGURATION_HANDLE_UNKNOWN; in _ux_device_class_cdc_acm_tasks_run()
[all …]
Dux_device_class_cdc_acm_initialize.c95 UX_SLAVE_CLASS_CDC_ACM *cdc_acm; in _ux_device_class_cdc_acm_initialize() local
106cdc_acm = _ux_utility_memory_allocate(UX_NO_ALIGN, UX_REGULAR_MEMORY, sizeof(UX_SLAVE_CLASS_CDC_A… in _ux_device_class_cdc_acm_initialize()
109 if (cdc_acm == UX_NULL) in _ux_device_class_cdc_acm_initialize()
113 class_ptr -> ux_slave_class_instance = (VOID *) cdc_acm; in _ux_device_class_cdc_acm_initialize()
119cdc_acm -> ux_slave_class_cdc_acm_parameter.ux_slave_class_cdc_acm_instance_activate = cdc_acm_par… in _ux_device_class_cdc_acm_initialize()
120cdc_acm -> ux_slave_class_cdc_acm_parameter.ux_slave_class_cdc_acm_instance_deactivate = cdc_acm_p… in _ux_device_class_cdc_acm_initialize()
121cdc_acm -> ux_slave_class_cdc_acm_parameter.ux_slave_class_cdc_acm_parameter_change = cdc_acm_para… in _ux_device_class_cdc_acm_initialize()
126 …status = _ux_utility_mutex_create(&cdc_acm -> ux_slave_class_cdc_acm_endpoint_in_mutex, "ux_slave… in _ux_device_class_cdc_acm_initialize()
133 _ux_utility_memory_free(cdc_acm); in _ux_device_class_cdc_acm_initialize()
140 …status = _ux_utility_mutex_create(&cdc_acm -> ux_slave_class_cdc_acm_endpoint_out_mutex, "ux_slav… in _ux_device_class_cdc_acm_initialize()
[all …]
Dux_device_class_cdc_acm_write_run.c91 UINT _ux_device_class_cdc_acm_write_run(UX_SLAVE_CLASS_CDC_ACM *cdc_acm, in _ux_device_class_cdc_acm_write_run() argument
103 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_DEVICE_CLASS_CDC_ACM_WRITE, cdc_acm, buffer, requested_length, 0,… in _ux_device_class_cdc_acm_write_run()
108 if (cdc_acm -> ux_slave_class_cdc_acm_transmission_status == UX_TRUE) in _ux_device_class_cdc_acm_write_run()
128 cdc_acm -> ux_device_class_cdc_acm_write_state = UX_STATE_RESET; in _ux_device_class_cdc_acm_write_run()
129 cdc_acm -> ux_device_class_cdc_acm_write_status = UX_CONFIGURATION_HANDLE_UNKNOWN; in _ux_device_class_cdc_acm_write_run()
135 interface_ptr = cdc_acm -> ux_slave_class_cdc_acm_interface; in _ux_device_class_cdc_acm_write_run()
152 switch(cdc_acm -> ux_device_class_cdc_acm_write_state) in _ux_device_class_cdc_acm_write_run()
155 cdc_acm -> ux_device_class_cdc_acm_write_state = UX_DEVICE_CLASS_CDC_ACM_WRITE_START; in _ux_device_class_cdc_acm_write_run()
156 cdc_acm -> ux_device_class_cdc_acm_write_status = UX_TRANSFER_NO_ANSWER; in _ux_device_class_cdc_acm_write_run()
157 cdc_acm -> ux_device_class_cdc_acm_write_buffer = buffer; in _ux_device_class_cdc_acm_write_run()
[all …]
Dux_device_class_cdc_acm_read_run.c87 UINT _ux_device_class_cdc_acm_read_run(UX_SLAVE_CLASS_CDC_ACM *cdc_acm, in _ux_device_class_cdc_acm_read_run() argument
102 if (cdc_acm -> ux_slave_class_cdc_acm_transmission_status == UX_TRUE) in _ux_device_class_cdc_acm_read_run()
123 cdc_acm -> ux_device_class_cdc_acm_read_state = UX_STATE_RESET; in _ux_device_class_cdc_acm_read_run()
124 cdc_acm -> ux_device_class_cdc_acm_read_status = UX_CONFIGURATION_HANDLE_UNKNOWN; in _ux_device_class_cdc_acm_read_run()
130 class_interface = cdc_acm -> ux_slave_class_cdc_acm_interface; in _ux_device_class_cdc_acm_read_run()
147 switch(cdc_acm -> ux_device_class_cdc_acm_read_state) in _ux_device_class_cdc_acm_read_run()
152 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_DEVICE_CLASS_CDC_ACM_READ, cdc_acm, buffer, requested_length, 0, … in _ux_device_class_cdc_acm_read_run()
154 cdc_acm -> ux_device_class_cdc_acm_read_state = UX_DEVICE_CLASS_CDC_ACM_READ_START; in _ux_device_class_cdc_acm_read_run()
155 cdc_acm -> ux_device_class_cdc_acm_read_status = UX_TRANSFER_NO_ANSWER; in _ux_device_class_cdc_acm_read_run()
156 cdc_acm -> ux_device_class_cdc_acm_read_buffer = buffer; in _ux_device_class_cdc_acm_read_run()
[all …]
Dux_device_class_cdc_acm_unitialize.c90 UX_SLAVE_CLASS_CDC_ACM *cdc_acm; in _ux_device_class_cdc_acm_uninitialize() local
97 cdc_acm = (UX_SLAVE_CLASS_CDC_ACM *) class_ptr -> ux_slave_class_instance; in _ux_device_class_cdc_acm_uninitialize()
100 if (cdc_acm != UX_NULL) in _ux_device_class_cdc_acm_uninitialize()
106 _ux_device_mutex_delete(&cdc_acm -> ux_slave_class_cdc_acm_endpoint_in_mutex); in _ux_device_class_cdc_acm_uninitialize()
109 _ux_device_mutex_delete(&cdc_acm -> ux_slave_class_cdc_acm_endpoint_out_mutex); in _ux_device_class_cdc_acm_uninitialize()
114 _ux_utility_thread_delete(&cdc_acm -> ux_slave_class_cdc_acm_bulkin_thread); in _ux_device_class_cdc_acm_uninitialize()
115 _ux_utility_thread_delete(&cdc_acm -> ux_slave_class_cdc_acm_bulkout_thread); in _ux_device_class_cdc_acm_uninitialize()
116 _ux_utility_event_flags_delete(&cdc_acm -> ux_slave_class_cdc_acm_event_flags_group); in _ux_device_class_cdc_acm_uninitialize()
117 _ux_utility_memory_free(cdc_acm -> ux_slave_class_cdc_acm_bulkout_thread_stack); in _ux_device_class_cdc_acm_uninitialize()
122 _ux_utility_memory_free(cdc_acm); in _ux_device_class_cdc_acm_uninitialize()
Dux_device_class_cdc_acm_control_request.c78 UX_SLAVE_CLASS_CDC_ACM *cdc_acm; in _ux_device_class_cdc_acm_control_request() local
91 cdc_acm = (UX_SLAVE_CLASS_CDC_ACM *) class_ptr -> ux_slave_class_instance; in _ux_device_class_cdc_acm_control_request()
117 cdc_acm -> ux_slave_class_cdc_acm_data_dtr_state = 0; in _ux_device_class_cdc_acm_control_request()
118 cdc_acm -> ux_slave_class_cdc_acm_data_rts_state = 0; in _ux_device_class_cdc_acm_control_request()
122 cdc_acm -> ux_slave_class_cdc_acm_data_dtr_state = UX_TRUE; in _ux_device_class_cdc_acm_control_request()
126 cdc_acm -> ux_slave_class_cdc_acm_data_rts_state = UX_TRUE; in _ux_device_class_cdc_acm_control_request()
129 …if (cdc_acm -> ux_slave_class_cdc_acm_parameter.ux_slave_class_cdc_acm_parameter_change != UX_NULL) in _ux_device_class_cdc_acm_control_request()
133cdc_acm -> ux_slave_class_cdc_acm_parameter.ux_slave_class_cdc_acm_parameter_change(cdc_acm); in _ux_device_class_cdc_acm_control_request()
146 cdc_acm -> ux_slave_class_cdc_acm_baudrate); in _ux_device_class_cdc_acm_control_request()
147 …est_data_pointer + UX_SLAVE_CLASS_CDC_ACM_LINE_CODING_STOP_BIT_STRUCT) = cdc_acm -> ux_slave_class… in _ux_device_class_cdc_acm_control_request()
[all …]
Dux_device_class_cdc_acm_activate.c79 UX_SLAVE_CLASS_CDC_ACM *cdc_acm; in _ux_device_class_cdc_acm_activate() local
85 cdc_acm = (UX_SLAVE_CLASS_CDC_ACM *) class_ptr -> ux_slave_class_instance; in _ux_device_class_cdc_acm_activate()
91 interface_ptr -> ux_slave_interface_class_instance = (VOID *)cdc_acm; in _ux_device_class_cdc_acm_activate()
94 cdc_acm -> ux_slave_class_cdc_acm_interface = interface_ptr; in _ux_device_class_cdc_acm_activate()
97 …if (cdc_acm -> ux_slave_class_cdc_acm_parameter.ux_slave_class_cdc_acm_instance_activate != UX_NUL… in _ux_device_class_cdc_acm_activate()
100cdc_acm -> ux_slave_class_cdc_acm_parameter.ux_slave_class_cdc_acm_instance_activate(cdc_acm); in _ux_device_class_cdc_acm_activate()
104 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_DEVICE_CLASS_CDC_ACM_ACTIVATE, cdc_acm, 0, 0, 0, UX_TRACE_DEVICE_… in _ux_device_class_cdc_acm_activate()
107 UX_TRACE_OBJECT_REGISTER(UX_TRACE_DEVICE_OBJECT_TYPE_INTERFACE, cdc_acm, 0, 0, 0) in _ux_device_class_cdc_acm_activate()
Dux_device_class_cdc_acm_ioctl.c101 UINT _ux_device_class_cdc_acm_ioctl(UX_SLAVE_CLASS_CDC_ACM *cdc_acm, ULONG ioctl_function, in _ux_device_class_cdc_acm_ioctl() argument
128cdc_acm -> ux_slave_class_cdc_acm_baudrate = line_coding -> ux_slave_class_cdc_acm_parameter_bau… in _ux_device_class_cdc_acm_ioctl()
129cdc_acm -> ux_slave_class_cdc_acm_stop_bit = line_coding -> ux_slave_class_cdc_acm_parameter_sto… in _ux_device_class_cdc_acm_ioctl()
130cdc_acm -> ux_slave_class_cdc_acm_parity = line_coding -> ux_slave_class_cdc_acm_parameter_par… in _ux_device_class_cdc_acm_ioctl()
131cdc_acm -> ux_slave_class_cdc_acm_data_bit = line_coding -> ux_slave_class_cdc_acm_parameter_dat… in _ux_device_class_cdc_acm_ioctl()
141 …line_coding -> ux_slave_class_cdc_acm_parameter_baudrate = cdc_acm -> ux_slave_class_cdc_acm_baudr… in _ux_device_class_cdc_acm_ioctl()
142 …line_coding -> ux_slave_class_cdc_acm_parameter_stop_bit = cdc_acm -> ux_slave_class_cdc_acm_stop_… in _ux_device_class_cdc_acm_ioctl()
143 …line_coding -> ux_slave_class_cdc_acm_parameter_parity = cdc_acm -> ux_slave_class_cdc_acm_parit… in _ux_device_class_cdc_acm_ioctl()
144 …line_coding -> ux_slave_class_cdc_acm_parameter_data_bit = cdc_acm -> ux_slave_class_cdc_acm_data_… in _ux_device_class_cdc_acm_ioctl()
155 …line_state -> ux_slave_class_cdc_acm_parameter_rts = cdc_acm -> ux_slave_class_cdc_acm_data_rts_st… in _ux_device_class_cdc_acm_ioctl()
[all …]
Dux_device_class_cdc_acm_write_with_callback.c86 UINT _ux_device_class_cdc_acm_write_with_callback(UX_SLAVE_CLASS_CDC_ACM *cdc_acm, UCHAR *buffer, in _ux_device_class_cdc_acm_write_with_callback() argument
90 UX_PARAMETER_NOT_USED(cdc_acm); in _ux_device_class_cdc_acm_write_with_callback()
99 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_DEVICE_CLASS_CDC_ACM_WRITE, cdc_acm, buffer, requested_length, 0,… in _ux_device_class_cdc_acm_write_with_callback()
119 if (cdc_acm -> ux_slave_class_cdc_acm_transmission_status != UX_TRUE) in _ux_device_class_cdc_acm_write_with_callback()
128 if (cdc_acm -> ux_slave_class_cdc_acm_scheduled_write == UX_TRUE) in _ux_device_class_cdc_acm_write_with_callback()
138 cdc_acm -> ux_device_class_cdc_acm_write_requested_length = requested_length; in _ux_device_class_cdc_acm_write_with_callback()
141 cdc_acm -> ux_device_class_cdc_acm_write_buffer = buffer; in _ux_device_class_cdc_acm_write_with_callback()
144 cdc_acm -> ux_slave_class_cdc_acm_scheduled_write = UX_TRUE; in _ux_device_class_cdc_acm_write_with_callback()
151 cdc_acm -> ux_slave_class_cdc_acm_callback_total_length = requested_length; in _ux_device_class_cdc_acm_write_with_callback()
154 cdc_acm -> ux_slave_class_cdc_acm_callback_data_pointer = buffer; in _ux_device_class_cdc_acm_write_with_callback()
[all …]
Dux_device_class_cdc_acm_deactivate.c81 UX_SLAVE_CLASS_CDC_ACM *cdc_acm; in _ux_device_class_cdc_acm_deactivate() local
89 cdc_acm = (UX_SLAVE_CLASS_CDC_ACM *) class_ptr -> ux_slave_class_instance; in _ux_device_class_cdc_acm_deactivate()
92 interface_ptr = cdc_acm -> ux_slave_class_cdc_acm_interface; in _ux_device_class_cdc_acm_deactivate()
119 … _ux_device_class_cdc_acm_ioctl(cdc_acm, UX_SLAVE_CLASS_CDC_ACM_IOCTL_TRANSMISSION_STOP, UX_NULL); in _ux_device_class_cdc_acm_deactivate()
122 …if (cdc_acm -> ux_slave_class_cdc_acm_parameter.ux_slave_class_cdc_acm_instance_deactivate != UX_N… in _ux_device_class_cdc_acm_deactivate()
126cdc_acm -> ux_slave_class_cdc_acm_parameter.ux_slave_class_cdc_acm_instance_deactivate(cdc_acm); in _ux_device_class_cdc_acm_deactivate()
131 cdc_acm -> ux_slave_class_cdc_acm_data_dtr_state = 0; in _ux_device_class_cdc_acm_deactivate()
132 cdc_acm -> ux_slave_class_cdc_acm_data_rts_state = 0; in _ux_device_class_cdc_acm_deactivate()
135 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_DEVICE_CLASS_CDC_ACM_DEACTIVATE, cdc_acm, 0, 0, 0, UX_TRACE_DEVIC… in _ux_device_class_cdc_acm_deactivate()
138 UX_TRACE_OBJECT_UNREGISTER(cdc_acm); in _ux_device_class_cdc_acm_deactivate()
Dux_device_class_cdc_acm_bulkin_thread.c100 UX_SLAVE_CLASS_CDC_ACM *cdc_acm; in _ux_device_class_cdc_acm_bulkin_thread() local
114 UX_THREAD_EXTENSION_PTR_GET(cdc_acm, UX_SLAVE_CLASS_CDC_ACM, cdc_acm_class) in _ux_device_class_cdc_acm_bulkin_thread()
120 interface_ptr = cdc_acm -> ux_slave_class_cdc_acm_interface; in _ux_device_class_cdc_acm_bulkin_thread()
145 …status = _ux_utility_event_flags_get(&cdc_acm -> ux_slave_class_cdc_acm_event_flags_group, UX_DEV… in _ux_device_class_cdc_acm_bulkin_thread()
153 total_length = cdc_acm -> ux_slave_class_cdc_acm_callback_total_length; in _ux_device_class_cdc_acm_bulkin_thread()
156cdc_acm -> ux_slave_class_cdc_acm_callback_current_data_pointer = cdc_acm -> ux_slave_class_cdc_ac… in _ux_device_class_cdc_acm_bulkin_thread()
200cdc_acm -> ux_slave_class_cdc_acm_callback_current_data_pointer, in _ux_device_class_cdc_acm_bulkin_thread()
223cdc_acm -> ux_slave_class_cdc_acm_callback_current_data_pointer += transfer_length; in _ux_device_class_cdc_acm_bulkin_thread()
229 cdc_acm -> ux_slave_class_cdc_acm_scheduled_write = UX_FALSE; in _ux_device_class_cdc_acm_bulkin_thread()
233 if (cdc_acm -> ux_device_class_cdc_acm_write_callback != UX_NULL) in _ux_device_class_cdc_acm_bulkin_thread()
[all …]
Dux_device_class_cdc_acm_bulkout_thread.c91 UX_SLAVE_CLASS_CDC_ACM *cdc_acm; in _ux_device_class_cdc_acm_bulkout_thread() local
99 UX_THREAD_EXTENSION_PTR_GET(cdc_acm, UX_SLAVE_CLASS_CDC_ACM, cdc_acm_class) in _ux_device_class_cdc_acm_bulkout_thread()
105 interface_ptr = cdc_acm -> ux_slave_class_cdc_acm_interface; in _ux_device_class_cdc_acm_bulkout_thread()
142 if (cdc_acm -> ux_device_class_cdc_acm_read_callback != UX_NULL) in _ux_device_class_cdc_acm_bulkout_thread()
145cdc_acm -> ux_device_class_cdc_acm_read_callback(cdc_acm, UX_SUCCESS, transfer_request -> ux_slave… in _ux_device_class_cdc_acm_bulkout_thread()
153 if (cdc_acm -> ux_device_class_cdc_acm_read_callback != UX_NULL) in _ux_device_class_cdc_acm_bulkout_thread()
156cdc_acm -> ux_device_class_cdc_acm_read_callback(cdc_acm, status, UX_NULL, 0); in _ux_device_class_cdc_acm_bulkout_thread()
163 _ux_device_thread_suspend(&cdc_acm -> ux_slave_class_cdc_acm_bulkout_thread); in _ux_device_class_cdc_acm_bulkout_thread()
Dux_device_class_cdc_acm_read.c95 UINT _ux_device_class_cdc_acm_read(UX_SLAVE_CLASS_CDC_ACM *cdc_acm, UCHAR *buffer, in _ux_device_class_cdc_acm_read() argument
107 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_DEVICE_CLASS_CDC_ACM_READ, cdc_acm, buffer, requested_length, 0, … in _ux_device_class_cdc_acm_read()
112 if (cdc_acm -> ux_slave_class_cdc_acm_transmission_status == UX_TRUE) in _ux_device_class_cdc_acm_read()
137 interface_ptr = cdc_acm -> ux_slave_class_cdc_acm_interface; in _ux_device_class_cdc_acm_read()
151 _ux_device_mutex_on(&cdc_acm -> ux_slave_class_cdc_acm_endpoint_out_mutex); in _ux_device_class_cdc_acm_read()
201 _ux_device_mutex_off(&cdc_acm -> ux_slave_class_cdc_acm_endpoint_out_mutex); in _ux_device_class_cdc_acm_read()
212 _ux_device_mutex_off(&cdc_acm -> ux_slave_class_cdc_acm_endpoint_out_mutex); in _ux_device_class_cdc_acm_read()
221 _ux_device_mutex_off(&cdc_acm -> ux_slave_class_cdc_acm_endpoint_out_mutex); in _ux_device_class_cdc_acm_read()
/USBX-v6.2.1/common/usbx_host_classes/src/
Dux_host_class_cdc_acm_deactivate.c86 UX_HOST_CLASS_CDC_ACM *cdc_acm; in _ux_host_class_cdc_acm_deactivate() local
93 cdc_acm = (UX_HOST_CLASS_CDC_ACM *) command -> ux_host_class_command_instance; in _ux_host_class_cdc_acm_deactivate()
96 cdc_acm -> ux_host_class_cdc_acm_state = UX_HOST_CLASS_INSTANCE_SHUTDOWN; in _ux_host_class_cdc_acm_deactivate()
101 status = _ux_host_semaphore_get(&cdc_acm -> ux_host_class_cdc_acm_semaphore, UX_WAIT_FOREVER); in _ux_host_class_cdc_acm_deactivate()
109 …if (cdc_acm -> ux_host_class_cdc_acm_interface -> ux_interface_descriptor.bInterfaceClass == UX_HO… in _ux_host_class_cdc_acm_deactivate()
113 if (cdc_acm -> ux_host_class_cdc_acm_interrupt_endpoint != UX_NULL) in _ux_host_class_cdc_acm_deactivate()
115 …transfer_request = &cdc_acm -> ux_host_class_cdc_acm_interrupt_endpoint -> ux_endpoint_transfer_r… in _ux_host_class_cdc_acm_deactivate()
118 … _ux_host_stack_endpoint_transfer_abort(cdc_acm -> ux_host_class_cdc_acm_interrupt_endpoint); in _ux_host_class_cdc_acm_deactivate()
134 …transfer_request = &cdc_acm -> ux_host_class_cdc_acm_bulk_in_endpoint -> ux_endpoint_transfer_req… in _ux_host_class_cdc_acm_deactivate()
138 … _ux_host_stack_endpoint_transfer_abort(cdc_acm -> ux_host_class_cdc_acm_bulk_in_endpoint); in _ux_host_class_cdc_acm_deactivate()
[all …]
Dux_host_class_cdc_acm_activate.c96 UX_HOST_CLASS_CDC_ACM *cdc_acm; in _ux_host_class_cdc_acm_activate() local
114cdc_acm = _ux_utility_memory_allocate(UX_NO_ALIGN, UX_CACHE_SAFE_MEMORY, sizeof(UX_HOST_CLASS_CDC… in _ux_host_class_cdc_acm_activate()
117 if (cdc_acm == UX_NULL) in _ux_host_class_cdc_acm_activate()
125 …status = _ux_host_semaphore_create(&cdc_acm -> ux_host_class_cdc_acm_semaphore, "ux_host_class_cd… in _ux_host_class_cdc_acm_activate()
130 _ux_utility_memory_free(cdc_acm); in _ux_host_class_cdc_acm_activate()
138 cdc_acm -> ux_host_class_cdc_acm_class = command -> ux_host_class_command_class_ptr; in _ux_host_class_cdc_acm_activate()
141 cdc_acm -> ux_host_class_cdc_acm_interface = interface_ptr; in _ux_host_class_cdc_acm_activate()
144cdc_acm -> ux_host_class_cdc_acm_device = interface_ptr -> ux_interface_configuration -> ux_confi… in _ux_host_class_cdc_acm_activate()
147 interface_ptr -> ux_interface_class_instance = (VOID *) cdc_acm; in _ux_host_class_cdc_acm_activate()
150 _ux_host_stack_class_instance_create(cdc_acm -> ux_host_class_cdc_acm_class, (VOID *) cdc_acm); in _ux_host_class_cdc_acm_activate()
[all …]
Dux_host_class_cdc_acm_entry.c186 static inline VOID _ux_host_class_cdc_acm_descriptors_parse(UX_HOST_CLASS_CDC_ACM *cdc_acm) in _ux_host_class_cdc_acm_descriptors_parse() argument
202 control_endpoint = &cdc_acm -> ux_host_class_cdc_acm_device -> ux_device_control_endpoint; in _ux_host_class_cdc_acm_descriptors_parse()
210 cdc_acm -> ux_host_class_cdc_acm_status = UX_DESCRIPTOR_CORRUPTED; in _ux_host_class_cdc_acm_descriptors_parse()
211 cdc_acm -> ux_host_class_cdc_acm_cmd_state = UX_HOST_CLASS_CDC_ACM_INIT_ERROR; in _ux_host_class_cdc_acm_descriptors_parse()
216 interface_ptr = cdc_acm -> ux_host_class_cdc_acm_interface; in _ux_host_class_cdc_acm_descriptors_parse()
220 descriptor = (UCHAR *)cdc_acm -> ux_host_class_cdc_acm_allocated; in _ux_host_class_cdc_acm_descriptors_parse()
275 cdc_acm -> ux_host_class_cdc_acm_capabilities = in _ux_host_class_cdc_acm_descriptors_parse()
288 cdc_acm -> ux_host_class_cdc_acm_interfaces_bitmap |= in _ux_host_class_cdc_acm_descriptors_parse()
309 _ux_utility_memory_free(cdc_acm -> ux_host_class_cdc_acm_allocated); in _ux_host_class_cdc_acm_descriptors_parse()
310 cdc_acm -> ux_host_class_cdc_acm_allocated = UX_NULL; in _ux_host_class_cdc_acm_descriptors_parse()
[all …]
Dux_host_class_cdc_acm_transmission_callback.c78 UX_HOST_CLASS_CDC_ACM *cdc_acm; in _ux_host_class_cdc_acm_transmission_callback() local
83 cdc_acm = (UX_HOST_CLASS_CDC_ACM *) transfer_request -> ux_transfer_request_class_instance; in _ux_host_class_cdc_acm_transmission_callback()
90 cdc_acm -> ux_host_class_cdc_acm_write_count += in _ux_host_class_cdc_acm_transmission_callback()
94 request_length = cdc_acm -> ux_host_class_cdc_acm_write_length - in _ux_host_class_cdc_acm_transmission_callback()
95 cdc_acm -> ux_host_class_cdc_acm_write_count; in _ux_host_class_cdc_acm_transmission_callback()
118 cdc_acm -> ux_host_class_cdc_acm_write_state = UX_STATE_RESET; in _ux_host_class_cdc_acm_transmission_callback()
121 write_callback = cdc_acm -> ux_host_class_cdc_acm_write_callback; in _ux_host_class_cdc_acm_transmission_callback()
122 cdc_acm -> ux_host_class_cdc_acm_write_callback = UX_NULL; in _ux_host_class_cdc_acm_transmission_callback()
127 write_callback(cdc_acm, in _ux_host_class_cdc_acm_transmission_callback()
129 cdc_acm -> ux_host_class_cdc_acm_write_count); in _ux_host_class_cdc_acm_transmission_callback()
Dux_host_class_cdc_acm_ioctl.c84 UINT _ux_host_class_cdc_acm_ioctl(UX_HOST_CLASS_CDC_ACM *cdc_acm, ULONG ioctl_function, in _ux_host_class_cdc_acm_ioctl() argument
100 if ((cdc_acm -> ux_host_class_cdc_acm_state != UX_HOST_CLASS_INSTANCE_LIVE) && in _ux_host_class_cdc_acm_ioctl()
101 (cdc_acm -> ux_host_class_cdc_acm_state != UX_HOST_CLASS_INSTANCE_MOUNTING)) in _ux_host_class_cdc_acm_ioctl()
105 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, cdc_acm, 0, 0, UX_TRACE_ER… in _ux_host_class_cdc_acm_ioctl()
117 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_CDC_ACM_IOCTL_SET_LINE_CODING, cdc_acm, parameter, 0, … in _ux_host_class_cdc_acm_ioctl()
150 … status = _ux_host_class_cdc_acm_command(cdc_acm, UX_HOST_CLASS_CDC_ACM_REQ_SET_LINE_CODING, in _ux_host_class_cdc_acm_ioctl()
161 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_CDC_ACM_IOCTL_GET_LINE_CODING, cdc_acm, parameter, 0, … in _ux_host_class_cdc_acm_ioctl()
175 … status = _ux_host_class_cdc_acm_command(cdc_acm, UX_HOST_CLASS_CDC_ACM_REQ_GET_LINE_CODING, in _ux_host_class_cdc_acm_ioctl()
209 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_CDC_ACM_IOCTL_SET_LINE_STATE, cdc_acm, parameter, 0, 0… in _ux_host_class_cdc_acm_ioctl()
219 status = _ux_host_class_cdc_acm_command(cdc_acm, UX_HOST_CLASS_CDC_ACM_REQ_SET_LINE_STATE, in _ux_host_class_cdc_acm_ioctl()
[all …]
Dux_host_class_cdc_acm_write_with_callback.c88 UINT _ux_host_class_cdc_acm_write_with_callback(UX_HOST_CLASS_CDC_ACM *cdc_acm, in _ux_host_class_cdc_acm_write_with_callback() argument
98 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_CDC_ACM_WRITE, cdc_acm, 0, 0, 0, UX_TRACE_HOST_CLASS_E… in _ux_host_class_cdc_acm_write_with_callback()
101 if (cdc_acm -> ux_host_class_cdc_acm_state != UX_HOST_CLASS_INSTANCE_LIVE) in _ux_host_class_cdc_acm_write_with_callback()
108 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, cdc_acm, 0, 0, UX_TRACE_ER… in _ux_host_class_cdc_acm_write_with_callback()
115 …if (cdc_acm -> ux_host_class_cdc_acm_interface -> ux_interface_descriptor.bInterfaceClass != UX_HO… in _ux_host_class_cdc_acm_write_with_callback()
122 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, cdc_acm, 0, 0, UX_TRACE_ER… in _ux_host_class_cdc_acm_write_with_callback()
128 if (cdc_acm -> ux_host_class_cdc_acm_write_state != UX_STATE_RESET) in _ux_host_class_cdc_acm_write_with_callback()
132 cdc_acm -> ux_host_class_cdc_acm_write_state = UX_STATE_WAIT; in _ux_host_class_cdc_acm_write_with_callback()
135 cdc_acm -> ux_host_class_cdc_acm_write_length = requested_length; in _ux_host_class_cdc_acm_write_with_callback()
136 cdc_acm -> ux_host_class_cdc_acm_write_count = 0; in _ux_host_class_cdc_acm_write_with_callback()
[all …]
Dux_host_class_cdc_acm_configure.c79 UINT _ux_host_class_cdc_acm_configure(UX_HOST_CLASS_CDC_ACM *cdc_acm) in _ux_host_class_cdc_acm_configure() argument
91 if (cdc_acm -> ux_host_class_cdc_acm_device -> ux_device_state == UX_DEVICE_CONFIGURED) in _ux_host_class_cdc_acm_configure()
96 …status = _ux_host_stack_device_configuration_get(cdc_acm -> ux_host_class_cdc_acm_device, 0, &con… in _ux_host_class_cdc_acm_configure()
104 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_CONFIGURATION_HANDLE_UNKNOWN, cdc_acm -> ux_host_class_… in _ux_host_class_cdc_acm_configure()
112 if (cdc_acm -> ux_host_class_cdc_acm_device -> ux_device_power_source == UX_DEVICE_BUS_POWERED) in _ux_host_class_cdc_acm_configure()
116 parent_device = cdc_acm -> ux_host_class_cdc_acm_device -> ux_device_parent; in _ux_host_class_cdc_acm_configure()
127 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_CONNECTION_INCOMPATIBLE, cdc_acm, 0, 0, UX_TRACE_ERRORS… in _ux_host_class_cdc_acm_configure()
142 …status = _ux_host_stack_configuration_interface_get(configuration, 0, 0, &cdc_acm -> ux_host_clas… in _ux_host_class_cdc_acm_configure()
148cdc_acm -> ux_host_class_cdc_acm_interface -> ux_interface_class_instance = (VOID *) cdc_acm; in _ux_host_class_cdc_acm_configure()
Dux_host_class_cdc_acm_endpoints_get.c84 UINT _ux_host_class_cdc_acm_endpoints_get(UX_HOST_CLASS_CDC_ACM *cdc_acm) in _ux_host_class_cdc_acm_endpoints_get() argument
94 …if (cdc_acm -> ux_host_class_cdc_acm_interface -> ux_interface_descriptor.bInterfaceClass == UX_HO… in _ux_host_class_cdc_acm_endpoints_get()
98 …for (endpoint_index = 0; endpoint_index < cdc_acm -> ux_host_class_cdc_acm_interface -> ux_interfa… in _ux_host_class_cdc_acm_endpoints_get()
103 …_ux_host_stack_interface_endpoint_get(cdc_acm -> ux_host_class_cdc_acm_interface, endpoint_index, … in _ux_host_class_cdc_acm_endpoints_get()
117 cdc_acm -> ux_host_class_cdc_acm_bulk_out_endpoint = endpoint; in _ux_host_class_cdc_acm_endpoints_get()
120 if (cdc_acm -> ux_host_class_cdc_acm_bulk_in_endpoint) in _ux_host_class_cdc_acm_endpoints_get()
136 cdc_acm -> ux_host_class_cdc_acm_bulk_in_endpoint = endpoint; in _ux_host_class_cdc_acm_endpoints_get()
139 if (cdc_acm -> ux_host_class_cdc_acm_bulk_out_endpoint) in _ux_host_class_cdc_acm_endpoints_get()
145 if (cdc_acm -> ux_host_class_cdc_acm_bulk_out_endpoint == UX_NULL || in _ux_host_class_cdc_acm_endpoints_get()
146 cdc_acm -> ux_host_class_cdc_acm_bulk_in_endpoint == UX_NULL) in _ux_host_class_cdc_acm_endpoints_get()
[all …]
Dux_host_class_cdc_acm_reception_stop.c79 UINT _ux_host_class_cdc_acm_reception_stop(UX_HOST_CLASS_CDC_ACM *cdc_acm, in _ux_host_class_cdc_acm_reception_stop() argument
86 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_CDC_ACM_RECEPTION_STOP, cdc_acm, 0, 0, 0, UX_TRACE_HOS… in _ux_host_class_cdc_acm_reception_stop()
89 if (cdc_acm -> ux_host_class_cdc_acm_state != UX_HOST_CLASS_INSTANCE_LIVE) in _ux_host_class_cdc_acm_reception_stop()
96 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, cdc_acm, 0, 0, UX_TRACE_ER… in _ux_host_class_cdc_acm_reception_stop()
103 …if (cdc_acm -> ux_host_class_cdc_acm_interface -> ux_interface_descriptor.bInterfaceClass != UX_HO… in _ux_host_class_cdc_acm_reception_stop()
110 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, cdc_acm, 0, 0, UX_TRACE_ER… in _ux_host_class_cdc_acm_reception_stop()
120 _ux_host_stack_endpoint_transfer_abort(cdc_acm -> ux_host_class_cdc_acm_bulk_in_endpoint); in _ux_host_class_cdc_acm_reception_stop()
126 …transfer_request = &cdc_acm -> ux_host_class_cdc_acm_bulk_in_endpoint -> ux_endpoint_transfer_requ… in _ux_host_class_cdc_acm_reception_stop()
Dux_host_class_cdc_acm_transfer_request_completed.c78 UX_HOST_CLASS_CDC_ACM *cdc_acm; in _ux_host_class_cdc_acm_transfer_request_completed() local
84 cdc_acm = (UX_HOST_CLASS_CDC_ACM *) transfer_request -> ux_transfer_request_class_instance; in _ux_host_class_cdc_acm_transfer_request_completed()
93 cdc_acm -> ux_host_class_cdc_acm_notification_count++; in _ux_host_class_cdc_acm_transfer_request_completed()
102 if (cdc_acm -> ux_host_class_cdc_acm_device_status_change_callback != UX_NULL) in _ux_host_class_cdc_acm_transfer_request_completed()
105cdc_acm -> ux_host_class_cdc_acm_device_status_change_callback(cdc_acm, notification_type, notific… in _ux_host_class_cdc_acm_transfer_request_completed()
Dux_host_class_cdc_acm_reception_start.c77 UINT _ux_host_class_cdc_acm_reception_start (UX_HOST_CLASS_CDC_ACM *cdc_acm, in _ux_host_class_cdc_acm_reception_start() argument
85 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_CDC_ACM_RECEPTION_START, cdc_acm, 0, 0, 0, UX_TRACE_HO… in _ux_host_class_cdc_acm_reception_start()
88 if (cdc_acm -> ux_host_class_cdc_acm_state != UX_HOST_CLASS_INSTANCE_LIVE) in _ux_host_class_cdc_acm_reception_start()
95 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, cdc_acm, 0, 0, UX_TRACE_ER… in _ux_host_class_cdc_acm_reception_start()
102 …if (cdc_acm -> ux_host_class_cdc_acm_interface -> ux_interface_descriptor.bInterfaceClass != UX_HO… in _ux_host_class_cdc_acm_reception_start()
109 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, cdc_acm, 0, 0, UX_TRACE_ER… in _ux_host_class_cdc_acm_reception_start()
119 …transfer_request = &cdc_acm -> ux_host_class_cdc_acm_bulk_in_endpoint -> ux_endpoint_transfer_req… in _ux_host_class_cdc_acm_reception_start()
122 transfer_request -> ux_transfer_request_class_instance = (VOID *) cdc_acm; in _ux_host_class_cdc_acm_reception_start()
128 cdc_acm -> ux_host_class_cdc_acm_reception = cdc_acm_reception; in _ux_host_class_cdc_acm_reception_start()
Dux_host_class_cdc_acm_write.c85 UINT _ux_host_class_cdc_acm_write(UX_HOST_CLASS_CDC_ACM *cdc_acm, UCHAR *data_pointer, in _ux_host_class_cdc_acm_write() argument
97 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_CDC_ACM_WRITE, cdc_acm, 0, 0, 0, UX_TRACE_HOST_CLASS_E… in _ux_host_class_cdc_acm_write()
100 if (cdc_acm -> ux_host_class_cdc_acm_state != UX_HOST_CLASS_INSTANCE_LIVE) in _ux_host_class_cdc_acm_write()
107 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, cdc_acm, 0, 0, UX_TRACE_ER… in _ux_host_class_cdc_acm_write()
114 …if (cdc_acm -> ux_host_class_cdc_acm_interface -> ux_interface_descriptor.bInterfaceClass != UX_HO… in _ux_host_class_cdc_acm_write()
121 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, cdc_acm, 0, 0, UX_TRACE_ER… in _ux_host_class_cdc_acm_write()
127 if (cdc_acm -> ux_host_class_cdc_acm_write_state == UX_STATE_WAIT) in _ux_host_class_cdc_acm_write()
129 cdc_acm -> ux_host_class_cdc_acm_write_state = UX_STATE_WAIT; in _ux_host_class_cdc_acm_write()
136 …transfer_request = &cdc_acm -> ux_host_class_cdc_acm_bulk_out_endpoint -> ux_endpoint_transfer_re… in _ux_host_class_cdc_acm_write()
210 cdc_acm -> ux_host_class_cdc_acm_write_state = UX_STATE_RESET; in _ux_host_class_cdc_acm_write()
[all …]

12