/**
 * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
 *
 *  SPDX-License-Identifier: Apache-2.0
 */
#pragma once

#include <stdint.h>
#include "soc/soc.h"
#ifdef __cplusplus
extern "C" {
#endif

/** USB_DEVICE_EP1_REG register
 *  FIFO access for the CDC-ACM data IN and OUT endpoints.
 */
#define USB_DEVICE_EP1_REG (DR_REG_USB_DEVICE_BASE + 0x0)
/** USB_DEVICE_SERIAL_JTAG_RDWR_BYTE : RO; bitpos: [7:0]; default: 0;
 *  Write and read byte data to/from UART Tx/Rx FIFO through this field. When
 *  USB_DEVICE_SERIAL_IN_EMPTY_INT is set, then user can write data (up to 64 bytes)
 *  into UART Tx FIFO. When USB_DEVICE_SERIAL_OUT_RECV_PKT_INT is set, user can check
 *  USB_DEVICE_OUT_EP1_WR_ADDR USB_DEVICE_OUT_EP0_RD_ADDR to know how many data is
 *  received, then read data from UART Rx FIFO.
 */
#define USB_DEVICE_SERIAL_JTAG_RDWR_BYTE    0x000000FFU
#define USB_DEVICE_SERIAL_JTAG_RDWR_BYTE_M  (USB_DEVICE_SERIAL_JTAG_RDWR_BYTE_V << USB_DEVICE_SERIAL_JTAG_RDWR_BYTE_S)
#define USB_DEVICE_SERIAL_JTAG_RDWR_BYTE_V  0x000000FFU
#define USB_DEVICE_SERIAL_JTAG_RDWR_BYTE_S  0

/** USB_DEVICE_EP1_CONF_REG register
 *  Configuration and control registers for the CDC-ACM FIFOs.
 */
#define USB_DEVICE_EP1_CONF_REG (DR_REG_USB_DEVICE_BASE + 0x4)
/** USB_DEVICE_SERIAL_JTAG_WR_DONE : WT; bitpos: [0]; default: 0;
 *  Set this bit to indicate writing byte data to UART Tx FIFO is done.
 */
#define USB_DEVICE_SERIAL_JTAG_WR_DONE    (BIT(0))
#define USB_DEVICE_SERIAL_JTAG_WR_DONE_M  (USB_DEVICE_SERIAL_JTAG_WR_DONE_V << USB_DEVICE_SERIAL_JTAG_WR_DONE_S)
#define USB_DEVICE_SERIAL_JTAG_WR_DONE_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_WR_DONE_S  0
/** USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EP_DATA_FREE : RO; bitpos: [1]; default: 1;
 *  1'b1: Indicate UART Tx FIFO is not full and can write data into in. After writing
 *  USB_DEVICE_WR_DONE, this bit would be 0 until data in UART Tx FIFO is read by USB
 *  Host.
 */
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EP_DATA_FREE    (BIT(1))
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EP_DATA_FREE_M  (USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EP_DATA_FREE_V << USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EP_DATA_FREE_S)
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EP_DATA_FREE_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EP_DATA_FREE_S  1
/** USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_EP_DATA_AVAIL : RO; bitpos: [2]; default: 0;
 *  1'b1: Indicate there is data in UART Rx FIFO.
 */
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_EP_DATA_AVAIL    (BIT(2))
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_EP_DATA_AVAIL_M  (USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_EP_DATA_AVAIL_V << USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_EP_DATA_AVAIL_S)
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_EP_DATA_AVAIL_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_EP_DATA_AVAIL_S  2

/** USB_DEVICE_INT_RAW_REG register
 *  Interrupt raw status register.
 */
#define USB_DEVICE_INT_RAW_REG (DR_REG_USB_DEVICE_BASE + 0x8)
/** USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_RAW : R/WTC/SS; bitpos: [0]; default: 0;
 *  The raw interrupt bit turns to high level when flush cmd is received for IN
 *  endpoint 2 of JTAG.
 */
#define USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_RAW    (BIT(0))
#define USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_RAW_M  (USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_RAW_V << USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_RAW_S)
#define USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_RAW_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_RAW_S  0
/** USB_DEVICE_SERIAL_JTAG_SOF_INT_RAW : R/WTC/SS; bitpos: [1]; default: 0;
 *  The raw interrupt bit turns to high level when SOF frame is received.
 */
#define USB_DEVICE_SERIAL_JTAG_SOF_INT_RAW    (BIT(1))
#define USB_DEVICE_SERIAL_JTAG_SOF_INT_RAW_M  (USB_DEVICE_SERIAL_JTAG_SOF_INT_RAW_V << USB_DEVICE_SERIAL_JTAG_SOF_INT_RAW_S)
#define USB_DEVICE_SERIAL_JTAG_SOF_INT_RAW_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SOF_INT_RAW_S  1
/** USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_RAW : R/WTC/SS; bitpos: [2];
 *  default: 0;
 *  The raw interrupt bit turns to high level when Serial Port OUT Endpoint received
 *  one packet.
 */
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_RAW    (BIT(2))
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_RAW_M  (USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_RAW_V << USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_RAW_S)
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_RAW_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_RAW_S  2
/** USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_RAW : R/WTC/SS; bitpos: [3]; default: 1;
 *  The raw interrupt bit turns to high level when Serial Port IN Endpoint is empty.
 */
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_RAW    (BIT(3))
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_RAW_M  (USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_RAW_V << USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_RAW_S)
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_RAW_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_RAW_S  3
/** USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_RAW : R/WTC/SS; bitpos: [4]; default: 0;
 *  The raw interrupt bit turns to high level when pid error is detected.
 */
#define USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_RAW    (BIT(4))
#define USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_RAW_M  (USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_RAW_V << USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_RAW_S)
#define USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_RAW_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_RAW_S  4
/** USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_RAW : R/WTC/SS; bitpos: [5]; default: 0;
 *  The raw interrupt bit turns to high level when CRC5 error is detected.
 */
#define USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_RAW    (BIT(5))
#define USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_RAW_M  (USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_RAW_V << USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_RAW_S)
#define USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_RAW_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_RAW_S  5
/** USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_RAW : R/WTC/SS; bitpos: [6]; default: 0;
 *  The raw interrupt bit turns to high level when CRC16 error is detected.
 */
#define USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_RAW    (BIT(6))
#define USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_RAW_M  (USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_RAW_V << USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_RAW_S)
#define USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_RAW_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_RAW_S  6
/** USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_RAW : R/WTC/SS; bitpos: [7]; default: 0;
 *  The raw interrupt bit turns to high level when stuff error is detected.
 */
#define USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_RAW    (BIT(7))
#define USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_RAW_M  (USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_RAW_V << USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_RAW_S)
#define USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_RAW_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_RAW_S  7
/** USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_RAW : R/WTC/SS; bitpos: [8];
 *  default: 0;
 *  The raw interrupt bit turns to high level when IN token for IN endpoint 1 is
 *  received.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_RAW    (BIT(8))
#define USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_RAW_M  (USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_RAW_V << USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_RAW_S)
#define USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_RAW_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_RAW_S  8
/** USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_RAW : R/WTC/SS; bitpos: [9]; default: 0;
 *  The raw interrupt bit turns to high level when usb bus reset is detected.
 */
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_RAW    (BIT(9))
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_RAW_M  (USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_RAW_V << USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_RAW_S)
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_RAW_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_RAW_S  9
/** USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_RAW : R/WTC/SS; bitpos: [10];
 *  default: 0;
 *  The raw interrupt bit turns to high level when OUT endpoint 1 received packet with
 *  zero palyload.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_RAW    (BIT(10))
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_RAW_M  (USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_RAW_V << USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_RAW_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_RAW_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_RAW_S  10
/** USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_RAW : R/WTC/SS; bitpos: [11];
 *  default: 0;
 *  The raw interrupt bit turns to high level when OUT endpoint 2 received packet with
 *  zero palyload.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_RAW    (BIT(11))
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_RAW_M  (USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_RAW_V << USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_RAW_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_RAW_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_RAW_S  11
/** USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_RAW : R/WTC/SS; bitpos: [12]; default: 0;
 *  The raw interrupt bit turns to high level when level of RTS from usb serial channel
 *  is changed.
 */
#define USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_RAW    (BIT(12))
#define USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_RAW_M  (USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_RAW_V << USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_RAW_S)
#define USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_RAW_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_RAW_S  12
/** USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_RAW : R/WTC/SS; bitpos: [13]; default: 0;
 *  The raw interrupt bit turns to high level when level of DTR from usb serial channel
 *  is changed.
 */
#define USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_RAW    (BIT(13))
#define USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_RAW_M  (USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_RAW_V << USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_RAW_S)
#define USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_RAW_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_RAW_S  13
/** USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_RAW : R/WTC/SS; bitpos: [14]; default: 0;
 *  The raw interrupt bit turns to high level when level of GET LINE CODING request is
 *  received.
 */
#define USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_RAW    (BIT(14))
#define USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_RAW_M  (USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_RAW_V << USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_RAW_S)
#define USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_RAW_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_RAW_S  14
/** USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_RAW : R/WTC/SS; bitpos: [15]; default: 0;
 *  The raw interrupt bit turns to high level when level of SET LINE CODING request is
 *  received.
 */
#define USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_RAW    (BIT(15))
#define USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_RAW_M  (USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_RAW_V << USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_RAW_S)
#define USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_RAW_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_RAW_S  15

/** USB_DEVICE_INT_ST_REG register
 *  Interrupt status register.
 */
#define USB_DEVICE_INT_ST_REG (DR_REG_USB_DEVICE_BASE + 0xc)
/** USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_ST : RO; bitpos: [0]; default: 0;
 *  The raw interrupt status bit for the USB_DEVICE_JTAG_IN_FLUSH_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_ST    (BIT(0))
#define USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_ST_M  (USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_ST_V << USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_ST_S)
#define USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_ST_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_ST_S  0
/** USB_DEVICE_SERIAL_JTAG_SOF_INT_ST : RO; bitpos: [1]; default: 0;
 *  The raw interrupt status bit for the USB_DEVICE_SOF_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_SOF_INT_ST    (BIT(1))
#define USB_DEVICE_SERIAL_JTAG_SOF_INT_ST_M  (USB_DEVICE_SERIAL_JTAG_SOF_INT_ST_V << USB_DEVICE_SERIAL_JTAG_SOF_INT_ST_S)
#define USB_DEVICE_SERIAL_JTAG_SOF_INT_ST_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SOF_INT_ST_S  1
/** USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_ST : RO; bitpos: [2]; default: 0;
 *  The raw interrupt status bit for the USB_DEVICE_SERIAL_OUT_RECV_PKT_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_ST    (BIT(2))
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_ST_M  (USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_ST_V << USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_ST_S)
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_ST_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_ST_S  2
/** USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_ST : RO; bitpos: [3]; default: 0;
 *  The raw interrupt status bit for the USB_DEVICE_SERIAL_IN_EMPTY_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_ST    (BIT(3))
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_ST_M  (USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_ST_V << USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_ST_S)
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_ST_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_ST_S  3
/** USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_ST : RO; bitpos: [4]; default: 0;
 *  The raw interrupt status bit for the USB_DEVICE_PID_ERR_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_ST    (BIT(4))
#define USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_ST_M  (USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_ST_V << USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_ST_S)
#define USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_ST_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_ST_S  4
/** USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_ST : RO; bitpos: [5]; default: 0;
 *  The raw interrupt status bit for the USB_DEVICE_CRC5_ERR_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_ST    (BIT(5))
#define USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_ST_M  (USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_ST_V << USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_ST_S)
#define USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_ST_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_ST_S  5
/** USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_ST : RO; bitpos: [6]; default: 0;
 *  The raw interrupt status bit for the USB_DEVICE_CRC16_ERR_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_ST    (BIT(6))
#define USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_ST_M  (USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_ST_V << USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_ST_S)
#define USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_ST_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_ST_S  6
/** USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_ST : RO; bitpos: [7]; default: 0;
 *  The raw interrupt status bit for the USB_DEVICE_STUFF_ERR_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_ST    (BIT(7))
#define USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_ST_M  (USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_ST_V << USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_ST_S)
#define USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_ST_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_ST_S  7
/** USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_ST : RO; bitpos: [8]; default: 0;
 *  The raw interrupt status bit for the USB_DEVICE_IN_TOKEN_REC_IN_EP1_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_ST    (BIT(8))
#define USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_ST_M  (USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_ST_V << USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_ST_S)
#define USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_ST_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_ST_S  8
/** USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_ST : RO; bitpos: [9]; default: 0;
 *  The raw interrupt status bit for the USB_DEVICE_USB_BUS_RESET_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_ST    (BIT(9))
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_ST_M  (USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_ST_V << USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_ST_S)
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_ST_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_ST_S  9
/** USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_ST : RO; bitpos: [10]; default: 0;
 *  The raw interrupt status bit for the USB_DEVICE_OUT_EP1_ZERO_PAYLOAD_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_ST    (BIT(10))
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_ST_M  (USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_ST_V << USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_ST_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_ST_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_ST_S  10
/** USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_ST : RO; bitpos: [11]; default: 0;
 *  The raw interrupt status bit for the USB_DEVICE_OUT_EP2_ZERO_PAYLOAD_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_ST    (BIT(11))
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_ST_M  (USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_ST_V << USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_ST_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_ST_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_ST_S  11
/** USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_ST : RO; bitpos: [12]; default: 0;
 *  The raw interrupt status bit for the USB_DEVICE_RTS_CHG_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_ST    (BIT(12))
#define USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_ST_M  (USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_ST_V << USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_ST_S)
#define USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_ST_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_ST_S  12
/** USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_ST : RO; bitpos: [13]; default: 0;
 *  The raw interrupt status bit for the USB_DEVICE_DTR_CHG_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_ST    (BIT(13))
#define USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_ST_M  (USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_ST_V << USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_ST_S)
#define USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_ST_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_ST_S  13
/** USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_ST : RO; bitpos: [14]; default: 0;
 *  The raw interrupt status bit for the USB_DEVICE_GET_LINE_CODE_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_ST    (BIT(14))
#define USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_ST_M  (USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_ST_V << USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_ST_S)
#define USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_ST_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_ST_S  14
/** USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_ST : RO; bitpos: [15]; default: 0;
 *  The raw interrupt status bit for the USB_DEVICE_SET_LINE_CODE_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_ST    (BIT(15))
#define USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_ST_M  (USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_ST_V << USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_ST_S)
#define USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_ST_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_ST_S  15

/** USB_DEVICE_INT_ENA_REG register
 *  Interrupt enable status register.
 */
#define USB_DEVICE_INT_ENA_REG (DR_REG_USB_DEVICE_BASE + 0x10)
/** USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_ENA : R/W; bitpos: [0]; default: 0;
 *  The interrupt enable bit for the USB_DEVICE_JTAG_IN_FLUSH_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_ENA    (BIT(0))
#define USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_ENA_M  (USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_ENA_V << USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_ENA_S)
#define USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_ENA_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_ENA_S  0
/** USB_DEVICE_SERIAL_JTAG_SOF_INT_ENA : R/W; bitpos: [1]; default: 0;
 *  The interrupt enable bit for the USB_DEVICE_SOF_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_SOF_INT_ENA    (BIT(1))
#define USB_DEVICE_SERIAL_JTAG_SOF_INT_ENA_M  (USB_DEVICE_SERIAL_JTAG_SOF_INT_ENA_V << USB_DEVICE_SERIAL_JTAG_SOF_INT_ENA_S)
#define USB_DEVICE_SERIAL_JTAG_SOF_INT_ENA_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SOF_INT_ENA_S  1
/** USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_ENA : R/W; bitpos: [2]; default: 0;
 *  The interrupt enable bit for the USB_DEVICE_SERIAL_OUT_RECV_PKT_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_ENA    (BIT(2))
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_ENA_M  (USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_ENA_V << USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_ENA_S)
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_ENA_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_ENA_S  2
/** USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_ENA : R/W; bitpos: [3]; default: 0;
 *  The interrupt enable bit for the USB_DEVICE_SERIAL_IN_EMPTY_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_ENA    (BIT(3))
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_ENA_M  (USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_ENA_V << USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_ENA_S)
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_ENA_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_ENA_S  3
/** USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_ENA : R/W; bitpos: [4]; default: 0;
 *  The interrupt enable bit for the USB_DEVICE_PID_ERR_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_ENA    (BIT(4))
#define USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_ENA_M  (USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_ENA_V << USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_ENA_S)
#define USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_ENA_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_ENA_S  4
/** USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_ENA : R/W; bitpos: [5]; default: 0;
 *  The interrupt enable bit for the USB_DEVICE_CRC5_ERR_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_ENA    (BIT(5))
#define USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_ENA_M  (USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_ENA_V << USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_ENA_S)
#define USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_ENA_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_ENA_S  5
/** USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_ENA : R/W; bitpos: [6]; default: 0;
 *  The interrupt enable bit for the USB_DEVICE_CRC16_ERR_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_ENA    (BIT(6))
#define USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_ENA_M  (USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_ENA_V << USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_ENA_S)
#define USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_ENA_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_ENA_S  6
/** USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_ENA : R/W; bitpos: [7]; default: 0;
 *  The interrupt enable bit for the USB_DEVICE_STUFF_ERR_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_ENA    (BIT(7))
#define USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_ENA_M  (USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_ENA_V << USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_ENA_S)
#define USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_ENA_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_ENA_S  7
/** USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_ENA : R/W; bitpos: [8]; default: 0;
 *  The interrupt enable bit for the USB_DEVICE_IN_TOKEN_REC_IN_EP1_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_ENA    (BIT(8))
#define USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_ENA_M  (USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_ENA_V << USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_ENA_S)
#define USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_ENA_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_ENA_S  8
/** USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_ENA : R/W; bitpos: [9]; default: 0;
 *  The interrupt enable bit for the USB_DEVICE_USB_BUS_RESET_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_ENA    (BIT(9))
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_ENA_M  (USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_ENA_V << USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_ENA_S)
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_ENA_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_ENA_S  9
/** USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_ENA : R/W; bitpos: [10]; default: 0;
 *  The interrupt enable bit for the USB_DEVICE_OUT_EP1_ZERO_PAYLOAD_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_ENA    (BIT(10))
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_ENA_M  (USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_ENA_V << USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_ENA_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_ENA_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_ENA_S  10
/** USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_ENA : R/W; bitpos: [11]; default: 0;
 *  The interrupt enable bit for the USB_DEVICE_OUT_EP2_ZERO_PAYLOAD_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_ENA    (BIT(11))
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_ENA_M  (USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_ENA_V << USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_ENA_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_ENA_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_ENA_S  11
/** USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_ENA : R/W; bitpos: [12]; default: 0;
 *  The interrupt enable bit for the USB_DEVICE_RTS_CHG_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_ENA    (BIT(12))
#define USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_ENA_M  (USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_ENA_V << USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_ENA_S)
#define USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_ENA_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_ENA_S  12
/** USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_ENA : R/W; bitpos: [13]; default: 0;
 *  The interrupt enable bit for the USB_DEVICE_DTR_CHG_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_ENA    (BIT(13))
#define USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_ENA_M  (USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_ENA_V << USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_ENA_S)
#define USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_ENA_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_ENA_S  13
/** USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_ENA : R/W; bitpos: [14]; default: 0;
 *  The interrupt enable bit for the USB_DEVICE_GET_LINE_CODE_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_ENA    (BIT(14))
#define USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_ENA_M  (USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_ENA_V << USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_ENA_S)
#define USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_ENA_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_ENA_S  14
/** USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_ENA : R/W; bitpos: [15]; default: 0;
 *  The interrupt enable bit for the USB_DEVICE_SET_LINE_CODE_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_ENA    (BIT(15))
#define USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_ENA_M  (USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_ENA_V << USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_ENA_S)
#define USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_ENA_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_ENA_S  15

/** USB_DEVICE_INT_CLR_REG register
 *  Interrupt clear status register.
 */
#define USB_DEVICE_INT_CLR_REG (DR_REG_USB_DEVICE_BASE + 0x14)
/** USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_CLR : WT; bitpos: [0]; default: 0;
 *  Set this bit to clear the USB_DEVICE_JTAG_IN_FLUSH_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_CLR    (BIT(0))
#define USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_CLR_M  (USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_CLR_V << USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_CLR_S)
#define USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_CLR_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_JTAG_IN_FLUSH_INT_CLR_S  0
/** USB_DEVICE_SERIAL_JTAG_SOF_INT_CLR : WT; bitpos: [1]; default: 0;
 *  Set this bit to clear the USB_DEVICE_JTAG_SOF_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_SOF_INT_CLR    (BIT(1))
#define USB_DEVICE_SERIAL_JTAG_SOF_INT_CLR_M  (USB_DEVICE_SERIAL_JTAG_SOF_INT_CLR_V << USB_DEVICE_SERIAL_JTAG_SOF_INT_CLR_S)
#define USB_DEVICE_SERIAL_JTAG_SOF_INT_CLR_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SOF_INT_CLR_S  1
/** USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_CLR : WT; bitpos: [2]; default: 0;
 *  Set this bit to clear the USB_DEVICE_SERIAL_OUT_RECV_PKT_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_CLR    (BIT(2))
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_CLR_M  (USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_CLR_V << USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_CLR_S)
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_CLR_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_RECV_PKT_INT_CLR_S  2
/** USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_CLR : WT; bitpos: [3]; default: 0;
 *  Set this bit to clear the USB_DEVICE_SERIAL_IN_EMPTY_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_CLR    (BIT(3))
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_CLR_M  (USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_CLR_V << USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_CLR_S)
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_CLR_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_EMPTY_INT_CLR_S  3
/** USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_CLR : WT; bitpos: [4]; default: 0;
 *  Set this bit to clear the USB_DEVICE_PID_ERR_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_CLR    (BIT(4))
#define USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_CLR_M  (USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_CLR_V << USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_CLR_S)
#define USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_CLR_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_PID_ERR_INT_CLR_S  4
/** USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_CLR : WT; bitpos: [5]; default: 0;
 *  Set this bit to clear the USB_DEVICE_CRC5_ERR_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_CLR    (BIT(5))
#define USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_CLR_M  (USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_CLR_V << USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_CLR_S)
#define USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_CLR_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_CRC5_ERR_INT_CLR_S  5
/** USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_CLR : WT; bitpos: [6]; default: 0;
 *  Set this bit to clear the USB_DEVICE_CRC16_ERR_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_CLR    (BIT(6))
#define USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_CLR_M  (USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_CLR_V << USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_CLR_S)
#define USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_CLR_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_CRC16_ERR_INT_CLR_S  6
/** USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_CLR : WT; bitpos: [7]; default: 0;
 *  Set this bit to clear the USB_DEVICE_STUFF_ERR_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_CLR    (BIT(7))
#define USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_CLR_M  (USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_CLR_V << USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_CLR_S)
#define USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_CLR_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_STUFF_ERR_INT_CLR_S  7
/** USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_CLR : WT; bitpos: [8]; default: 0;
 *  Set this bit to clear the USB_DEVICE_IN_TOKEN_IN_EP1_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_CLR    (BIT(8))
#define USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_CLR_M  (USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_CLR_V << USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_CLR_S)
#define USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_CLR_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_IN_TOKEN_REC_IN_EP1_INT_CLR_S  8
/** USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_CLR : WT; bitpos: [9]; default: 0;
 *  Set this bit to clear the USB_DEVICE_USB_BUS_RESET_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_CLR    (BIT(9))
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_CLR_M  (USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_CLR_V << USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_CLR_S)
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_CLR_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_INT_CLR_S  9
/** USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_CLR : WT; bitpos: [10]; default: 0;
 *  Set this bit to clear the USB_DEVICE_OUT_EP1_ZERO_PAYLOAD_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_CLR    (BIT(10))
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_CLR_M  (USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_CLR_V << USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_CLR_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_CLR_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_ZERO_PAYLOAD_INT_CLR_S  10
/** USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_CLR : WT; bitpos: [11]; default: 0;
 *  Set this bit to clear the USB_DEVICE_OUT_EP2_ZERO_PAYLOAD_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_CLR    (BIT(11))
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_CLR_M  (USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_CLR_V << USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_CLR_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_CLR_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_ZERO_PAYLOAD_INT_CLR_S  11
/** USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_CLR : WT; bitpos: [12]; default: 0;
 *  Set this bit to clear the USB_DEVICE_RTS_CHG_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_CLR    (BIT(12))
#define USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_CLR_M  (USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_CLR_V << USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_CLR_S)
#define USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_CLR_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_RTS_CHG_INT_CLR_S  12
/** USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_CLR : WT; bitpos: [13]; default: 0;
 *  Set this bit to clear the USB_DEVICE_DTR_CHG_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_CLR    (BIT(13))
#define USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_CLR_M  (USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_CLR_V << USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_CLR_S)
#define USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_CLR_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_DTR_CHG_INT_CLR_S  13
/** USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_CLR : WT; bitpos: [14]; default: 0;
 *  Set this bit to clear the USB_DEVICE_GET_LINE_CODE_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_CLR    (BIT(14))
#define USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_CLR_M  (USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_CLR_V << USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_CLR_S)
#define USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_CLR_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_GET_LINE_CODE_INT_CLR_S  14
/** USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_CLR : WT; bitpos: [15]; default: 0;
 *  Set this bit to clear the USB_DEVICE_SET_LINE_CODE_INT interrupt.
 */
#define USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_CLR    (BIT(15))
#define USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_CLR_M  (USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_CLR_V << USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_CLR_S)
#define USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_CLR_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SET_LINE_CODE_INT_CLR_S  15

/** USB_DEVICE_CONF0_REG register
 *  PHY hardware configuration.
 */
#define USB_DEVICE_CONF0_REG (DR_REG_USB_DEVICE_BASE + 0x18)
/** USB_DEVICE_SERIAL_JTAG_PHY_SEL : R/W; bitpos: [0]; default: 0;
 *  Select internal/external PHY
 */
#define USB_DEVICE_SERIAL_JTAG_PHY_SEL    (BIT(0))
#define USB_DEVICE_SERIAL_JTAG_PHY_SEL_M  (USB_DEVICE_SERIAL_JTAG_PHY_SEL_V << USB_DEVICE_SERIAL_JTAG_PHY_SEL_S)
#define USB_DEVICE_SERIAL_JTAG_PHY_SEL_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_PHY_SEL_S  0
/** USB_DEVICE_SERIAL_JTAG_EXCHG_PINS_OVERRIDE : R/W; bitpos: [1]; default: 0;
 *  Enable software control USB D+ D- exchange
 */
#define USB_DEVICE_SERIAL_JTAG_EXCHG_PINS_OVERRIDE    (BIT(1))
#define USB_DEVICE_SERIAL_JTAG_EXCHG_PINS_OVERRIDE_M  (USB_DEVICE_SERIAL_JTAG_EXCHG_PINS_OVERRIDE_V << USB_DEVICE_SERIAL_JTAG_EXCHG_PINS_OVERRIDE_S)
#define USB_DEVICE_SERIAL_JTAG_EXCHG_PINS_OVERRIDE_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_EXCHG_PINS_OVERRIDE_S  1
/** USB_DEVICE_SERIAL_JTAG_EXCHG_PINS : R/W; bitpos: [2]; default: 0;
 *  USB D+ D- exchange
 */
#define USB_DEVICE_SERIAL_JTAG_EXCHG_PINS    (BIT(2))
#define USB_DEVICE_SERIAL_JTAG_EXCHG_PINS_M  (USB_DEVICE_SERIAL_JTAG_EXCHG_PINS_V << USB_DEVICE_SERIAL_JTAG_EXCHG_PINS_S)
#define USB_DEVICE_SERIAL_JTAG_EXCHG_PINS_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_EXCHG_PINS_S  2
/** USB_DEVICE_SERIAL_JTAG_VREFH : R/W; bitpos: [4:3]; default: 0;
 *  Control single-end input high threshold,1.76V to 2V, step 80mV
 */
#define USB_DEVICE_SERIAL_JTAG_VREFH    0x00000003U
#define USB_DEVICE_SERIAL_JTAG_VREFH_M  (USB_DEVICE_SERIAL_JTAG_VREFH_V << USB_DEVICE_SERIAL_JTAG_VREFH_S)
#define USB_DEVICE_SERIAL_JTAG_VREFH_V  0x00000003U
#define USB_DEVICE_SERIAL_JTAG_VREFH_S  3
/** USB_DEVICE_SERIAL_JTAG_VREFL : R/W; bitpos: [6:5]; default: 0;
 *  Control single-end input low threshold,0.8V to 1.04V, step 80mV
 */
#define USB_DEVICE_SERIAL_JTAG_VREFL    0x00000003U
#define USB_DEVICE_SERIAL_JTAG_VREFL_M  (USB_DEVICE_SERIAL_JTAG_VREFL_V << USB_DEVICE_SERIAL_JTAG_VREFL_S)
#define USB_DEVICE_SERIAL_JTAG_VREFL_V  0x00000003U
#define USB_DEVICE_SERIAL_JTAG_VREFL_S  5
/** USB_DEVICE_SERIAL_JTAG_VREF_OVERRIDE : R/W; bitpos: [7]; default: 0;
 *  Enable software control input  threshold
 */
#define USB_DEVICE_SERIAL_JTAG_VREF_OVERRIDE    (BIT(7))
#define USB_DEVICE_SERIAL_JTAG_VREF_OVERRIDE_M  (USB_DEVICE_SERIAL_JTAG_VREF_OVERRIDE_V << USB_DEVICE_SERIAL_JTAG_VREF_OVERRIDE_S)
#define USB_DEVICE_SERIAL_JTAG_VREF_OVERRIDE_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_VREF_OVERRIDE_S  7
/** USB_DEVICE_SERIAL_JTAG_PAD_PULL_OVERRIDE : R/W; bitpos: [8]; default: 0;
 *  Enable software control USB D+ D- pullup pulldown
 */
#define USB_DEVICE_SERIAL_JTAG_PAD_PULL_OVERRIDE    (BIT(8))
#define USB_DEVICE_SERIAL_JTAG_PAD_PULL_OVERRIDE_M  (USB_DEVICE_SERIAL_JTAG_PAD_PULL_OVERRIDE_V << USB_DEVICE_SERIAL_JTAG_PAD_PULL_OVERRIDE_S)
#define USB_DEVICE_SERIAL_JTAG_PAD_PULL_OVERRIDE_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_PAD_PULL_OVERRIDE_S  8
/** USB_DEVICE_SERIAL_JTAG_DP_PULLUP : R/W; bitpos: [9]; default: 1;
 *  Control USB D+ pull up.
 */
#define USB_DEVICE_SERIAL_JTAG_DP_PULLUP    (BIT(9))
#define USB_DEVICE_SERIAL_JTAG_DP_PULLUP_M  (USB_DEVICE_SERIAL_JTAG_DP_PULLUP_V << USB_DEVICE_SERIAL_JTAG_DP_PULLUP_S)
#define USB_DEVICE_SERIAL_JTAG_DP_PULLUP_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_DP_PULLUP_S  9
/** USB_DEVICE_SERIAL_JTAG_DP_PULLDOWN : R/W; bitpos: [10]; default: 0;
 *  Control USB D+ pull down.
 */
#define USB_DEVICE_SERIAL_JTAG_DP_PULLDOWN    (BIT(10))
#define USB_DEVICE_SERIAL_JTAG_DP_PULLDOWN_M  (USB_DEVICE_SERIAL_JTAG_DP_PULLDOWN_V << USB_DEVICE_SERIAL_JTAG_DP_PULLDOWN_S)
#define USB_DEVICE_SERIAL_JTAG_DP_PULLDOWN_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_DP_PULLDOWN_S  10
/** USB_DEVICE_SERIAL_JTAG_DM_PULLUP : R/W; bitpos: [11]; default: 0;
 *  Control USB D- pull up.
 */
#define USB_DEVICE_SERIAL_JTAG_DM_PULLUP    (BIT(11))
#define USB_DEVICE_SERIAL_JTAG_DM_PULLUP_M  (USB_DEVICE_SERIAL_JTAG_DM_PULLUP_V << USB_DEVICE_SERIAL_JTAG_DM_PULLUP_S)
#define USB_DEVICE_SERIAL_JTAG_DM_PULLUP_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_DM_PULLUP_S  11
/** USB_DEVICE_SERIAL_JTAG_DM_PULLDOWN : R/W; bitpos: [12]; default: 0;
 *  Control USB D- pull down.
 */
#define USB_DEVICE_SERIAL_JTAG_DM_PULLDOWN    (BIT(12))
#define USB_DEVICE_SERIAL_JTAG_DM_PULLDOWN_M  (USB_DEVICE_SERIAL_JTAG_DM_PULLDOWN_V << USB_DEVICE_SERIAL_JTAG_DM_PULLDOWN_S)
#define USB_DEVICE_SERIAL_JTAG_DM_PULLDOWN_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_DM_PULLDOWN_S  12
/** USB_DEVICE_SERIAL_JTAG_PULLUP_VALUE : R/W; bitpos: [13]; default: 0;
 *  Control pull up value.
 */
#define USB_DEVICE_SERIAL_JTAG_PULLUP_VALUE    (BIT(13))
#define USB_DEVICE_SERIAL_JTAG_PULLUP_VALUE_M  (USB_DEVICE_SERIAL_JTAG_PULLUP_VALUE_V << USB_DEVICE_SERIAL_JTAG_PULLUP_VALUE_S)
#define USB_DEVICE_SERIAL_JTAG_PULLUP_VALUE_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_PULLUP_VALUE_S  13
/** USB_DEVICE_SERIAL_JTAG_USB_PAD_ENABLE : R/W; bitpos: [14]; default: 1;
 *  Enable USB pad function.
 */
#define USB_DEVICE_SERIAL_JTAG_USB_PAD_ENABLE    (BIT(14))
#define USB_DEVICE_SERIAL_JTAG_USB_PAD_ENABLE_M  (USB_DEVICE_SERIAL_JTAG_USB_PAD_ENABLE_V << USB_DEVICE_SERIAL_JTAG_USB_PAD_ENABLE_S)
#define USB_DEVICE_SERIAL_JTAG_USB_PAD_ENABLE_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_USB_PAD_ENABLE_S  14
/** USB_DEVICE_SERIAL_JTAG_USB_JTAG_BRIDGE_EN : R/W; bitpos: [15]; default: 0;
 *  Set this bit usb_jtag, the connection between usb_jtag and internal JTAG is
 *  disconnected, and MTMS, MTDI, MTCK are output through GPIO Matrix, MTDO is input
 *  through GPIO Matrix.
 */
#define USB_DEVICE_SERIAL_JTAG_USB_JTAG_BRIDGE_EN    (BIT(15))
#define USB_DEVICE_SERIAL_JTAG_USB_JTAG_BRIDGE_EN_M  (USB_DEVICE_SERIAL_JTAG_USB_JTAG_BRIDGE_EN_V << USB_DEVICE_SERIAL_JTAG_USB_JTAG_BRIDGE_EN_S)
#define USB_DEVICE_SERIAL_JTAG_USB_JTAG_BRIDGE_EN_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_USB_JTAG_BRIDGE_EN_S  15

/** USB_DEVICE_TEST_REG register
 *  Registers used for debugging the PHY.
 */
#define USB_DEVICE_TEST_REG (DR_REG_USB_DEVICE_BASE + 0x1c)
/** USB_DEVICE_SERIAL_JTAG_TEST_ENABLE : R/W; bitpos: [0]; default: 0;
 *  Enable test of the USB pad
 */
#define USB_DEVICE_SERIAL_JTAG_TEST_ENABLE    (BIT(0))
#define USB_DEVICE_SERIAL_JTAG_TEST_ENABLE_M  (USB_DEVICE_SERIAL_JTAG_TEST_ENABLE_V << USB_DEVICE_SERIAL_JTAG_TEST_ENABLE_S)
#define USB_DEVICE_SERIAL_JTAG_TEST_ENABLE_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_TEST_ENABLE_S  0
/** USB_DEVICE_SERIAL_JTAG_TEST_USB_OE : R/W; bitpos: [1]; default: 0;
 *  USB pad oen in test
 */
#define USB_DEVICE_SERIAL_JTAG_TEST_USB_OE    (BIT(1))
#define USB_DEVICE_SERIAL_JTAG_TEST_USB_OE_M  (USB_DEVICE_SERIAL_JTAG_TEST_USB_OE_V << USB_DEVICE_SERIAL_JTAG_TEST_USB_OE_S)
#define USB_DEVICE_SERIAL_JTAG_TEST_USB_OE_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_TEST_USB_OE_S  1
/** USB_DEVICE_SERIAL_JTAG_TEST_TX_DP : R/W; bitpos: [2]; default: 0;
 *  USB D+ tx value in test
 */
#define USB_DEVICE_SERIAL_JTAG_TEST_TX_DP    (BIT(2))
#define USB_DEVICE_SERIAL_JTAG_TEST_TX_DP_M  (USB_DEVICE_SERIAL_JTAG_TEST_TX_DP_V << USB_DEVICE_SERIAL_JTAG_TEST_TX_DP_S)
#define USB_DEVICE_SERIAL_JTAG_TEST_TX_DP_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_TEST_TX_DP_S  2
/** USB_DEVICE_SERIAL_JTAG_TEST_TX_DM : R/W; bitpos: [3]; default: 0;
 *  USB D- tx value in test
 */
#define USB_DEVICE_SERIAL_JTAG_TEST_TX_DM    (BIT(3))
#define USB_DEVICE_SERIAL_JTAG_TEST_TX_DM_M  (USB_DEVICE_SERIAL_JTAG_TEST_TX_DM_V << USB_DEVICE_SERIAL_JTAG_TEST_TX_DM_S)
#define USB_DEVICE_SERIAL_JTAG_TEST_TX_DM_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_TEST_TX_DM_S  3
/** USB_DEVICE_SERIAL_JTAG_TEST_RX_RCV : RO; bitpos: [4]; default: 1;
 *  USB RCV value in test
 */
#define USB_DEVICE_SERIAL_JTAG_TEST_RX_RCV    (BIT(4))
#define USB_DEVICE_SERIAL_JTAG_TEST_RX_RCV_M  (USB_DEVICE_SERIAL_JTAG_TEST_RX_RCV_V << USB_DEVICE_SERIAL_JTAG_TEST_RX_RCV_S)
#define USB_DEVICE_SERIAL_JTAG_TEST_RX_RCV_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_TEST_RX_RCV_S  4
/** USB_DEVICE_SERIAL_JTAG_TEST_RX_DP : RO; bitpos: [5]; default: 1;
 *  USB D+ rx value in test
 */
#define USB_DEVICE_SERIAL_JTAG_TEST_RX_DP    (BIT(5))
#define USB_DEVICE_SERIAL_JTAG_TEST_RX_DP_M  (USB_DEVICE_SERIAL_JTAG_TEST_RX_DP_V << USB_DEVICE_SERIAL_JTAG_TEST_RX_DP_S)
#define USB_DEVICE_SERIAL_JTAG_TEST_RX_DP_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_TEST_RX_DP_S  5
/** USB_DEVICE_SERIAL_JTAG_TEST_RX_DM : RO; bitpos: [6]; default: 0;
 *  USB D- rx value in test
 */
#define USB_DEVICE_SERIAL_JTAG_TEST_RX_DM    (BIT(6))
#define USB_DEVICE_SERIAL_JTAG_TEST_RX_DM_M  (USB_DEVICE_SERIAL_JTAG_TEST_RX_DM_V << USB_DEVICE_SERIAL_JTAG_TEST_RX_DM_S)
#define USB_DEVICE_SERIAL_JTAG_TEST_RX_DM_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_TEST_RX_DM_S  6

/** USB_DEVICE_JFIFO_ST_REG register
 *  JTAG FIFO status and control registers.
 */
#define USB_DEVICE_JFIFO_ST_REG (DR_REG_USB_DEVICE_BASE + 0x20)
/** USB_DEVICE_SERIAL_JTAG_IN_FIFO_CNT : RO; bitpos: [1:0]; default: 0;
 *  JTAT in fifo counter.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_FIFO_CNT    0x00000003U
#define USB_DEVICE_SERIAL_JTAG_IN_FIFO_CNT_M  (USB_DEVICE_SERIAL_JTAG_IN_FIFO_CNT_V << USB_DEVICE_SERIAL_JTAG_IN_FIFO_CNT_S)
#define USB_DEVICE_SERIAL_JTAG_IN_FIFO_CNT_V  0x00000003U
#define USB_DEVICE_SERIAL_JTAG_IN_FIFO_CNT_S  0
/** USB_DEVICE_SERIAL_JTAG_IN_FIFO_EMPTY : RO; bitpos: [2]; default: 1;
 *  1: JTAG in fifo is empty.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_FIFO_EMPTY    (BIT(2))
#define USB_DEVICE_SERIAL_JTAG_IN_FIFO_EMPTY_M  (USB_DEVICE_SERIAL_JTAG_IN_FIFO_EMPTY_V << USB_DEVICE_SERIAL_JTAG_IN_FIFO_EMPTY_S)
#define USB_DEVICE_SERIAL_JTAG_IN_FIFO_EMPTY_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_IN_FIFO_EMPTY_S  2
/** USB_DEVICE_SERIAL_JTAG_IN_FIFO_FULL : RO; bitpos: [3]; default: 0;
 *  1: JTAG in fifo is full.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_FIFO_FULL    (BIT(3))
#define USB_DEVICE_SERIAL_JTAG_IN_FIFO_FULL_M  (USB_DEVICE_SERIAL_JTAG_IN_FIFO_FULL_V << USB_DEVICE_SERIAL_JTAG_IN_FIFO_FULL_S)
#define USB_DEVICE_SERIAL_JTAG_IN_FIFO_FULL_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_IN_FIFO_FULL_S  3
/** USB_DEVICE_SERIAL_JTAG_OUT_FIFO_CNT : RO; bitpos: [5:4]; default: 0;
 *  JTAT out fifo counter.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_FIFO_CNT    0x00000003U
#define USB_DEVICE_SERIAL_JTAG_OUT_FIFO_CNT_M  (USB_DEVICE_SERIAL_JTAG_OUT_FIFO_CNT_V << USB_DEVICE_SERIAL_JTAG_OUT_FIFO_CNT_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_FIFO_CNT_V  0x00000003U
#define USB_DEVICE_SERIAL_JTAG_OUT_FIFO_CNT_S  4
/** USB_DEVICE_SERIAL_JTAG_OUT_FIFO_EMPTY : RO; bitpos: [6]; default: 1;
 *  1: JTAG out fifo is empty.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_FIFO_EMPTY    (BIT(6))
#define USB_DEVICE_SERIAL_JTAG_OUT_FIFO_EMPTY_M  (USB_DEVICE_SERIAL_JTAG_OUT_FIFO_EMPTY_V << USB_DEVICE_SERIAL_JTAG_OUT_FIFO_EMPTY_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_FIFO_EMPTY_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_OUT_FIFO_EMPTY_S  6
/** USB_DEVICE_SERIAL_JTAG_OUT_FIFO_FULL : RO; bitpos: [7]; default: 0;
 *  1: JTAG out fifo is full.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_FIFO_FULL    (BIT(7))
#define USB_DEVICE_SERIAL_JTAG_OUT_FIFO_FULL_M  (USB_DEVICE_SERIAL_JTAG_OUT_FIFO_FULL_V << USB_DEVICE_SERIAL_JTAG_OUT_FIFO_FULL_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_FIFO_FULL_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_OUT_FIFO_FULL_S  7
/** USB_DEVICE_SERIAL_JTAG_IN_FIFO_RESET : R/W; bitpos: [8]; default: 0;
 *  Write 1 to reset JTAG in fifo.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_FIFO_RESET    (BIT(8))
#define USB_DEVICE_SERIAL_JTAG_IN_FIFO_RESET_M  (USB_DEVICE_SERIAL_JTAG_IN_FIFO_RESET_V << USB_DEVICE_SERIAL_JTAG_IN_FIFO_RESET_S)
#define USB_DEVICE_SERIAL_JTAG_IN_FIFO_RESET_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_IN_FIFO_RESET_S  8
/** USB_DEVICE_SERIAL_JTAG_OUT_FIFO_RESET : R/W; bitpos: [9]; default: 0;
 *  Write 1 to reset JTAG out fifo.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_FIFO_RESET    (BIT(9))
#define USB_DEVICE_SERIAL_JTAG_OUT_FIFO_RESET_M  (USB_DEVICE_SERIAL_JTAG_OUT_FIFO_RESET_V << USB_DEVICE_SERIAL_JTAG_OUT_FIFO_RESET_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_FIFO_RESET_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_OUT_FIFO_RESET_S  9

/** USB_DEVICE_FRAM_NUM_REG register
 *  Last received SOF frame index register.
 */
#define USB_DEVICE_FRAM_NUM_REG (DR_REG_USB_DEVICE_BASE + 0x24)
/** USB_DEVICE_SERIAL_JTAG_SOF_FRAME_INDEX : RO; bitpos: [10:0]; default: 0;
 *  Frame index of received SOF frame.
 */
#define USB_DEVICE_SERIAL_JTAG_SOF_FRAME_INDEX    0x000007FFU
#define USB_DEVICE_SERIAL_JTAG_SOF_FRAME_INDEX_M  (USB_DEVICE_SERIAL_JTAG_SOF_FRAME_INDEX_V << USB_DEVICE_SERIAL_JTAG_SOF_FRAME_INDEX_S)
#define USB_DEVICE_SERIAL_JTAG_SOF_FRAME_INDEX_V  0x000007FFU
#define USB_DEVICE_SERIAL_JTAG_SOF_FRAME_INDEX_S  0

/** USB_DEVICE_IN_EP0_ST_REG register
 *  Control IN endpoint status information.
 */
#define USB_DEVICE_IN_EP0_ST_REG (DR_REG_USB_DEVICE_BASE + 0x28)
/** USB_DEVICE_SERIAL_JTAG_IN_EP0_STATE : RO; bitpos: [1:0]; default: 1;
 *  State of IN Endpoint 0.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_EP0_STATE    0x00000003U
#define USB_DEVICE_SERIAL_JTAG_IN_EP0_STATE_M  (USB_DEVICE_SERIAL_JTAG_IN_EP0_STATE_V << USB_DEVICE_SERIAL_JTAG_IN_EP0_STATE_S)
#define USB_DEVICE_SERIAL_JTAG_IN_EP0_STATE_V  0x00000003U
#define USB_DEVICE_SERIAL_JTAG_IN_EP0_STATE_S  0
/** USB_DEVICE_SERIAL_JTAG_IN_EP0_WR_ADDR : RO; bitpos: [8:2]; default: 0;
 *  Write data address of IN endpoint 0.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_EP0_WR_ADDR    0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_IN_EP0_WR_ADDR_M  (USB_DEVICE_SERIAL_JTAG_IN_EP0_WR_ADDR_V << USB_DEVICE_SERIAL_JTAG_IN_EP0_WR_ADDR_S)
#define USB_DEVICE_SERIAL_JTAG_IN_EP0_WR_ADDR_V  0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_IN_EP0_WR_ADDR_S  2
/** USB_DEVICE_SERIAL_JTAG_IN_EP0_RD_ADDR : RO; bitpos: [15:9]; default: 0;
 *  Read data address of IN endpoint 0.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_EP0_RD_ADDR    0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_IN_EP0_RD_ADDR_M  (USB_DEVICE_SERIAL_JTAG_IN_EP0_RD_ADDR_V << USB_DEVICE_SERIAL_JTAG_IN_EP0_RD_ADDR_S)
#define USB_DEVICE_SERIAL_JTAG_IN_EP0_RD_ADDR_V  0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_IN_EP0_RD_ADDR_S  9

/** USB_DEVICE_IN_EP1_ST_REG register
 *  CDC-ACM IN endpoint status information.
 */
#define USB_DEVICE_IN_EP1_ST_REG (DR_REG_USB_DEVICE_BASE + 0x2c)
/** USB_DEVICE_SERIAL_JTAG_IN_EP1_STATE : RO; bitpos: [1:0]; default: 1;
 *  State of IN Endpoint 1.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_EP1_STATE    0x00000003U
#define USB_DEVICE_SERIAL_JTAG_IN_EP1_STATE_M  (USB_DEVICE_SERIAL_JTAG_IN_EP1_STATE_V << USB_DEVICE_SERIAL_JTAG_IN_EP1_STATE_S)
#define USB_DEVICE_SERIAL_JTAG_IN_EP1_STATE_V  0x00000003U
#define USB_DEVICE_SERIAL_JTAG_IN_EP1_STATE_S  0
/** USB_DEVICE_SERIAL_JTAG_IN_EP1_WR_ADDR : RO; bitpos: [8:2]; default: 0;
 *  Write data address of IN endpoint 1.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_EP1_WR_ADDR    0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_IN_EP1_WR_ADDR_M  (USB_DEVICE_SERIAL_JTAG_IN_EP1_WR_ADDR_V << USB_DEVICE_SERIAL_JTAG_IN_EP1_WR_ADDR_S)
#define USB_DEVICE_SERIAL_JTAG_IN_EP1_WR_ADDR_V  0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_IN_EP1_WR_ADDR_S  2
/** USB_DEVICE_SERIAL_JTAG_IN_EP1_RD_ADDR : RO; bitpos: [15:9]; default: 0;
 *  Read data address of IN endpoint 1.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_EP1_RD_ADDR    0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_IN_EP1_RD_ADDR_M  (USB_DEVICE_SERIAL_JTAG_IN_EP1_RD_ADDR_V << USB_DEVICE_SERIAL_JTAG_IN_EP1_RD_ADDR_S)
#define USB_DEVICE_SERIAL_JTAG_IN_EP1_RD_ADDR_V  0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_IN_EP1_RD_ADDR_S  9

/** USB_DEVICE_IN_EP2_ST_REG register
 *  CDC-ACM interrupt IN endpoint status information.
 */
#define USB_DEVICE_IN_EP2_ST_REG (DR_REG_USB_DEVICE_BASE + 0x30)
/** USB_DEVICE_SERIAL_JTAG_IN_EP2_STATE : RO; bitpos: [1:0]; default: 1;
 *  State of IN Endpoint 2.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_EP2_STATE    0x00000003U
#define USB_DEVICE_SERIAL_JTAG_IN_EP2_STATE_M  (USB_DEVICE_SERIAL_JTAG_IN_EP2_STATE_V << USB_DEVICE_SERIAL_JTAG_IN_EP2_STATE_S)
#define USB_DEVICE_SERIAL_JTAG_IN_EP2_STATE_V  0x00000003U
#define USB_DEVICE_SERIAL_JTAG_IN_EP2_STATE_S  0
/** USB_DEVICE_SERIAL_JTAG_IN_EP2_WR_ADDR : RO; bitpos: [8:2]; default: 0;
 *  Write data address of IN endpoint 2.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_EP2_WR_ADDR    0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_IN_EP2_WR_ADDR_M  (USB_DEVICE_SERIAL_JTAG_IN_EP2_WR_ADDR_V << USB_DEVICE_SERIAL_JTAG_IN_EP2_WR_ADDR_S)
#define USB_DEVICE_SERIAL_JTAG_IN_EP2_WR_ADDR_V  0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_IN_EP2_WR_ADDR_S  2
/** USB_DEVICE_SERIAL_JTAG_IN_EP2_RD_ADDR : RO; bitpos: [15:9]; default: 0;
 *  Read data address of IN endpoint 2.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_EP2_RD_ADDR    0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_IN_EP2_RD_ADDR_M  (USB_DEVICE_SERIAL_JTAG_IN_EP2_RD_ADDR_V << USB_DEVICE_SERIAL_JTAG_IN_EP2_RD_ADDR_S)
#define USB_DEVICE_SERIAL_JTAG_IN_EP2_RD_ADDR_V  0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_IN_EP2_RD_ADDR_S  9

/** USB_DEVICE_IN_EP3_ST_REG register
 *  JTAG IN endpoint status information.
 */
#define USB_DEVICE_IN_EP3_ST_REG (DR_REG_USB_DEVICE_BASE + 0x34)
/** USB_DEVICE_SERIAL_JTAG_IN_EP3_STATE : RO; bitpos: [1:0]; default: 1;
 *  State of IN Endpoint 3.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_EP3_STATE    0x00000003U
#define USB_DEVICE_SERIAL_JTAG_IN_EP3_STATE_M  (USB_DEVICE_SERIAL_JTAG_IN_EP3_STATE_V << USB_DEVICE_SERIAL_JTAG_IN_EP3_STATE_S)
#define USB_DEVICE_SERIAL_JTAG_IN_EP3_STATE_V  0x00000003U
#define USB_DEVICE_SERIAL_JTAG_IN_EP3_STATE_S  0
/** USB_DEVICE_SERIAL_JTAG_IN_EP3_WR_ADDR : RO; bitpos: [8:2]; default: 0;
 *  Write data address of IN endpoint 3.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_EP3_WR_ADDR    0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_IN_EP3_WR_ADDR_M  (USB_DEVICE_SERIAL_JTAG_IN_EP3_WR_ADDR_V << USB_DEVICE_SERIAL_JTAG_IN_EP3_WR_ADDR_S)
#define USB_DEVICE_SERIAL_JTAG_IN_EP3_WR_ADDR_V  0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_IN_EP3_WR_ADDR_S  2
/** USB_DEVICE_SERIAL_JTAG_IN_EP3_RD_ADDR : RO; bitpos: [15:9]; default: 0;
 *  Read data address of IN endpoint 3.
 */
#define USB_DEVICE_SERIAL_JTAG_IN_EP3_RD_ADDR    0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_IN_EP3_RD_ADDR_M  (USB_DEVICE_SERIAL_JTAG_IN_EP3_RD_ADDR_V << USB_DEVICE_SERIAL_JTAG_IN_EP3_RD_ADDR_S)
#define USB_DEVICE_SERIAL_JTAG_IN_EP3_RD_ADDR_V  0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_IN_EP3_RD_ADDR_S  9

/** USB_DEVICE_OUT_EP0_ST_REG register
 *  Control OUT endpoint status information.
 */
#define USB_DEVICE_OUT_EP0_ST_REG (DR_REG_USB_DEVICE_BASE + 0x38)
/** USB_DEVICE_SERIAL_JTAG_OUT_EP0_STATE : RO; bitpos: [1:0]; default: 0;
 *  State of OUT Endpoint 0.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_EP0_STATE    0x00000003U
#define USB_DEVICE_SERIAL_JTAG_OUT_EP0_STATE_M  (USB_DEVICE_SERIAL_JTAG_OUT_EP0_STATE_V << USB_DEVICE_SERIAL_JTAG_OUT_EP0_STATE_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_EP0_STATE_V  0x00000003U
#define USB_DEVICE_SERIAL_JTAG_OUT_EP0_STATE_S  0
/** USB_DEVICE_SERIAL_JTAG_OUT_EP0_WR_ADDR : RO; bitpos: [8:2]; default: 0;
 *  Write data address of OUT endpoint 0. When USB_DEVICE_SERIAL_OUT_RECV_PKT_INT is
 *  detected, there are USB_DEVICE_OUT_EP0_WR_ADDR-2 bytes data in OUT EP0.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_EP0_WR_ADDR    0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_OUT_EP0_WR_ADDR_M  (USB_DEVICE_SERIAL_JTAG_OUT_EP0_WR_ADDR_V << USB_DEVICE_SERIAL_JTAG_OUT_EP0_WR_ADDR_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_EP0_WR_ADDR_V  0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_OUT_EP0_WR_ADDR_S  2
/** USB_DEVICE_SERIAL_JTAG_OUT_EP0_RD_ADDR : RO; bitpos: [15:9]; default: 0;
 *  Read data address of OUT endpoint 0.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_EP0_RD_ADDR    0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_OUT_EP0_RD_ADDR_M  (USB_DEVICE_SERIAL_JTAG_OUT_EP0_RD_ADDR_V << USB_DEVICE_SERIAL_JTAG_OUT_EP0_RD_ADDR_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_EP0_RD_ADDR_V  0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_OUT_EP0_RD_ADDR_S  9

/** USB_DEVICE_OUT_EP1_ST_REG register
 *  CDC-ACM OUT endpoint status information.
 */
#define USB_DEVICE_OUT_EP1_ST_REG (DR_REG_USB_DEVICE_BASE + 0x3c)
/** USB_DEVICE_SERIAL_JTAG_OUT_EP1_STATE : RO; bitpos: [1:0]; default: 0;
 *  State of OUT Endpoint 1.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_STATE    0x00000003U
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_STATE_M  (USB_DEVICE_SERIAL_JTAG_OUT_EP1_STATE_V << USB_DEVICE_SERIAL_JTAG_OUT_EP1_STATE_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_STATE_V  0x00000003U
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_STATE_S  0
/** USB_DEVICE_SERIAL_JTAG_OUT_EP1_WR_ADDR : RO; bitpos: [8:2]; default: 0;
 *  Write data address of OUT endpoint 1. When USB_DEVICE_SERIAL_OUT_RECV_PKT_INT is
 *  detected, there are USB_DEVICE_OUT_EP1_WR_ADDR-2 bytes data in OUT EP1.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_WR_ADDR    0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_WR_ADDR_M  (USB_DEVICE_SERIAL_JTAG_OUT_EP1_WR_ADDR_V << USB_DEVICE_SERIAL_JTAG_OUT_EP1_WR_ADDR_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_WR_ADDR_V  0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_WR_ADDR_S  2
/** USB_DEVICE_SERIAL_JTAG_OUT_EP1_RD_ADDR : RO; bitpos: [15:9]; default: 0;
 *  Read data address of OUT endpoint 1.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_RD_ADDR    0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_RD_ADDR_M  (USB_DEVICE_SERIAL_JTAG_OUT_EP1_RD_ADDR_V << USB_DEVICE_SERIAL_JTAG_OUT_EP1_RD_ADDR_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_RD_ADDR_V  0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_RD_ADDR_S  9
/** USB_DEVICE_SERIAL_JTAG_OUT_EP1_REC_DATA_CNT : RO; bitpos: [22:16]; default: 0;
 *  Data count in OUT endpoint 1 when one packet is received.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_REC_DATA_CNT    0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_REC_DATA_CNT_M  (USB_DEVICE_SERIAL_JTAG_OUT_EP1_REC_DATA_CNT_V << USB_DEVICE_SERIAL_JTAG_OUT_EP1_REC_DATA_CNT_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_REC_DATA_CNT_V  0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_OUT_EP1_REC_DATA_CNT_S  16

/** USB_DEVICE_OUT_EP2_ST_REG register
 *  JTAG OUT endpoint status information.
 */
#define USB_DEVICE_OUT_EP2_ST_REG (DR_REG_USB_DEVICE_BASE + 0x40)
/** USB_DEVICE_SERIAL_JTAG_OUT_EP2_STATE : RO; bitpos: [1:0]; default: 0;
 *  State of OUT Endpoint 2.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_STATE    0x00000003U
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_STATE_M  (USB_DEVICE_SERIAL_JTAG_OUT_EP2_STATE_V << USB_DEVICE_SERIAL_JTAG_OUT_EP2_STATE_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_STATE_V  0x00000003U
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_STATE_S  0
/** USB_DEVICE_SERIAL_JTAG_OUT_EP2_WR_ADDR : RO; bitpos: [8:2]; default: 0;
 *  Write data address of OUT endpoint 2. When USB_DEVICE_SERIAL_OUT_RECV_PKT_INT is
 *  detected, there are USB_DEVICE_OUT_EP2_WR_ADDR-2 bytes data in OUT EP2.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_WR_ADDR    0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_WR_ADDR_M  (USB_DEVICE_SERIAL_JTAG_OUT_EP2_WR_ADDR_V << USB_DEVICE_SERIAL_JTAG_OUT_EP2_WR_ADDR_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_WR_ADDR_V  0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_WR_ADDR_S  2
/** USB_DEVICE_SERIAL_JTAG_OUT_EP2_RD_ADDR : RO; bitpos: [15:9]; default: 0;
 *  Read data address of OUT endpoint 2.
 */
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_RD_ADDR    0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_RD_ADDR_M  (USB_DEVICE_SERIAL_JTAG_OUT_EP2_RD_ADDR_V << USB_DEVICE_SERIAL_JTAG_OUT_EP2_RD_ADDR_S)
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_RD_ADDR_V  0x0000007FU
#define USB_DEVICE_SERIAL_JTAG_OUT_EP2_RD_ADDR_S  9

/** USB_DEVICE_MISC_CONF_REG register
 *  Clock enable control
 */
#define USB_DEVICE_MISC_CONF_REG (DR_REG_USB_DEVICE_BASE + 0x44)
/** USB_DEVICE_SERIAL_JTAG_CLK_EN : R/W; bitpos: [0]; default: 0;
 *  1'h1: Force clock on for register. 1'h0: Support clock only when application writes
 *  registers.
 */
#define USB_DEVICE_SERIAL_JTAG_CLK_EN    (BIT(0))
#define USB_DEVICE_SERIAL_JTAG_CLK_EN_M  (USB_DEVICE_SERIAL_JTAG_CLK_EN_V << USB_DEVICE_SERIAL_JTAG_CLK_EN_S)
#define USB_DEVICE_SERIAL_JTAG_CLK_EN_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_CLK_EN_S  0

/** USB_DEVICE_MEM_CONF_REG register
 *  Memory power control
 */
#define USB_DEVICE_MEM_CONF_REG (DR_REG_USB_DEVICE_BASE + 0x48)
/** USB_DEVICE_SERIAL_JTAG_USB_MEM_PD : R/W; bitpos: [0]; default: 0;
 *  1: power down usb memory.
 */
#define USB_DEVICE_SERIAL_JTAG_USB_MEM_PD    (BIT(0))
#define USB_DEVICE_SERIAL_JTAG_USB_MEM_PD_M  (USB_DEVICE_SERIAL_JTAG_USB_MEM_PD_V << USB_DEVICE_SERIAL_JTAG_USB_MEM_PD_S)
#define USB_DEVICE_SERIAL_JTAG_USB_MEM_PD_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_USB_MEM_PD_S  0
/** USB_DEVICE_SERIAL_JTAG_USB_MEM_CLK_EN : R/W; bitpos: [1]; default: 1;
 *  1: Force clock on for usb memory.
 */
#define USB_DEVICE_SERIAL_JTAG_USB_MEM_CLK_EN    (BIT(1))
#define USB_DEVICE_SERIAL_JTAG_USB_MEM_CLK_EN_M  (USB_DEVICE_SERIAL_JTAG_USB_MEM_CLK_EN_V << USB_DEVICE_SERIAL_JTAG_USB_MEM_CLK_EN_S)
#define USB_DEVICE_SERIAL_JTAG_USB_MEM_CLK_EN_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_USB_MEM_CLK_EN_S  1

/** USB_DEVICE_CHIP_RST_REG register
 *  CDC-ACM chip reset control.
 */
#define USB_DEVICE_CHIP_RST_REG (DR_REG_USB_DEVICE_BASE + 0x4c)
/** USB_DEVICE_SERIAL_JTAG_RTS : RO; bitpos: [0]; default: 0;
 *  1: Chip reset is detected from usb serial channel. Software write 1 to clear it.
 */
#define USB_DEVICE_SERIAL_JTAG_RTS    (BIT(0))
#define USB_DEVICE_SERIAL_JTAG_RTS_M  (USB_DEVICE_SERIAL_JTAG_RTS_V << USB_DEVICE_SERIAL_JTAG_RTS_S)
#define USB_DEVICE_SERIAL_JTAG_RTS_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_RTS_S  0
/** USB_DEVICE_SERIAL_JTAG_DTR : RO; bitpos: [1]; default: 0;
 *  1: Chip reset is detected from usb jtag channel. Software write 1 to clear it.
 */
#define USB_DEVICE_SERIAL_JTAG_DTR    (BIT(1))
#define USB_DEVICE_SERIAL_JTAG_DTR_M  (USB_DEVICE_SERIAL_JTAG_DTR_V << USB_DEVICE_SERIAL_JTAG_DTR_S)
#define USB_DEVICE_SERIAL_JTAG_DTR_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_DTR_S  1
/** USB_DEVICE_SERIAL_JTAG_USB_UART_CHIP_RST_DIS : R/W; bitpos: [2]; default: 0;
 *  Set this bit to disable chip reset from usb serial channel to reset chip.
 */
#define USB_DEVICE_SERIAL_JTAG_USB_UART_CHIP_RST_DIS    (BIT(2))
#define USB_DEVICE_SERIAL_JTAG_USB_UART_CHIP_RST_DIS_M  (USB_DEVICE_SERIAL_JTAG_USB_UART_CHIP_RST_DIS_V << USB_DEVICE_SERIAL_JTAG_USB_UART_CHIP_RST_DIS_S)
#define USB_DEVICE_SERIAL_JTAG_USB_UART_CHIP_RST_DIS_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_USB_UART_CHIP_RST_DIS_S  2

/** USB_DEVICE_SET_LINE_CODE_W0_REG register
 *  W0 of SET_LINE_CODING command.
 */
#define USB_DEVICE_SET_LINE_CODE_W0_REG (DR_REG_USB_DEVICE_BASE + 0x50)
/** USB_DEVICE_SERIAL_JTAG_DW_DTE_RATE : RO; bitpos: [31:0]; default: 0;
 *  The value of dwDTERate set by host through SET_LINE_CODING command.
 */
#define USB_DEVICE_SERIAL_JTAG_DW_DTE_RATE    0xFFFFFFFFU
#define USB_DEVICE_SERIAL_JTAG_DW_DTE_RATE_M  (USB_DEVICE_SERIAL_JTAG_DW_DTE_RATE_V << USB_DEVICE_SERIAL_JTAG_DW_DTE_RATE_S)
#define USB_DEVICE_SERIAL_JTAG_DW_DTE_RATE_V  0xFFFFFFFFU
#define USB_DEVICE_SERIAL_JTAG_DW_DTE_RATE_S  0

/** USB_DEVICE_SET_LINE_CODE_W1_REG register
 *  W1 of SET_LINE_CODING command.
 */
#define USB_DEVICE_SET_LINE_CODE_W1_REG (DR_REG_USB_DEVICE_BASE + 0x54)
/** USB_DEVICE_SERIAL_JTAG_BCHAR_FORMAT : RO; bitpos: [7:0]; default: 0;
 *  The value of bCharFormat set by host through SET_LINE_CODING command.
 */
#define USB_DEVICE_SERIAL_JTAG_BCHAR_FORMAT    0x000000FFU
#define USB_DEVICE_SERIAL_JTAG_BCHAR_FORMAT_M  (USB_DEVICE_SERIAL_JTAG_BCHAR_FORMAT_V << USB_DEVICE_SERIAL_JTAG_BCHAR_FORMAT_S)
#define USB_DEVICE_SERIAL_JTAG_BCHAR_FORMAT_V  0x000000FFU
#define USB_DEVICE_SERIAL_JTAG_BCHAR_FORMAT_S  0
/** USB_DEVICE_SERIAL_JTAG_BPARITY_TYPE : RO; bitpos: [15:8]; default: 0;
 *  The value of bParityTpye set by host through SET_LINE_CODING command.
 */
#define USB_DEVICE_SERIAL_JTAG_BPARITY_TYPE    0x000000FFU
#define USB_DEVICE_SERIAL_JTAG_BPARITY_TYPE_M  (USB_DEVICE_SERIAL_JTAG_BPARITY_TYPE_V << USB_DEVICE_SERIAL_JTAG_BPARITY_TYPE_S)
#define USB_DEVICE_SERIAL_JTAG_BPARITY_TYPE_V  0x000000FFU
#define USB_DEVICE_SERIAL_JTAG_BPARITY_TYPE_S  8
/** USB_DEVICE_SERIAL_JTAG_BDATA_BITS : RO; bitpos: [23:16]; default: 0;
 *  The value of bDataBits set by host through SET_LINE_CODING command.
 */
#define USB_DEVICE_SERIAL_JTAG_BDATA_BITS    0x000000FFU
#define USB_DEVICE_SERIAL_JTAG_BDATA_BITS_M  (USB_DEVICE_SERIAL_JTAG_BDATA_BITS_V << USB_DEVICE_SERIAL_JTAG_BDATA_BITS_S)
#define USB_DEVICE_SERIAL_JTAG_BDATA_BITS_V  0x000000FFU
#define USB_DEVICE_SERIAL_JTAG_BDATA_BITS_S  16

/** USB_DEVICE_GET_LINE_CODE_W0_REG register
 *  W0 of GET_LINE_CODING command.
 */
#define USB_DEVICE_GET_LINE_CODE_W0_REG (DR_REG_USB_DEVICE_BASE + 0x58)
/** USB_DEVICE_SERIAL_JTAG_GET_DW_DTE_RATE : R/W; bitpos: [31:0]; default: 0;
 *  The value of dwDTERate set by software which is requested by GET_LINE_CODING
 *  command.
 */
#define USB_DEVICE_SERIAL_JTAG_GET_DW_DTE_RATE    0xFFFFFFFFU
#define USB_DEVICE_SERIAL_JTAG_GET_DW_DTE_RATE_M  (USB_DEVICE_SERIAL_JTAG_GET_DW_DTE_RATE_V << USB_DEVICE_SERIAL_JTAG_GET_DW_DTE_RATE_S)
#define USB_DEVICE_SERIAL_JTAG_GET_DW_DTE_RATE_V  0xFFFFFFFFU
#define USB_DEVICE_SERIAL_JTAG_GET_DW_DTE_RATE_S  0

/** USB_DEVICE_GET_LINE_CODE_W1_REG register
 *  W1 of GET_LINE_CODING command.
 */
#define USB_DEVICE_GET_LINE_CODE_W1_REG (DR_REG_USB_DEVICE_BASE + 0x5c)
/** USB_DEVICE_SERIAL_JTAG_GET_BDATA_BITS : R/W; bitpos: [7:0]; default: 0;
 *  The value of bCharFormat set by software which is requested by GET_LINE_CODING
 *  command.
 */
#define USB_DEVICE_SERIAL_JTAG_GET_BDATA_BITS    0x000000FFU
#define USB_DEVICE_SERIAL_JTAG_GET_BDATA_BITS_M  (USB_DEVICE_SERIAL_JTAG_GET_BDATA_BITS_V << USB_DEVICE_SERIAL_JTAG_GET_BDATA_BITS_S)
#define USB_DEVICE_SERIAL_JTAG_GET_BDATA_BITS_V  0x000000FFU
#define USB_DEVICE_SERIAL_JTAG_GET_BDATA_BITS_S  0
/** USB_DEVICE_SERIAL_JTAG_GET_BPARITY_TYPE : R/W; bitpos: [15:8]; default: 0;
 *  The value of bParityTpye set by software which is requested by GET_LINE_CODING
 *  command.
 */
#define USB_DEVICE_SERIAL_JTAG_GET_BPARITY_TYPE    0x000000FFU
#define USB_DEVICE_SERIAL_JTAG_GET_BPARITY_TYPE_M  (USB_DEVICE_SERIAL_JTAG_GET_BPARITY_TYPE_V << USB_DEVICE_SERIAL_JTAG_GET_BPARITY_TYPE_S)
#define USB_DEVICE_SERIAL_JTAG_GET_BPARITY_TYPE_V  0x000000FFU
#define USB_DEVICE_SERIAL_JTAG_GET_BPARITY_TYPE_S  8
/** USB_DEVICE_SERIAL_JTAG_GET_BCHAR_FORMAT : R/W; bitpos: [23:16]; default: 0;
 *  The value of bDataBits set by software which is requested by GET_LINE_CODING
 *  command.
 */
#define USB_DEVICE_SERIAL_JTAG_GET_BCHAR_FORMAT    0x000000FFU
#define USB_DEVICE_SERIAL_JTAG_GET_BCHAR_FORMAT_M  (USB_DEVICE_SERIAL_JTAG_GET_BCHAR_FORMAT_V << USB_DEVICE_SERIAL_JTAG_GET_BCHAR_FORMAT_S)
#define USB_DEVICE_SERIAL_JTAG_GET_BCHAR_FORMAT_V  0x000000FFU
#define USB_DEVICE_SERIAL_JTAG_GET_BCHAR_FORMAT_S  16

/** USB_DEVICE_CONFIG_UPDATE_REG register
 *  Configuration registers' value update
 */
#define USB_DEVICE_CONFIG_UPDATE_REG (DR_REG_USB_DEVICE_BASE + 0x60)
/** USB_DEVICE_SERIAL_JTAG_CONFIG_UPDATE : WT; bitpos: [0]; default: 0;
 *  Write 1 to this register would update the value of configure registers from APB
 *  clock domain to 48MHz clock domain.
 */
#define USB_DEVICE_SERIAL_JTAG_CONFIG_UPDATE    (BIT(0))
#define USB_DEVICE_SERIAL_JTAG_CONFIG_UPDATE_M  (USB_DEVICE_SERIAL_JTAG_CONFIG_UPDATE_V << USB_DEVICE_SERIAL_JTAG_CONFIG_UPDATE_S)
#define USB_DEVICE_SERIAL_JTAG_CONFIG_UPDATE_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_CONFIG_UPDATE_S  0

/** USB_DEVICE_SER_AFIFO_CONFIG_REG register
 *  Serial AFIFO configure register
 */
#define USB_DEVICE_SER_AFIFO_CONFIG_REG (DR_REG_USB_DEVICE_BASE + 0x64)
/** USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_RESET_WR : R/W; bitpos: [0]; default: 0;
 *  Write 1 to reset CDC_ACM IN async FIFO write clock domain.
 */
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_RESET_WR    (BIT(0))
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_RESET_WR_M  (USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_RESET_WR_V << USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_RESET_WR_S)
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_RESET_WR_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_RESET_WR_S  0
/** USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_RESET_RD : R/W; bitpos: [1]; default: 0;
 *  Write 1 to reset CDC_ACM IN async FIFO read clock domain.
 */
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_RESET_RD    (BIT(1))
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_RESET_RD_M  (USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_RESET_RD_V << USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_RESET_RD_S)
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_RESET_RD_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_RESET_RD_S  1
/** USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_RESET_WR : R/W; bitpos: [2]; default: 0;
 *  Write 1 to reset CDC_ACM OUT async FIFO write clock domain.
 */
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_RESET_WR    (BIT(2))
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_RESET_WR_M  (USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_RESET_WR_V << USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_RESET_WR_S)
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_RESET_WR_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_RESET_WR_S  2
/** USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_RESET_RD : R/W; bitpos: [3]; default: 0;
 *  Write 1 to reset CDC_ACM OUT async FIFO read clock domain.
 */
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_RESET_RD    (BIT(3))
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_RESET_RD_M  (USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_RESET_RD_V << USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_RESET_RD_S)
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_RESET_RD_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_RESET_RD_S  3
/** USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_REMPTY : RO; bitpos: [4]; default: 1;
 *  CDC_ACM OUTPUT async FIFO empty signal in read clock domain.
 */
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_REMPTY    (BIT(4))
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_REMPTY_M  (USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_REMPTY_V << USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_REMPTY_S)
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_REMPTY_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SERIAL_OUT_AFIFO_REMPTY_S  4
/** USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_WFULL : RO; bitpos: [5]; default: 0;
 *  CDC_ACM OUT IN async FIFO empty signal in write clock domain.
 */
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_WFULL    (BIT(5))
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_WFULL_M  (USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_WFULL_V << USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_WFULL_S)
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_WFULL_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_SERIAL_IN_AFIFO_WFULL_S  5

/** USB_DEVICE_BUS_RESET_ST_REG register
 *  USB Bus reset status register
 */
#define USB_DEVICE_BUS_RESET_ST_REG (DR_REG_USB_DEVICE_BASE + 0x68)
/** USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_ST : RO; bitpos: [0]; default: 1;
 *  USB bus reset status. 0: USB-Serial-JTAG is in usb bus reset status. 1: USB bus
 *  reset is released.
 */
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_ST    (BIT(0))
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_ST_M  (USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_ST_V << USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_ST_S)
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_ST_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_USB_BUS_RESET_ST_S  0

/** USB_DEVICE_ECO_LOW_48_REG register
 *  Reserved.
 */
#define USB_DEVICE_ECO_LOW_48_REG (DR_REG_USB_DEVICE_BASE + 0x6c)
/** USB_DEVICE_SERIAL_JTAG_RND_ECO_LOW_48 : R/W; bitpos: [31:0]; default: 0;
 *  Reserved.
 */
#define USB_DEVICE_SERIAL_JTAG_RND_ECO_LOW_48    0xFFFFFFFFU
#define USB_DEVICE_SERIAL_JTAG_RND_ECO_LOW_48_M  (USB_DEVICE_SERIAL_JTAG_RND_ECO_LOW_48_V << USB_DEVICE_SERIAL_JTAG_RND_ECO_LOW_48_S)
#define USB_DEVICE_SERIAL_JTAG_RND_ECO_LOW_48_V  0xFFFFFFFFU
#define USB_DEVICE_SERIAL_JTAG_RND_ECO_LOW_48_S  0

/** USB_DEVICE_ECO_HIGH_48_REG register
 *  Reserved.
 */
#define USB_DEVICE_ECO_HIGH_48_REG (DR_REG_USB_DEVICE_BASE + 0x70)
/** USB_DEVICE_SERIAL_JTAG_RND_ECO_HIGH_48 : R/W; bitpos: [31:0]; default: 4294967295;
 *  Reserved.
 */
#define USB_DEVICE_SERIAL_JTAG_RND_ECO_HIGH_48    0xFFFFFFFFU
#define USB_DEVICE_SERIAL_JTAG_RND_ECO_HIGH_48_M  (USB_DEVICE_SERIAL_JTAG_RND_ECO_HIGH_48_V << USB_DEVICE_SERIAL_JTAG_RND_ECO_HIGH_48_S)
#define USB_DEVICE_SERIAL_JTAG_RND_ECO_HIGH_48_V  0xFFFFFFFFU
#define USB_DEVICE_SERIAL_JTAG_RND_ECO_HIGH_48_S  0

/** USB_DEVICE_ECO_CELL_CTRL_48_REG register
 *  Reserved.
 */
#define USB_DEVICE_ECO_CELL_CTRL_48_REG (DR_REG_USB_DEVICE_BASE + 0x74)
/** USB_DEVICE_SERIAL_JTAG_RDN_RESULT_48 : RO; bitpos: [0]; default: 0;
 *  Reserved.
 */
#define USB_DEVICE_SERIAL_JTAG_RDN_RESULT_48    (BIT(0))
#define USB_DEVICE_SERIAL_JTAG_RDN_RESULT_48_M  (USB_DEVICE_SERIAL_JTAG_RDN_RESULT_48_V << USB_DEVICE_SERIAL_JTAG_RDN_RESULT_48_S)
#define USB_DEVICE_SERIAL_JTAG_RDN_RESULT_48_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_RDN_RESULT_48_S  0
/** USB_DEVICE_SERIAL_JTAG_RDN_ENA_48 : R/W; bitpos: [1]; default: 0;
 *  Reserved.
 */
#define USB_DEVICE_SERIAL_JTAG_RDN_ENA_48    (BIT(1))
#define USB_DEVICE_SERIAL_JTAG_RDN_ENA_48_M  (USB_DEVICE_SERIAL_JTAG_RDN_ENA_48_V << USB_DEVICE_SERIAL_JTAG_RDN_ENA_48_S)
#define USB_DEVICE_SERIAL_JTAG_RDN_ENA_48_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_RDN_ENA_48_S  1

/** USB_DEVICE_ECO_LOW_APB_REG register
 *  Reserved.
 */
#define USB_DEVICE_ECO_LOW_APB_REG (DR_REG_USB_DEVICE_BASE + 0x78)
/** USB_DEVICE_SERIAL_JTAG_RND_ECO_LOW_APB : R/W; bitpos: [31:0]; default: 0;
 *  Reserved.
 */
#define USB_DEVICE_SERIAL_JTAG_RND_ECO_LOW_APB    0xFFFFFFFFU
#define USB_DEVICE_SERIAL_JTAG_RND_ECO_LOW_APB_M  (USB_DEVICE_SERIAL_JTAG_RND_ECO_LOW_APB_V << USB_DEVICE_SERIAL_JTAG_RND_ECO_LOW_APB_S)
#define USB_DEVICE_SERIAL_JTAG_RND_ECO_LOW_APB_V  0xFFFFFFFFU
#define USB_DEVICE_SERIAL_JTAG_RND_ECO_LOW_APB_S  0

/** USB_DEVICE_ECO_HIGH_APB_REG register
 *  Reserved.
 */
#define USB_DEVICE_ECO_HIGH_APB_REG (DR_REG_USB_DEVICE_BASE + 0x7c)
/** USB_DEVICE_SERIAL_JTAG_RND_ECO_HIGH_APB : R/W; bitpos: [31:0]; default: 4294967295;
 *  Reserved.
 */
#define USB_DEVICE_SERIAL_JTAG_RND_ECO_HIGH_APB    0xFFFFFFFFU
#define USB_DEVICE_SERIAL_JTAG_RND_ECO_HIGH_APB_M  (USB_DEVICE_SERIAL_JTAG_RND_ECO_HIGH_APB_V << USB_DEVICE_SERIAL_JTAG_RND_ECO_HIGH_APB_S)
#define USB_DEVICE_SERIAL_JTAG_RND_ECO_HIGH_APB_V  0xFFFFFFFFU
#define USB_DEVICE_SERIAL_JTAG_RND_ECO_HIGH_APB_S  0

/** USB_DEVICE_ECO_CELL_CTRL_APB_REG register
 *  Reserved.
 */
#define USB_DEVICE_ECO_CELL_CTRL_APB_REG (DR_REG_USB_DEVICE_BASE + 0x80)
/** USB_DEVICE_SERIAL_JTAG_RDN_RESULT_APB : RO; bitpos: [0]; default: 0;
 *  Reserved.
 */
#define USB_DEVICE_SERIAL_JTAG_RDN_RESULT_APB    (BIT(0))
#define USB_DEVICE_SERIAL_JTAG_RDN_RESULT_APB_M  (USB_DEVICE_SERIAL_JTAG_RDN_RESULT_APB_V << USB_DEVICE_SERIAL_JTAG_RDN_RESULT_APB_S)
#define USB_DEVICE_SERIAL_JTAG_RDN_RESULT_APB_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_RDN_RESULT_APB_S  0
/** USB_DEVICE_SERIAL_JTAG_RDN_ENA_APB : R/W; bitpos: [1]; default: 0;
 *  Reserved.
 */
#define USB_DEVICE_SERIAL_JTAG_RDN_ENA_APB    (BIT(1))
#define USB_DEVICE_SERIAL_JTAG_RDN_ENA_APB_M  (USB_DEVICE_SERIAL_JTAG_RDN_ENA_APB_V << USB_DEVICE_SERIAL_JTAG_RDN_ENA_APB_S)
#define USB_DEVICE_SERIAL_JTAG_RDN_ENA_APB_V  0x00000001U
#define USB_DEVICE_SERIAL_JTAG_RDN_ENA_APB_S  1

/** USB_DEVICE_SRAM_CTRL_REG register
 *  PPA SRAM Control Register
 */
#define USB_DEVICE_SRAM_CTRL_REG (DR_REG_USB_DEVICE_BASE + 0x84)
/** USB_DEVICE_SERIAL_JTAG_MEM_AUX_CTRL : R/W; bitpos: [13:0]; default: 4896;
 *  Control signals
 */
#define USB_DEVICE_SERIAL_JTAG_MEM_AUX_CTRL    0x00003FFFU
#define USB_DEVICE_SERIAL_JTAG_MEM_AUX_CTRL_M  (USB_DEVICE_SERIAL_JTAG_MEM_AUX_CTRL_V << USB_DEVICE_SERIAL_JTAG_MEM_AUX_CTRL_S)
#define USB_DEVICE_SERIAL_JTAG_MEM_AUX_CTRL_V  0x00003FFFU
#define USB_DEVICE_SERIAL_JTAG_MEM_AUX_CTRL_S  0

/** USB_DEVICE_DATE_REG register
 *  Date register
 */
#define USB_DEVICE_DATE_REG (DR_REG_USB_DEVICE_BASE + 0x88)
/** USB_DEVICE_SERIAL_JTAG_DATE : R/W; bitpos: [31:0]; default: 34676752;
 *  register version.
 */
#define USB_DEVICE_SERIAL_JTAG_DATE    0xFFFFFFFFU
#define USB_DEVICE_SERIAL_JTAG_DATE_M  (USB_DEVICE_SERIAL_JTAG_DATE_V << USB_DEVICE_SERIAL_JTAG_DATE_S)
#define USB_DEVICE_SERIAL_JTAG_DATE_V  0xFFFFFFFFU
#define USB_DEVICE_SERIAL_JTAG_DATE_S  0

#ifdef __cplusplus
}
#endif
