/USBX-v6.2.1/common/usbx_device_classes/src/ |
D | ux_device_class_dfu_initialize.c | 95 UX_SLAVE_CLASS_DFU *dfu; in _ux_device_class_dfu_initialize() local 109 dfu = _ux_utility_memory_allocate(UX_NO_ALIGN, UX_REGULAR_MEMORY, sizeof(UX_SLAVE_CLASS_DFU)); in _ux_device_class_dfu_initialize() 112 if (dfu == UX_NULL) in _ux_device_class_dfu_initialize() 116 class_ptr -> ux_slave_class_instance = (VOID *) dfu; in _ux_device_class_dfu_initialize() 122 …dfu -> ux_slave_class_dfu_instance_activate = dfu_parameter -> ux_slave_class_dfu… in _ux_device_class_dfu_initialize() 123 …dfu -> ux_slave_class_dfu_instance_deactivate = dfu_parameter -> ux_slave_class_dfu… in _ux_device_class_dfu_initialize() 124 …dfu -> ux_slave_class_dfu_read = dfu_parameter -> ux_slave_class_dfu… in _ux_device_class_dfu_initialize() 125 …dfu -> ux_slave_class_dfu_write = dfu_parameter -> ux_slave_class_dfu… in _ux_device_class_dfu_initialize() 126 …dfu -> ux_slave_class_dfu_get_status = dfu_parameter -> ux_slave_class_dfu… in _ux_device_class_dfu_initialize() 127 …dfu -> ux_slave_class_dfu_notify = dfu_parameter -> ux_slave_class_dfu… in _ux_device_class_dfu_initialize() [all …]
|
D | ux_device_class_dfu_deactivate.c | 81 UX_SLAVE_CLASS_DFU *dfu; in _ux_device_class_dfu_deactivate() local 89 dfu = (UX_SLAVE_CLASS_DFU *) class_ptr -> ux_slave_class_instance; in _ux_device_class_dfu_deactivate() 92 if (dfu -> ux_slave_class_dfu_instance_deactivate != UX_NULL) in _ux_device_class_dfu_deactivate() 95 dfu -> ux_slave_class_dfu_instance_deactivate(dfu); in _ux_device_class_dfu_deactivate() 99 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_DEVICE_CLASS_DFU_DEACTIVATE, dfu, 0, 0, 0, UX_TRACE_DEVICE_CLASS_… in _ux_device_class_dfu_deactivate() 102 UX_TRACE_OBJECT_UNREGISTER(dfu); in _ux_device_class_dfu_deactivate()
|
D | ux_device_class_dfu_activate.c | 90 UX_SLAVE_CLASS_DFU *dfu; in _ux_device_class_dfu_activate() local 96 dfu = (UX_SLAVE_CLASS_DFU *) class_ptr -> ux_slave_class_instance; in _ux_device_class_dfu_activate() 102 interface_ptr -> ux_slave_interface_class_instance = (VOID *)dfu; in _ux_device_class_dfu_activate() 105 dfu -> ux_slave_class_dfu_interface = interface_ptr; in _ux_device_class_dfu_activate() 142 if (dfu -> ux_slave_class_dfu_instance_activate != UX_NULL) in _ux_device_class_dfu_activate() 145 dfu -> ux_slave_class_dfu_instance_activate(dfu); in _ux_device_class_dfu_activate() 149 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_DEVICE_CLASS_DFU_ACTIVATE, dfu, 0, 0, 0, UX_TRACE_DEVICE_CLASS_EV… in _ux_device_class_dfu_activate() 152 UX_TRACE_OBJECT_REGISTER(UX_TRACE_DEVICE_OBJECT_TYPE_INTERFACE, dfu, 0, 0, 0) in _ux_device_class_dfu_activate()
|
D | ux_device_class_dfu_control_request.c | 111 UX_SLAVE_CLASS_DFU *dfu; in _ux_device_class_dfu_control_request() local 131 dfu = (UX_SLAVE_CLASS_DFU *) class_ptr -> ux_slave_class_instance; in _ux_device_class_dfu_control_request() 137 if (dfu -> ux_device_class_dfu_custom_request) in _ux_device_class_dfu_control_request() 143 media_status = dfu -> ux_device_class_dfu_custom_request(dfu, transfer_request); in _ux_device_class_dfu_control_request() 183 … _ux_device_class_dfu_event_flags_set(dfu, UX_DEVICE_CLASS_DFU_THREAD_EVENT_DISCONNECT); in _ux_device_class_dfu_control_request() 189 … _ux_device_class_dfu_event_flags_set(dfu, UX_DEVICE_CLASS_DFU_THREAD_EVENT_WAIT_RESET); in _ux_device_class_dfu_control_request() 200 _ux_device_class_dfu_status_get(dfu, transfer_request, UX_FALSE, 0, 0, 0); in _ux_device_class_dfu_control_request() 203 …*transfer_request -> ux_slave_transfer_request_data_pointer = (UCHAR) dfu -> ux_slave_class_dfu_st… in _ux_device_class_dfu_control_request() 250 _ux_device_class_dfu_status_get(dfu, transfer_request, UX_FALSE, 0, 0, 0); in _ux_device_class_dfu_control_request() 254 …*transfer_request -> ux_slave_transfer_request_data_pointer = (UCHAR) dfu -> ux_slave_class_dfu_st… in _ux_device_class_dfu_control_request() [all …]
|
D | ux_device_class_dfu_tasks_run.c | 75 UX_SLAVE_CLASS_DFU *dfu; in _ux_device_class_dfu_tasks_run() local 80 dfu = (UX_SLAVE_CLASS_DFU *) class_instance; in _ux_device_class_dfu_tasks_run() 83 if (dfu -> ux_device_class_dfu_flags == 0) in _ux_device_class_dfu_tasks_run() 85 actual_flags = dfu -> ux_device_class_dfu_flags; in _ux_device_class_dfu_tasks_run() 90 dfu -> ux_device_class_dfu_flags &= ~UX_DEVICE_CLASS_DFU_THREAD_EVENT_DISCONNECT; in _ux_device_class_dfu_tasks_run() 106 dfu -> ux_device_class_dfu_flags &= ~UX_DEVICE_CLASS_DFU_THREAD_EVENT_WAIT_RESET; in _ux_device_class_dfu_tasks_run()
|
D | ux_device_class_dfu_state_get.c | 69 UCHAR _ux_device_class_dfu_state_get(UX_SLAVE_CLASS_DFU *dfu) in _ux_device_class_dfu_state_get() argument 71 UX_PARAMETER_NOT_USED(dfu); in _ux_device_class_dfu_state_get()
|
D | ux_device_class_dfu_state_sync.c | 77 VOID _ux_device_class_dfu_state_sync(UX_SLAVE_CLASS_DFU *dfu) in _ux_device_class_dfu_state_sync() argument 81 UX_PARAMETER_NOT_USED(dfu); in _ux_device_class_dfu_state_sync()
|
D | ux_device_class_dfu_thread.c | 87 UX_SLAVE_CLASS_DFU *dfu; in _ux_device_class_dfu_thread() local 96 dfu = (UX_SLAVE_CLASS_DFU *) class_ptr -> ux_slave_class_instance; in _ux_device_class_dfu_thread() 104 …status = _ux_utility_event_flags_get(&dfu -> ux_slave_class_dfu_event_flags_group, (UX_DEVICE_CLA… in _ux_device_class_dfu_thread()
|
/USBX-v6.2.1/common/usbx_device_classes/inc/ |
D | ux_device_class_dfu.h | 197 …UINT (*ux_slave_class_dfu_parameter_read)(VOID *dfu, ULONG block_number, UCHAR … 198 …UINT (*ux_slave_class_dfu_parameter_write)(VOID *dfu, ULONG block_number, UCHAR… 199 …UINT (*ux_slave_class_dfu_parameter_get_status)(VOID *dfu, ULONG *media_status); 200 UINT (*ux_slave_class_dfu_parameter_notify)(VOID *dfu, ULONG notification); 202 …UINT (*ux_device_class_dfu_parameter_custom_request)(VOID *dfu, UX_SLAVE_TRANSF… 217 …UINT (*ux_slave_class_dfu_read)(VOID *dfu, ULONG block_number, UCHAR * data_poi… 218 …UINT (*ux_slave_class_dfu_write)(VOID *dfu, ULONG block_number, UCHAR * data_po… 219 UINT (*ux_slave_class_dfu_get_status)(VOID *dfu, ULONG *media_status); 220 UINT (*ux_slave_class_dfu_notify)(VOID *dfu, ULONG notification); 222 …UINT (*ux_device_class_dfu_custom_request)(VOID *dfu, UX_SLAVE_TRANSFER *transf… [all …]
|