Select one of the symbols to view example projects that use it.
 
Outline
...
...
...
...
...
...
#define UX_HOST_STACK_H
#define UX_HOST_STACK_ENUM_PORT_ENABLE
#define UX_HOST_STACK_ENUM_PORT_RESET
#define UX_HOST_STACK_ENUM_PORT_RESET_WAIT
#define UX_HOST_STACK_ENUM_DEVICE_ADDR_SET
#define UX_HOST_STACK_ENUM_DEVICE_ADDR_SENT
#define UX_HOST_STACK_ENUM_DEVICE_DESCR_READ
#define UX_HOST_STACK_ENUM_DEVICE_DESCR_PARSE
#define UX_HOST_STACK_ENUM_CONFIG_DESCR_READ
#define UX_HOST_STACK_ENUM_CONFIG_DESCR_PARSE
#define UX_HOST_STACK_ENUM_CONFIG_DESCR_NEXT
#define UX_HOST_STACK_ENUM_CONFIG_SET
#define UX_HOST_STACK_ENUM_CONFIG_ACTIVATE
#define UX_HOST_STACK_ENUM_ACTIVATE
#define UX_HOST_STACK_ENUM_ACTIVATE_WAIT
#define UX_HOST_STACK_ENUM_RETRY
#define UX_HOST_STACK_ENUM_NEXT
#define UX_HOST_STACK_ENUM_TRANS_LOCK_WAIT
#define UX_HOST_STACK_ENUM_TRANS_WAIT
#define UX_HOST_STACK_ENUM_WAIT
#define UX_HOST_STACK_ENUM_FAIL
#define UX_HOST_STACK_ENUM_DONE
#define UX_HOST_STACK_ENUM_IDLE
_ux_host_stack_bandwidth_release(UX_HCD *, UX_ENDPOINT *);
_ux_host_stack_bandwidth_claim(UX_HCD *, UX_ENDPOINT *);
_ux_host_stack_bandwidth_check(UX_HCD *, UX_ENDPOINT *);
#define _ux_host_stack_bandwidth_release
#define _ux_host_stack_bandwidth_claim
#define _ux_host_stack_bandwidth_check
_ux_host_stack_class_call(UX_HOST_CLASS_COMMAND *);
_ux_host_stack_class_device_scan(UX_DEVICE *);
_ux_host_stack_class_get(UCHAR *, UX_HOST_CLASS **);
_ux_host_stack_class_instance_destroy(UX_HOST_CLASS *, void *);
_ux_host_stack_class_instance_create(UX_HOST_CLASS *, void *);
_ux_host_stack_class_instance_get(UX_HOST_CLASS *, UINT, void **);
_ux_host_stack_class_instance_verify(UCHAR *, void *);
_ux_host_stack_class_interface_scan(UX_DEVICE *);
_ux_host_stack_class_register(UCHAR *, UINT (*)(struct UX_HOST_CLASS_COMMAND_STRUCT *));
_ux_host_stack_class_unregister(UINT (*)(struct UX_HOST_CLASS_COMMAND_STRUCT *));
_ux_host_stack_configuration_descriptor_parse(UX_DEVICE *, UX_CONFIGURATION *, UINT);
_ux_host_stack_configuration_enumerate(UX_DEVICE *);
_ux_host_stack_configuration_instance_create(UX_CONFIGURATION *);
_ux_host_stack_configuration_instance_delete(UX_CONFIGURATION *);
_ux_host_stack_configuration_interface_get(UX_CONFIGURATION *, UINT, UINT, UX_INTERFACE **);
_ux_host_stack_configuration_interface_scan(UX_CONFIGURATION *);
_ux_host_stack_configuration_set(UX_CONFIGURATION *);
_ux_host_stack_delay_ms(ULONG);
_ux_host_stack_device_address_set(UX_DEVICE *);
_ux_host_stack_device_configuration_activate(UX_CONFIGURATION *);
_ux_host_stack_device_configuration_deactivate(UX_DEVICE *);
_ux_host_stack_device_configuration_get(UX_DEVICE *, UINT, UX_CONFIGURATION **);
_ux_host_stack_device_configuration_select(UX_CONFIGURATION *);
_ux_host_stack_device_configuration_reset(UX_DEVICE *);
_ux_host_stack_device_descriptor_read(UX_DEVICE *);
_ux_host_stack_device_get(ULONG, UX_DEVICE **);
_ux_host_stack_device_string_get(UX_DEVICE *, UCHAR *, ULONG, ULONG, ULONG);
_ux_host_stack_device_remove(UX_HCD *, UX_DEVICE *, UINT);
_ux_host_stack_device_resources_free(UX_DEVICE *);
_ux_host_stack_endpoint_instance_create(UX_ENDPOINT *);
_ux_host_stack_endpoint_instance_delete(UX_ENDPOINT *);
_ux_host_stack_endpoint_reset(UX_ENDPOINT *);
_ux_host_stack_endpoint_transfer_abort(UX_ENDPOINT *);
_ux_host_stack_enum_thread_entry(ULONG);
_ux_host_stack_hcd_register(UCHAR *, UINT (*)(struct UX_HCD_STRUCT *), ULONG, ULONG);
_ux_host_stack_hcd_unregister(UCHAR *, ULONG, ULONG);
_ux_host_stack_hcd_thread_entry(ULONG);
_ux_host_stack_hcd_transfer_request(UX_TRANSFER *);
_ux_host_stack_initialize(UINT (*)(ULONG, UX_HOST_CLASS *, void *));
_ux_host_stack_uninitialize();
_ux_host_stack_interface_endpoint_get(UX_INTERFACE *, UINT, UX_ENDPOINT **);
_ux_host_stack_interface_instance_create(UX_INTERFACE *);
_ux_host_stack_interface_instance_delete(UX_INTERFACE *);
_ux_host_stack_interface_set(UX_INTERFACE *);
_ux_host_stack_interface_setting_select(UX_INTERFACE *);
_ux_host_stack_interfaces_scan(UX_CONFIGURATION *, UCHAR *);
_ux_host_stack_new_configuration_create(UX_DEVICE *, UX_CONFIGURATION *);
_ux_host_stack_new_device_get();
_ux_host_stack_new_device_create(UX_HCD *, UX_DEVICE *, UINT, UINT, UINT, UX_DEVICE **);
_ux_host_stack_new_endpoint_create(UX_INTERFACE *, UCHAR *);
_ux_host_stack_new_interface_create(UX_CONFIGURATION *, UCHAR *, ULONG);
_ux_host_stack_rh_change_process();
_ux_host_stack_rh_device_extraction(UX_HCD *, UINT);
_ux_host_stack_rh_device_insertion(UX_HCD *, UINT);
_ux_host_stack_transfer_request(UX_TRANSFER *);
_ux_host_stack_transfer_request_abort(UX_TRANSFER *);
_ux_host_stack_role_swap(UX_DEVICE *);
_ux_host_stack_tasks_run();
_ux_host_stack_transfer_run(UX_TRANSFER *);
Files
usbx
common
core
inc
src
usbx_device_classes
usbx_host_classes
usbx_network
usbx_stm32_device_controllers
usbx_stm32_host_controllers
ports
HAL
threadx
netxduo
filex
SourceVuSTM32 Libraries and Samplesusbxcommon/core/inc/ux_host_stack.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/**************************************************************************/ /* */ /* Copyright (c) Microsoft Corporation. All rights reserved. */ /* */ /* This software is licensed under the Microsoft Software License */ /* Terms for Microsoft Azure RTOS. Full text of the license can be */ /* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */ /* and in the root directory of this software. */ /* */... /**************************************************************************/ ... /**************************************************************************/ /**************************************************************************/ /** */ /** USBX Component */ /** */ /** Host Stack */ /** */... /**************************************************************************/ /**************************************************************************/ ... /**************************************************************************/ /* */ /* COMPONENT DEFINITION RELEASE */ /* */ /* ux_host_stack.h PORTABLE C */ /* 6.1.10 */ /* AUTHOR */ /* */ /* Chaoqiong Xiao, Microsoft Corporation */ /* */ /* DESCRIPTION */ /* */ /* This file contains all the header and extern functions used by the */ /* USBX Host Stack component. */ /* */ /* RELEASE HISTORY */ /* */ /* DATE NAME DESCRIPTION */ /* */ /* 05-19-2020 Chaoqiong Xiao Initial Version 6.0 */ /* 09-30-2020 Chaoqiong Xiao Modified comment(s), */ /* added uninitialize APIs, */ /* optimized based on compile */ /* definitions, */ /* resulting in version 6.1 */ /* 02-02-2021 Chaoqiong Xiao Modified comment(s), */ /* added configuration activate*/ /* and deactivate support, */ /* added host device string */ /* descriptor get support, */ /* updated internal function, */ /* resulting in version 6.1.4 */ /* 08-02-2021 Chaoqiong Xiao Modified comment(s), */ /* added extern "C" keyword */ /* for compatibility with C++, */ /* resulting in version 6.1.8 */ /* 01-31-2022 Chaoqiong Xiao Modified comment(s), */ /* added standalone support, */ /* resulting in version 6.1.10 */ /* */... /**************************************************************************/ #ifndef UX_HOST_STACK_H #define UX_HOST_STACK_H /* Determine if a C++ compiler is being used. If so, ensure that standard C is used to process the API information. *//* ... */ #ifdef __cplusplus /* Yes, C++ compiler is present. Use standard C. */ extern "C" { #endif /* Define Host Stack enumeration state machine states. */ #define UX_HOST_STACK_ENUM_PORT_ENABLE (UX_STATE_STEP + 0) #define UX_HOST_STACK_ENUM_PORT_RESET (UX_STATE_STEP + 1) #define UX_HOST_STACK_ENUM_PORT_RESET_WAIT (UX_STATE_STEP + 2) #define UX_HOST_STACK_ENUM_DEVICE_ADDR_SET (UX_STATE_STEP + 3) #define UX_HOST_STACK_ENUM_DEVICE_ADDR_SENT (UX_STATE_STEP + 4) #define UX_HOST_STACK_ENUM_DEVICE_DESCR_READ (UX_STATE_STEP + 5) #define UX_HOST_STACK_ENUM_DEVICE_DESCR_PARSE (UX_STATE_STEP + 6) #define UX_HOST_STACK_ENUM_CONFIG_DESCR_READ (UX_STATE_STEP + 7) #define UX_HOST_STACK_ENUM_CONFIG_DESCR_PARSE (UX_STATE_STEP + 8) #define UX_HOST_STACK_ENUM_CONFIG_DESCR_NEXT (UX_STATE_STEP + 9) #define UX_HOST_STACK_ENUM_CONFIG_SET (UX_STATE_STEP + 10) #define UX_HOST_STACK_ENUM_CONFIG_ACTIVATE (UX_STATE_STEP + 11) #define UX_HOST_STACK_ENUM_ACTIVATE (UX_STATE_STEP + 12) #define UX_HOST_STACK_ENUM_ACTIVATE_WAIT (UX_STATE_STEP + 13) #define UX_HOST_STACK_ENUM_RETRY (UX_STATE_STEP + 14) #define UX_HOST_STACK_ENUM_NEXT (UX_STATE_STEP + 15) #define UX_HOST_STACK_ENUM_TRANS_LOCK_WAIT (UX_STATE_STEP + 16) #define UX_HOST_STACK_ENUM_TRANS_WAIT (UX_STATE_STEP + 17) #define UX_HOST_STACK_ENUM_WAIT (UX_STATE_STEP + 18) #define UX_HOST_STACK_ENUM_FAIL (UX_STATE_STEP + 19) #define UX_HOST_STACK_ENUM_DONE (UX_STATE_STEP + 20) #define UX_HOST_STACK_ENUM_IDLE (UX_STATE_STEP + 21) 22 defines /* Define Host Stack component function prototypes. */ #if UX_MAX_DEVICES > 1 VOID _ux_host_stack_bandwidth_release(UX_HCD *hcd, UX_ENDPOINT *endpoint); VOID _ux_host_stack_bandwidth_claim(UX_HCD *hcd, UX_ENDPOINT *endpoint); UINT _ux_host_stack_bandwidth_check(UX_HCD *hcd, UX_ENDPOINT *endpoint);/* ... */ #else #define _ux_host_stack_bandwidth_release(a,b) #define _ux_host_stack_bandwidth_claim(a,b) #define _ux_host_stack_bandwidth_check(a,b) (UX_SUCCESS) /* ... */#endif UX_HOST_CLASS * _ux_host_stack_class_call(UX_HOST_CLASS_COMMAND *class_command); UINT _ux_host_stack_class_device_scan(UX_DEVICE *device); UINT _ux_host_stack_class_get(UCHAR *class_name, UX_HOST_CLASS **class); UINT _ux_host_stack_class_instance_destroy(UX_HOST_CLASS *class, VOID *class_instance); UINT _ux_host_stack_class_instance_create(UX_HOST_CLASS *class, VOID *class_instance); UINT _ux_host_stack_class_instance_get(UX_HOST_CLASS *class, UINT class_index, VOID **class_instance); UINT _ux_host_stack_class_instance_verify(UCHAR *class_name, VOID *class_instance); UINT _ux_host_stack_class_interface_scan(UX_DEVICE *device); UINT _ux_host_stack_class_register(UCHAR *class_name, UINT (*class_entry_function)(struct UX_HOST_CLASS_COMMAND_STRUCT *)); UINT _ux_host_stack_class_unregister(UINT (*class_entry_function)(struct UX_HOST_CLASS_COMMAND_STRUCT *)); UINT _ux_host_stack_configuration_descriptor_parse(UX_DEVICE *device, UX_CONFIGURATION *configuration, UINT configuration_index); UINT _ux_host_stack_configuration_enumerate(UX_DEVICE *device); UINT _ux_host_stack_configuration_instance_create(UX_CONFIGURATION *configuration); VOID _ux_host_stack_configuration_instance_delete(UX_CONFIGURATION *configuration); UINT _ux_host_stack_configuration_interface_get(UX_CONFIGURATION *configuration, UINT interface_index, UINT alternate_setting_index, UX_INTERFACE **interface); UINT _ux_host_stack_configuration_interface_scan(UX_CONFIGURATION *configuration); UINT _ux_host_stack_configuration_set(UX_CONFIGURATION *configuration); VOID _ux_host_stack_delay_ms(ULONG time); UINT _ux_host_stack_device_address_set(UX_DEVICE *device); UINT _ux_host_stack_device_configuration_activate(UX_CONFIGURATION *configuration); UINT _ux_host_stack_device_configuration_deactivate(UX_DEVICE *device); UINT _ux_host_stack_device_configuration_get(UX_DEVICE *device, UINT configuration_index, UX_CONFIGURATION **configuration); UINT _ux_host_stack_device_configuration_select(UX_CONFIGURATION *configuration); UINT _ux_host_stack_device_configuration_reset(UX_DEVICE *device); UINT _ux_host_stack_device_descriptor_read(UX_DEVICE *device); UINT _ux_host_stack_device_get(ULONG device_index, UX_DEVICE **device); UINT _ux_host_stack_device_string_get(UX_DEVICE *device, UCHAR *descriptor_buffer, ULONG length, ULONG language_id, ULONG string_index); UINT _ux_host_stack_device_remove(UX_HCD *hcd, UX_DEVICE *parent, UINT port_index); UINT _ux_host_stack_device_resources_free(UX_DEVICE *device); UINT _ux_host_stack_endpoint_instance_create(UX_ENDPOINT *endpoint); VOID _ux_host_stack_endpoint_instance_delete(UX_ENDPOINT *endpoint); UINT _ux_host_stack_endpoint_reset(UX_ENDPOINT *endpoint); UINT _ux_host_stack_endpoint_transfer_abort(UX_ENDPOINT *endpoint); VOID _ux_host_stack_enum_thread_entry(ULONG input); UINT _ux_host_stack_hcd_register(UCHAR *hcd_name, UINT (*hcd_init_function)(struct UX_HCD_STRUCT *), ULONG hcd_param1, ULONG hcd_param2); UINT _ux_host_stack_hcd_unregister(UCHAR *hcd_name, ULONG hcd_param1, ULONG hcd_param2); VOID _ux_host_stack_hcd_thread_entry(ULONG input); UINT _ux_host_stack_hcd_transfer_request(UX_TRANSFER *transfer_request); UINT _ux_host_stack_initialize(UINT (*ux_system_host_change_function)(ULONG, UX_HOST_CLASS *, VOID *)); UINT _ux_host_stack_uninitialize(VOID); UINT _ux_host_stack_interface_endpoint_get(UX_INTERFACE *interface, UINT endpoint_index, UX_ENDPOINT **endpoint); UINT _ux_host_stack_interface_instance_create(UX_INTERFACE *interface); VOID _ux_host_stack_interface_instance_delete(UX_INTERFACE *interface); UINT _ux_host_stack_interface_set(UX_INTERFACE *interface); UINT _ux_host_stack_interface_setting_select(UX_INTERFACE *interface); UINT _ux_host_stack_interfaces_scan(UX_CONFIGURATION *configuration, UCHAR * descriptor); VOID _ux_host_stack_new_configuration_create(UX_DEVICE *device, UX_CONFIGURATION *configuration); UX_DEVICE *_ux_host_stack_new_device_get(VOID); UINT _ux_host_stack_new_device_create(UX_HCD *hcd, UX_DEVICE *device_owner, UINT port_index, UINT device_speed, UINT port_max_power, UX_DEVICE **created_device); UINT _ux_host_stack_new_endpoint_create(UX_INTERFACE *interface, UCHAR * interface_endpoint); UINT _ux_host_stack_new_interface_create(UX_CONFIGURATION *configuration, UCHAR * descriptor, ULONG length); VOID _ux_host_stack_rh_change_process(VOID); UINT _ux_host_stack_rh_device_extraction(UX_HCD *hcd, UINT port_index); UINT _ux_host_stack_rh_device_insertion(UX_HCD *hcd, UINT port_index); UINT _ux_host_stack_transfer_request(UX_TRANSFER *transfer_request); UINT _ux_host_stack_transfer_request_abort(UX_TRANSFER *transfer_request); UINT _ux_host_stack_role_swap(UX_DEVICE *device); #if defined(UX_OTG_SUPPORT) VOID _ux_host_stack_hnp_polling_thread_entry(ULONG id); #endif UINT _ux_host_stack_tasks_run(VOID); UINT _ux_host_stack_transfer_run(UX_TRANSFER *transfer_request); /* Determine if a C++ compiler is being used. If so, complete the standard C conditional started above. *//* ... */ #ifdef __cplusplus }extern "C" { ... } #endif /* ... */ #endif...
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.