summaryrefslogtreecommitdiff
path: root/test/regression/ux_test_dcd_sim_slave.h
blob: cdef036169f90d611d40c8a7dc14522dfb796820 (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
35
/***************************************************************************/
/* 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_DCD_SIM_SLAVE_H
#define _UX_TEST_DCD_SIM_SLAVE_H

#include "ux_test.h"

/* Uses general entry action simulator */
#define _UX_TEST_DCD_SIM_ACTION_STRUCT _UX_TEST_SIM_ENTRY_ACTION_STRUCT
#define UX_TEST_DCD_SIM_ACTION UX_TEST_SIM_ENTRY_ACTION

VOID ux_test_dcd_sim_slave_disconnect(VOID);
VOID ux_test_dcd_sim_slave_connect   (ULONG speed);
VOID ux_test_dcd_sim_slave_connect_framework(UCHAR * framework, ULONG framework_length);

UINT _ux_test_dcd_sim_slave_initialize(VOID);

VOID ux_test_dcd_sim_slave_cleanup(VOID);

UINT _ux_test_dcd_sim_slave_function(UX_SLAVE_DCD *dcd, UINT function, VOID *parameter);

VOID ux_test_dcd_sim_slave_transfer_done(UX_SLAVE_TRANSFER *transfer, UINT code);

#endif /* _UX_TEST_DCD_SIM_SLAVE_H */