次の方法で共有


USBDBG PDD Constants (Compact 2013)

10/16/2014

These constants are used by the model device driver (MDD) and platform-dependent device driver (PDD) to indicate the transfer status of data and to indicate which debug messages have been logged.

Syntax

#define USBDBG_MDD_EP0_STATUS_STAGE     0x00000001
#define USBDBG_MDD_TRANSFER_START       0x00000002
#define USBDBG_PDD_TRANSFER_COMPLETE    0x00000001
#define USBDBG_ZONE_ERROR               0x00010000
#define USBDBG_ZONE_WARN                0x00020000
#define USBDBG_ZONE_INFO                0x00040000
#define USBDBG_ZONE_INIT                0x00080000
#define USBDBG_ZONE_FUNC                0x00100000
#define USBDBG_ZONE_VERBOSE             0x00200000
#define USBDBG_ZONE_SEND                0x00400000
#define USBDBG_ZONE_RECV                0x00800000
#define USBDBG_ZONE_DUMP_PKT            0x01000000
#define USBDBG_ZONE_SETUP_REQUEST       0x02000000
#define USBDBG_ZONE_EVENT               0x04000000

Constants

The USBDBG PDD constants shown below are separated according to function.

Flags Passed by the MDD to the PDD

These status constants are passed by the MDD to the PDD to indicate transfer status.

Name

Description

Value

USBDBG_MDD_EP0_STATUS_STAGE

Indicates that EP0 is in status stage (ACK stage)

0x00000001

USBDBG_MDD_TRANSFER_START

Requests that the PDD start to transmit or receive data

0x00000002

Flags Passed by the PDD to the MDD

This status constant is passed by the PDD to the MDD to indicate transfer status.

Name

Description

Value

USBDBG_PDD_TRANSFER_COMPLETE

Indicates that the PDD has completed a data transfer

0x00000001

USBDBG Zones

These debug zone constants are used by the USBDBGMSG macro to determine which debug messages are sent to the log.

Name

Description

Value

USBDBG_ZONE_ERROR

Specifies that errors are logged

0x00010000

USBDBG_ZONE_WARN

Specifies that warnings are logged

0x00020000

USBDBG_ZONE_INFO

Specifies that information messages are logged

0x00040000

USBDBG_ZONE_INIT

Logs events related to initialization

0x00080000

USBDBG_ZONE_FUNC

Logs events related to functions

0x00100000

USBDBG_ZONE_VERBOSE

Logs all events

0x00200000

USBDBG_ZONE_SEND

Logs events related to sending data

0x00400000

USBDBG_ZONE_RECV

Logs events related to receiving data

0x00800000

USBDBG_ZONE_DUMP_PKT

Logs events related to packet dumps

0x01000000

USBDBG_ZONE_SETUP_REQUEST

Logs events related to setup requests

0x02000000

USBDBG_ZONE_EVENT

Logs all events

0x04000000

See Also

Reference

USBDBG PDD Reference
USBDBG PDD Enumerations