blob: 314b2cc8cd4206a1d392ec9fbdc9bd51c952869d (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/***************************************************************************/
/* 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 */
/***************************************************************************/
#ifndef UX_DEVICE_CLASS_DUMMY_PRINTER_H
#define UX_DEVICE_CLASS_DUMMY_PRINTER_H
#include <stdio.h>
#include "tx_api.h"
#include "ux_api.h"
#include "ux_system.h"
#include "ux_utility.h"
#include "ux_device_stack.h"
#include "ux_test_dcd_sim_slave.h"
#include "ux_test_hcd_sim_host.h"
#include "ux_test.h"
#include "ux_device_class_dummy.h"
#include "ux_host_class_printer.h"
typedef struct UX_DEVICE_CLASS_PRINTER_PARAMS_STRUCT
{
UCHAR *device_id;
ULONG device_id_length;
VOID (*instance_activate)(VOID *);
VOID (*instance_deactivate)(VOID *);
} UX_DEVICE_CLASS_PRINTER_PARAMS;
typedef struct UX_DEVICE_CLASS_PRINTER_STRUCT
{
UX_SLAVE_INTERFACE *interface;
UX_SLAVE_ENDPOINT *bulk_in_endpoint;
UX_SLAVE_ENDPOINT *bulk_out_endpoint;
UX_DEVICE_CLASS_PRINTER_PARAMS params;
UCHAR port_status;
UCHAR soft_reset;
UCHAR reserved[2];
} UX_DEVICE_CLASS_PRINTER;
extern UCHAR _ux_device_class_printer_name[];
UINT _ux_device_class_printer_entry(UX_SLAVE_CLASS_COMMAND *);
#endif
|