blob: fd5ef5435c22374d023d08ebb6553f14c08d50e9 (
plain)
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
|
/***************************************************************************/
/* Copyright (c) 2024 Microsoft Corporation */
/* Copyright (c) 2026 Eclipse ThreadX contributors */
/* */
/* This program and the accompanying materials are made available under */
/* the terms of the MIT License which is available at */
/* https://opensource.org/licenses/MIT. */
/* */
/* SPDX-License-Identifier: MIT */
/***************************************************************************/
/* This test simulator is designed to simulate ux_hcd_ APIs for test. */
#ifndef _UX_TEST_HCD_SIM_HOST_H
#define _UX_TEST_HCD_SIM_HOST_H
#include "ux_test.h"
/* Uses general entry action simulator */
#define _UX_TEST_HCD_SIM_ACTION_STRUCT _UX_TEST_SIM_ENTRY_ACTION_STRUCT
#define UX_TEST_HCD_SIM_ACTION UX_TEST_SIM_ENTRY_ACTION
VOID ux_test_hcd_sim_host_disconnect_no_wait(VOID);
VOID ux_test_hcd_sim_host_disconnect(VOID);
VOID ux_test_hcd_sim_host_connect_no_wait(ULONG speed);
VOID ux_test_hcd_sim_host_connect(ULONG speed);
UINT _ux_test_hcd_sim_host_initialize(UX_HCD *hcd);
VOID ux_test_hcd_sim_host_cleanup(VOID);
UINT _ux_test_hcd_sim_host_entry(UX_HCD *hcd, UINT function, VOID *parameter);
#endif /* _UX_TEST_HCD_SIM_HOST_H */
|