Altera SoCAL  16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
 All Data Structures Variables Typedefs Groups
Register : Device IN Endpoint 1 Interrupt Register - diepint1

Description

This register indicates the status of an endpoint with respect to USB- and AHB- related events. The application must read this register when the OUT Endpoints Interrupt bit or IN Endpoints Interrupt bit of the Core Interrupt register (GINTSTS.OEPInt or GINTSTS.IEPInt, respectively) is set. Before the application can read this register, it must first read the Device All Endpoints Interrupt (DAINT) register to get the exact endpoint number for the Device Endpoint-n Interrupt register. The application must clear the appropriate bit in this register to clear the corresponding bits in the DAINT and GINTSTS registers.

Register Layout

Bits Access Reset Description
[0] R 0x0 Transfer Completed Interrupt
[1] R 0x0 Endpoint Disabled Interrupt
[2] R 0x0 AHB Error
[3] R 0x0 Timeout Condition
[4] R 0x0 IN Token Received When TxFIFO is Empty
[5] R 0x0 IN Token Received with EP Mismatch
[6] R 0x0 IN Endpoint NAK Effective
[7] R 0x1 Transmit FIFO Empty
[8] R 0x0 Fifo Underrun
[9] R 0x0 BNA Interrupt
[10] ??? 0x0 UNDEFINED
[11] R 0x0 Packet Drop Status
[12] R 0x0 BbleErr Interrupt (
[13] R 0x0 NAK Interrupt
[14] R 0x0 NYET Interrupt
[31:15] ??? 0x0 UNDEFINED

Field : Transfer Completed Interrupt - xfercompl

Applies to IN and OUT endpoints. When Scatter/Gather DMA mode is enabled

  • for IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO.
  • for OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is Set. When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

Field Enumeration Values:

Enum Value Description
ALT_USB_DEV_DIEPINT1_XFERCOMPL_E_INACT 0x0 No Interrupt
ALT_USB_DEV_DIEPINT1_XFERCOMPL_E_ACT 0x1 Transfer Completed Interrupt

Field Access Macros:

#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_E_INACT   0x0
 
#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_E_ACT   0x1
 
#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_LSB   0
 
#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_MSB   0
 
#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_WIDTH   1
 
#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_SET_MSK   0x00000001
 
#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_CLR_MSK   0xfffffffe
 
#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_RESET   0x0
 
#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_GET(value)   (((value) & 0x00000001) >> 0)
 
#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_SET(value)   (((value) << 0) & 0x00000001)
 

Field : Endpoint Disabled Interrupt - epdisbld

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

Field Enumeration Values:

Enum Value Description
ALT_USB_DEV_DIEPINT1_EPDISBLD_E_INACT 0x0 No Interrupt
ALT_USB_DEV_DIEPINT1_EPDISBLD_E_ACT 0x1 Endpoint Disabled Interrupt

Field Access Macros:

#define ALT_USB_DEV_DIEPINT1_EPDISBLD_E_INACT   0x0
 
#define ALT_USB_DEV_DIEPINT1_EPDISBLD_E_ACT   0x1
 
#define ALT_USB_DEV_DIEPINT1_EPDISBLD_LSB   1
 
#define ALT_USB_DEV_DIEPINT1_EPDISBLD_MSB   1
 
#define ALT_USB_DEV_DIEPINT1_EPDISBLD_WIDTH   1
 
#define ALT_USB_DEV_DIEPINT1_EPDISBLD_SET_MSK   0x00000002
 
#define ALT_USB_DEV_DIEPINT1_EPDISBLD_CLR_MSK   0xfffffffd
 
#define ALT_USB_DEV_DIEPINT1_EPDISBLD_RESET   0x0
 
#define ALT_USB_DEV_DIEPINT1_EPDISBLD_GET(value)   (((value) & 0x00000002) >> 1)
 
#define ALT_USB_DEV_DIEPINT1_EPDISBLD_SET(value)   (((value) << 1) & 0x00000002)
 

Field : AHB Error - ahberr

Applies to IN and OUT endpoints.This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address.

Field Enumeration Values:

Enum Value Description
ALT_USB_DEV_DIEPINT1_AHBERR_E_INACT 0x0 No Interrupt
ALT_USB_DEV_DIEPINT1_AHBERR_E_ACT 0x1 AHB Error interrupt

Field Access Macros:

#define ALT_USB_DEV_DIEPINT1_AHBERR_E_INACT   0x0
 
#define ALT_USB_DEV_DIEPINT1_AHBERR_E_ACT   0x1
 
#define ALT_USB_DEV_DIEPINT1_AHBERR_LSB   2
 
#define ALT_USB_DEV_DIEPINT1_AHBERR_MSB   2
 
#define ALT_USB_DEV_DIEPINT1_AHBERR_WIDTH   1
 
#define ALT_USB_DEV_DIEPINT1_AHBERR_SET_MSK   0x00000004
 
#define ALT_USB_DEV_DIEPINT1_AHBERR_CLR_MSK   0xfffffffb
 
#define ALT_USB_DEV_DIEPINT1_AHBERR_RESET   0x0
 
#define ALT_USB_DEV_DIEPINT1_AHBERR_GET(value)   (((value) & 0x00000004) >> 2)
 
#define ALT_USB_DEV_DIEPINT1_AHBERR_SET(value)   (((value) << 2) & 0x00000004)
 

Field : Timeout Condition - timeout

In shared TX FIFO mode, applies to non-isochronous IN endpoints only. In dedicated FIFO mode, applies only to Control IN endpoints. In Scatter/Gather DMA mode, the TimeOUT interrupt is notasserted. Indicates that the core has detected a timeout condition on the USB for the last IN token on this endpoint.

Field Enumeration Values:

Enum Value Description
ALT_USB_DEV_DIEPINT1_TMO_E_INACT 0x0 No interrupt
ALT_USB_DEV_DIEPINT1_TMO_E_ACT 0x1 Timeout interrupy

Field Access Macros:

#define ALT_USB_DEV_DIEPINT1_TMO_E_INACT   0x0
 
#define ALT_USB_DEV_DIEPINT1_TMO_E_ACT   0x1
 
#define ALT_USB_DEV_DIEPINT1_TMO_LSB   3
 
#define ALT_USB_DEV_DIEPINT1_TMO_MSB   3
 
#define ALT_USB_DEV_DIEPINT1_TMO_WIDTH   1
 
#define ALT_USB_DEV_DIEPINT1_TMO_SET_MSK   0x00000008
 
#define ALT_USB_DEV_DIEPINT1_TMO_CLR_MSK   0xfffffff7
 
#define ALT_USB_DEV_DIEPINT1_TMO_RESET   0x0
 
#define ALT_USB_DEV_DIEPINT1_TMO_GET(value)   (((value) & 0x00000008) >> 3)
 
#define ALT_USB_DEV_DIEPINT1_TMO_SET(value)   (((value) << 3) & 0x00000008)
 

Field : IN Token Received When TxFIFO is Empty - intkntxfemp

Applies to non-periodic IN endpoints only. Indicates that an IN token was received when the associated TxFIFO (periodic/non-periodic) was empty. This interrupt is asserted on the endpoint for which the IN token was received.

Field Enumeration Values:

Enum Value Description
ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_E_INACT 0x0 No interrupt
ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_E_ACT 0x1 IN Token Received Interrupt

Field Access Macros:

#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_E_INACT   0x0
 
#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_E_ACT   0x1
 
#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_LSB   4
 
#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_MSB   4
 
#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_WIDTH   1
 
#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_SET_MSK   0x00000010
 
#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_CLR_MSK   0xffffffef
 
#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_RESET   0x0
 
#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_GET(value)   (((value) & 0x00000010) >> 4)
 
#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_SET(value)   (((value) << 4) & 0x00000010)
 

Field : IN Token Received with EP Mismatch - intknepmis

Applies to non-periodic IN endpoints only. Indicates that the data in the top of the non-periodic TxFIFO belongs to an endpoint other than the one for which the IN token was received. This interrupt is asserted on the endpoint for which the IN token was received.

Field Enumeration Values:

Enum Value Description
ALT_USB_DEV_DIEPINT1_INTKNEPMIS_E_INACT 0x0 No interrupt
ALT_USB_DEV_DIEPINT1_INTKNEPMIS_E_ACT 0x1 IN Token Received with EP Mismatch interrupt

Field Access Macros:

#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_E_INACT   0x0
 
#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_E_ACT   0x1
 
#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_LSB   5
 
#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_MSB   5
 
#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_WIDTH   1
 
#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_SET_MSK   0x00000020
 
#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_CLR_MSK   0xffffffdf
 
#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_RESET   0x0
 
#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_GET(value)   (((value) & 0x00000020) >> 5)
 
#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_SET(value)   (((value) << 5) & 0x00000020)
 

Field : IN Endpoint NAK Effective - inepnakeff

Applies to periodic IN endpoints only. This bit can be cleared when the application clears the IN endpoint NAK by writing to DIEPCTLn.CNAK. This interrupt indicates that the core has sampled the NAK bit Set (either by the application or by the core). The interrupt indicates that the IN endpoint NAK bit Set by the application has taken effect in the core.This interrupt does not guarantee that a NAK handshake is sent on the USB. A STALL bit takes priority over a NAK bit.

Field Enumeration Values:

Enum Value Description
ALT_USB_DEV_DIEPINT1_INEPNAKEFF_E_INACT 0x0 No interrupt
ALT_USB_DEV_DIEPINT1_INEPNAKEFF_E_ACT 0x1 IN Endpoint NAK Effective interrupt

Field Access Macros:

#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_E_INACT   0x0
 
#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_E_ACT   0x1
 
#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_LSB   6
 
#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_MSB   6
 
#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_WIDTH   1
 
#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_SET_MSK   0x00000040
 
#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_CLR_MSK   0xffffffbf
 
#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_RESET   0x0
 
#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_GET(value)   (((value) & 0x00000040) >> 6)
 
#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_SET(value)   (((value) << 6) & 0x00000040)
 

Field : Transmit FIFO Empty - txfemp

This bit is valid only for IN Endpoints This interrupt is asserted when the TxFIFO for this endpoint is either half or completely empty. The half or completely empty status is determined by the TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.NPTxFEmpLvl)).

Field Enumeration Values:

Enum Value Description
ALT_USB_DEV_DIEPINT1_TXFEMP_E_INACT 0x0 No interrupt
ALT_USB_DEV_DIEPINT1_TXFEMP_E_ACT 0x1 Transmit FIFO Empty interrupt

Field Access Macros:

#define ALT_USB_DEV_DIEPINT1_TXFEMP_E_INACT   0x0
 
#define ALT_USB_DEV_DIEPINT1_TXFEMP_E_ACT   0x1
 
#define ALT_USB_DEV_DIEPINT1_TXFEMP_LSB   7
 
#define ALT_USB_DEV_DIEPINT1_TXFEMP_MSB   7
 
#define ALT_USB_DEV_DIEPINT1_TXFEMP_WIDTH   1
 
#define ALT_USB_DEV_DIEPINT1_TXFEMP_SET_MSK   0x00000080
 
#define ALT_USB_DEV_DIEPINT1_TXFEMP_CLR_MSK   0xffffff7f
 
#define ALT_USB_DEV_DIEPINT1_TXFEMP_RESET   0x1
 
#define ALT_USB_DEV_DIEPINT1_TXFEMP_GET(value)   (((value) & 0x00000080) >> 7)
 
#define ALT_USB_DEV_DIEPINT1_TXFEMP_SET(value)   (((value) << 7) & 0x00000080)
 

Field : Fifo Underrun - txfifoundrn

Applies to IN endpoints Only. The core generates this interrupt when it detects a transmit FIFO underrun condition for this endpoint.

Field Enumeration Values:

Enum Value Description
ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_E_INACT 0x0 No interrupt
ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_E_ACT 0x1 Fifo Underrun interrupt

Field Access Macros:

#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_E_INACT   0x0
 
#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_E_ACT   0x1
 
#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_LSB   8
 
#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_MSB   8
 
#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_WIDTH   1
 
#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_SET_MSK   0x00000100
 
#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_CLR_MSK   0xfffffeff
 
#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_RESET   0x0
 
#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_GET(value)   (((value) & 0x00000100) >> 8)
 
#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_SET(value)   (((value) << 8) & 0x00000100)
 

Field : BNA Interrupt - bnaintr

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done

Field Enumeration Values:

Enum Value Description
ALT_USB_DEV_DIEPINT1_BNAINTR_E_INACT 0x0 No interrupt
ALT_USB_DEV_DIEPINT1_BNAINTR_E_ACT 0x1 BNA interrupt

Field Access Macros:

#define ALT_USB_DEV_DIEPINT1_BNAINTR_E_INACT   0x0
 
#define ALT_USB_DEV_DIEPINT1_BNAINTR_E_ACT   0x1
 
#define ALT_USB_DEV_DIEPINT1_BNAINTR_LSB   9
 
#define ALT_USB_DEV_DIEPINT1_BNAINTR_MSB   9
 
#define ALT_USB_DEV_DIEPINT1_BNAINTR_WIDTH   1
 
#define ALT_USB_DEV_DIEPINT1_BNAINTR_SET_MSK   0x00000200
 
#define ALT_USB_DEV_DIEPINT1_BNAINTR_CLR_MSK   0xfffffdff
 
#define ALT_USB_DEV_DIEPINT1_BNAINTR_RESET   0x0
 
#define ALT_USB_DEV_DIEPINT1_BNAINTR_GET(value)   (((value) & 0x00000200) >> 9)
 
#define ALT_USB_DEV_DIEPINT1_BNAINTR_SET(value)   (((value) << 9) & 0x00000200)
 

Field : Packet Drop Status - pktdrpsts

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt.

Field Enumeration Values:

Enum Value Description
ALT_USB_DEV_DIEPINT1_PKTDRPSTS_E_INACT 0x0 No interrupt
ALT_USB_DEV_DIEPINT1_PKTDRPSTS_E_ACT 0x1 Packet Drop Status interrupt

Field Access Macros:

#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_E_INACT   0x0
 
#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_E_ACT   0x1
 
#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_LSB   11
 
#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_MSB   11
 
#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_WIDTH   1
 
#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_SET_MSK   0x00000800
 
#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_CLR_MSK   0xfffff7ff
 
#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_RESET   0x0
 
#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_GET(value)   (((value) & 0x00000800) >> 11)
 
#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_SET(value)   (((value) << 11) & 0x00000800)
 

Field : BbleErr Interrupt ( - bbleerr

The core generates this interrupt when babble is received for the endpoint.

Field Enumeration Values:

Enum Value Description
ALT_USB_DEV_DIEPINT1_BBLEERR_E_INACT 0x0 No interrupt
ALT_USB_DEV_DIEPINT1_BBLEERR_E_ACT 0x1 BbleErr interrupt

Field Access Macros:

#define ALT_USB_DEV_DIEPINT1_BBLEERR_E_INACT   0x0
 
#define ALT_USB_DEV_DIEPINT1_BBLEERR_E_ACT   0x1
 
#define ALT_USB_DEV_DIEPINT1_BBLEERR_LSB   12
 
#define ALT_USB_DEV_DIEPINT1_BBLEERR_MSB   12
 
#define ALT_USB_DEV_DIEPINT1_BBLEERR_WIDTH   1
 
#define ALT_USB_DEV_DIEPINT1_BBLEERR_SET_MSK   0x00001000
 
#define ALT_USB_DEV_DIEPINT1_BBLEERR_CLR_MSK   0xffffefff
 
#define ALT_USB_DEV_DIEPINT1_BBLEERR_RESET   0x0
 
#define ALT_USB_DEV_DIEPINT1_BBLEERR_GET(value)   (((value) & 0x00001000) >> 12)
 
#define ALT_USB_DEV_DIEPINT1_BBLEERR_SET(value)   (((value) << 12) & 0x00001000)
 

Field : NAK Interrupt - nakintrpt

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

Field Enumeration Values:

Enum Value Description
ALT_USB_DEV_DIEPINT1_NAKINTRPT_E_INACT 0x0 No interrupt
ALT_USB_DEV_DIEPINT1_NAKINTRPT_E_ACT 0x1 NAK Interrupt

Field Access Macros:

#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_E_INACT   0x0
 
#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_E_ACT   0x1
 
#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_LSB   13
 
#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_MSB   13
 
#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_WIDTH   1
 
#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_SET_MSK   0x00002000
 
#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_CLR_MSK   0xffffdfff
 
#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_RESET   0x0
 
#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_GET(value)   (((value) & 0x00002000) >> 13)
 
#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_SET(value)   (((value) << 13) & 0x00002000)
 

Field : NYET Interrupt - nyetintrpt

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

Field Enumeration Values:

Enum Value Description
ALT_USB_DEV_DIEPINT1_NYETINTRPT_E_INACT 0x0 No interrupt
ALT_USB_DEV_DIEPINT1_NYETINTRPT_E_ACT 0x1 NYET Interrupt

Field Access Macros:

#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_E_INACT   0x0
 
#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_E_ACT   0x1
 
#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_LSB   14
 
#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_MSB   14
 
#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_WIDTH   1
 
#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_SET_MSK   0x00004000
 
#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_CLR_MSK   0xffffbfff
 
#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_RESET   0x0
 
#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_GET(value)   (((value) & 0x00004000) >> 14)
 
#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_SET(value)   (((value) << 14) & 0x00004000)
 

Data Structures

struct  ALT_USB_DEV_DIEPINT1_s
 

Macros

#define ALT_USB_DEV_DIEPINT1_OFST   0x128
 
#define ALT_USB_DEV_DIEPINT1_ADDR(base)   ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_USB_DEV_DIEPINT1_OFST))
 

Typedefs

typedef struct
ALT_USB_DEV_DIEPINT1_s 
ALT_USB_DEV_DIEPINT1_t
 

Data Structure Documentation

struct ALT_USB_DEV_DIEPINT1_s

WARNING: The C register and register group struct declarations are provided for convenience and illustrative purposes. They should, however, be used with caution as the C language standard provides no guarantees about the alignment or atomicity of device memory accesses. The recommended practice for writing hardware drivers is to use the SoCAL access macros and alt_read_word() and alt_write_word() functions.

The struct declaration for register ALT_USB_DEV_DIEPINT1.

Data Fields
const uint32_t xfercompl: 1 Transfer Completed Interrupt
const uint32_t epdisbld: 1 Endpoint Disabled Interrupt
const uint32_t ahberr: 1 AHB Error
const uint32_t timeout: 1 Timeout Condition
const uint32_t intkntxfemp: 1 IN Token Received When TxFIFO is Empty
const uint32_t intknepmis: 1 IN Token Received with EP Mismatch
const uint32_t inepnakeff: 1 IN Endpoint NAK Effective
const uint32_t txfemp: 1 Transmit FIFO Empty
const uint32_t txfifoundrn: 1 Fifo Underrun
const uint32_t bnaintr: 1 BNA Interrupt
uint32_t __pad0__: 1 UNDEFINED
const uint32_t pktdrpsts: 1 Packet Drop Status
const uint32_t bbleerr: 1 BbleErr Interrupt (
const uint32_t nakintrpt: 1 NAK Interrupt
const uint32_t nyetintrpt: 1 NYET Interrupt
uint32_t __pad1__: 17 UNDEFINED

Macro Definitions

#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_E_INACT   0x0

Enumerated value for register field ALT_USB_DEV_DIEPINT1_XFERCOMPL

No Interrupt

#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_E_ACT   0x1

Enumerated value for register field ALT_USB_DEV_DIEPINT1_XFERCOMPL

Transfer Completed Interrupt

#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_LSB   0

The Least Significant Bit (LSB) position of the ALT_USB_DEV_DIEPINT1_XFERCOMPL register field.

#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_MSB   0

The Most Significant Bit (MSB) position of the ALT_USB_DEV_DIEPINT1_XFERCOMPL register field.

#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_WIDTH   1

The width in bits of the ALT_USB_DEV_DIEPINT1_XFERCOMPL register field.

#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_SET_MSK   0x00000001

The mask used to set the ALT_USB_DEV_DIEPINT1_XFERCOMPL register field value.

#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_CLR_MSK   0xfffffffe

The mask used to clear the ALT_USB_DEV_DIEPINT1_XFERCOMPL register field value.

#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_RESET   0x0

The reset value of the ALT_USB_DEV_DIEPINT1_XFERCOMPL register field.

#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_GET (   value)    (((value) & 0x00000001) >> 0)

Extracts the ALT_USB_DEV_DIEPINT1_XFERCOMPL field value from a register.

#define ALT_USB_DEV_DIEPINT1_XFERCOMPL_SET (   value)    (((value) << 0) & 0x00000001)

Produces a ALT_USB_DEV_DIEPINT1_XFERCOMPL register field value suitable for setting the register.

#define ALT_USB_DEV_DIEPINT1_EPDISBLD_E_INACT   0x0

Enumerated value for register field ALT_USB_DEV_DIEPINT1_EPDISBLD

No Interrupt

#define ALT_USB_DEV_DIEPINT1_EPDISBLD_E_ACT   0x1

Enumerated value for register field ALT_USB_DEV_DIEPINT1_EPDISBLD

Endpoint Disabled Interrupt

#define ALT_USB_DEV_DIEPINT1_EPDISBLD_LSB   1

The Least Significant Bit (LSB) position of the ALT_USB_DEV_DIEPINT1_EPDISBLD register field.

#define ALT_USB_DEV_DIEPINT1_EPDISBLD_MSB   1

The Most Significant Bit (MSB) position of the ALT_USB_DEV_DIEPINT1_EPDISBLD register field.

#define ALT_USB_DEV_DIEPINT1_EPDISBLD_WIDTH   1

The width in bits of the ALT_USB_DEV_DIEPINT1_EPDISBLD register field.

#define ALT_USB_DEV_DIEPINT1_EPDISBLD_SET_MSK   0x00000002

The mask used to set the ALT_USB_DEV_DIEPINT1_EPDISBLD register field value.

#define ALT_USB_DEV_DIEPINT1_EPDISBLD_CLR_MSK   0xfffffffd

The mask used to clear the ALT_USB_DEV_DIEPINT1_EPDISBLD register field value.

#define ALT_USB_DEV_DIEPINT1_EPDISBLD_RESET   0x0

The reset value of the ALT_USB_DEV_DIEPINT1_EPDISBLD register field.

#define ALT_USB_DEV_DIEPINT1_EPDISBLD_GET (   value)    (((value) & 0x00000002) >> 1)

Extracts the ALT_USB_DEV_DIEPINT1_EPDISBLD field value from a register.

#define ALT_USB_DEV_DIEPINT1_EPDISBLD_SET (   value)    (((value) << 1) & 0x00000002)

Produces a ALT_USB_DEV_DIEPINT1_EPDISBLD register field value suitable for setting the register.

#define ALT_USB_DEV_DIEPINT1_AHBERR_E_INACT   0x0

Enumerated value for register field ALT_USB_DEV_DIEPINT1_AHBERR

No Interrupt

#define ALT_USB_DEV_DIEPINT1_AHBERR_E_ACT   0x1

Enumerated value for register field ALT_USB_DEV_DIEPINT1_AHBERR

AHB Error interrupt

#define ALT_USB_DEV_DIEPINT1_AHBERR_LSB   2

The Least Significant Bit (LSB) position of the ALT_USB_DEV_DIEPINT1_AHBERR register field.

#define ALT_USB_DEV_DIEPINT1_AHBERR_MSB   2

The Most Significant Bit (MSB) position of the ALT_USB_DEV_DIEPINT1_AHBERR register field.

#define ALT_USB_DEV_DIEPINT1_AHBERR_WIDTH   1

The width in bits of the ALT_USB_DEV_DIEPINT1_AHBERR register field.

#define ALT_USB_DEV_DIEPINT1_AHBERR_SET_MSK   0x00000004

The mask used to set the ALT_USB_DEV_DIEPINT1_AHBERR register field value.

#define ALT_USB_DEV_DIEPINT1_AHBERR_CLR_MSK   0xfffffffb

The mask used to clear the ALT_USB_DEV_DIEPINT1_AHBERR register field value.

#define ALT_USB_DEV_DIEPINT1_AHBERR_RESET   0x0

The reset value of the ALT_USB_DEV_DIEPINT1_AHBERR register field.

#define ALT_USB_DEV_DIEPINT1_AHBERR_GET (   value)    (((value) & 0x00000004) >> 2)

Extracts the ALT_USB_DEV_DIEPINT1_AHBERR field value from a register.

#define ALT_USB_DEV_DIEPINT1_AHBERR_SET (   value)    (((value) << 2) & 0x00000004)

Produces a ALT_USB_DEV_DIEPINT1_AHBERR register field value suitable for setting the register.

#define ALT_USB_DEV_DIEPINT1_TMO_E_INACT   0x0

Enumerated value for register field ALT_USB_DEV_DIEPINT1_TMO

No interrupt

#define ALT_USB_DEV_DIEPINT1_TMO_E_ACT   0x1

Enumerated value for register field ALT_USB_DEV_DIEPINT1_TMO

Timeout interrupy

#define ALT_USB_DEV_DIEPINT1_TMO_LSB   3

The Least Significant Bit (LSB) position of the ALT_USB_DEV_DIEPINT1_TMO register field.

#define ALT_USB_DEV_DIEPINT1_TMO_MSB   3

The Most Significant Bit (MSB) position of the ALT_USB_DEV_DIEPINT1_TMO register field.

#define ALT_USB_DEV_DIEPINT1_TMO_WIDTH   1

The width in bits of the ALT_USB_DEV_DIEPINT1_TMO register field.

#define ALT_USB_DEV_DIEPINT1_TMO_SET_MSK   0x00000008

The mask used to set the ALT_USB_DEV_DIEPINT1_TMO register field value.

#define ALT_USB_DEV_DIEPINT1_TMO_CLR_MSK   0xfffffff7

The mask used to clear the ALT_USB_DEV_DIEPINT1_TMO register field value.

#define ALT_USB_DEV_DIEPINT1_TMO_RESET   0x0

The reset value of the ALT_USB_DEV_DIEPINT1_TMO register field.

#define ALT_USB_DEV_DIEPINT1_TMO_GET (   value)    (((value) & 0x00000008) >> 3)

Extracts the ALT_USB_DEV_DIEPINT1_TMO field value from a register.

#define ALT_USB_DEV_DIEPINT1_TMO_SET (   value)    (((value) << 3) & 0x00000008)

Produces a ALT_USB_DEV_DIEPINT1_TMO register field value suitable for setting the register.

#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_E_INACT   0x0

Enumerated value for register field ALT_USB_DEV_DIEPINT1_INTKNTXFEMP

No interrupt

#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_E_ACT   0x1

Enumerated value for register field ALT_USB_DEV_DIEPINT1_INTKNTXFEMP

IN Token Received Interrupt

#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_LSB   4

The Least Significant Bit (LSB) position of the ALT_USB_DEV_DIEPINT1_INTKNTXFEMP register field.

#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_MSB   4

The Most Significant Bit (MSB) position of the ALT_USB_DEV_DIEPINT1_INTKNTXFEMP register field.

#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_WIDTH   1

The width in bits of the ALT_USB_DEV_DIEPINT1_INTKNTXFEMP register field.

#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_SET_MSK   0x00000010

The mask used to set the ALT_USB_DEV_DIEPINT1_INTKNTXFEMP register field value.

#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_CLR_MSK   0xffffffef

The mask used to clear the ALT_USB_DEV_DIEPINT1_INTKNTXFEMP register field value.

#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_RESET   0x0

The reset value of the ALT_USB_DEV_DIEPINT1_INTKNTXFEMP register field.

#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_GET (   value)    (((value) & 0x00000010) >> 4)

Extracts the ALT_USB_DEV_DIEPINT1_INTKNTXFEMP field value from a register.

#define ALT_USB_DEV_DIEPINT1_INTKNTXFEMP_SET (   value)    (((value) << 4) & 0x00000010)

Produces a ALT_USB_DEV_DIEPINT1_INTKNTXFEMP register field value suitable for setting the register.

#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_E_INACT   0x0

Enumerated value for register field ALT_USB_DEV_DIEPINT1_INTKNEPMIS

No interrupt

#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_E_ACT   0x1

Enumerated value for register field ALT_USB_DEV_DIEPINT1_INTKNEPMIS

IN Token Received with EP Mismatch interrupt

#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_LSB   5

The Least Significant Bit (LSB) position of the ALT_USB_DEV_DIEPINT1_INTKNEPMIS register field.

#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_MSB   5

The Most Significant Bit (MSB) position of the ALT_USB_DEV_DIEPINT1_INTKNEPMIS register field.

#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_WIDTH   1

The width in bits of the ALT_USB_DEV_DIEPINT1_INTKNEPMIS register field.

#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_SET_MSK   0x00000020

The mask used to set the ALT_USB_DEV_DIEPINT1_INTKNEPMIS register field value.

#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_CLR_MSK   0xffffffdf

The mask used to clear the ALT_USB_DEV_DIEPINT1_INTKNEPMIS register field value.

#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_RESET   0x0

The reset value of the ALT_USB_DEV_DIEPINT1_INTKNEPMIS register field.

#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_GET (   value)    (((value) & 0x00000020) >> 5)

Extracts the ALT_USB_DEV_DIEPINT1_INTKNEPMIS field value from a register.

#define ALT_USB_DEV_DIEPINT1_INTKNEPMIS_SET (   value)    (((value) << 5) & 0x00000020)

Produces a ALT_USB_DEV_DIEPINT1_INTKNEPMIS register field value suitable for setting the register.

#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_E_INACT   0x0

Enumerated value for register field ALT_USB_DEV_DIEPINT1_INEPNAKEFF

No interrupt

#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_E_ACT   0x1

Enumerated value for register field ALT_USB_DEV_DIEPINT1_INEPNAKEFF

IN Endpoint NAK Effective interrupt

#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_LSB   6

The Least Significant Bit (LSB) position of the ALT_USB_DEV_DIEPINT1_INEPNAKEFF register field.

#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_MSB   6

The Most Significant Bit (MSB) position of the ALT_USB_DEV_DIEPINT1_INEPNAKEFF register field.

#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_WIDTH   1

The width in bits of the ALT_USB_DEV_DIEPINT1_INEPNAKEFF register field.

#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_SET_MSK   0x00000040

The mask used to set the ALT_USB_DEV_DIEPINT1_INEPNAKEFF register field value.

#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_CLR_MSK   0xffffffbf

The mask used to clear the ALT_USB_DEV_DIEPINT1_INEPNAKEFF register field value.

#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_RESET   0x0

The reset value of the ALT_USB_DEV_DIEPINT1_INEPNAKEFF register field.

#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_GET (   value)    (((value) & 0x00000040) >> 6)

Extracts the ALT_USB_DEV_DIEPINT1_INEPNAKEFF field value from a register.

#define ALT_USB_DEV_DIEPINT1_INEPNAKEFF_SET (   value)    (((value) << 6) & 0x00000040)

Produces a ALT_USB_DEV_DIEPINT1_INEPNAKEFF register field value suitable for setting the register.

#define ALT_USB_DEV_DIEPINT1_TXFEMP_E_INACT   0x0

Enumerated value for register field ALT_USB_DEV_DIEPINT1_TXFEMP

No interrupt

#define ALT_USB_DEV_DIEPINT1_TXFEMP_E_ACT   0x1

Enumerated value for register field ALT_USB_DEV_DIEPINT1_TXFEMP

Transmit FIFO Empty interrupt

#define ALT_USB_DEV_DIEPINT1_TXFEMP_LSB   7

The Least Significant Bit (LSB) position of the ALT_USB_DEV_DIEPINT1_TXFEMP register field.

#define ALT_USB_DEV_DIEPINT1_TXFEMP_MSB   7

The Most Significant Bit (MSB) position of the ALT_USB_DEV_DIEPINT1_TXFEMP register field.

#define ALT_USB_DEV_DIEPINT1_TXFEMP_WIDTH   1

The width in bits of the ALT_USB_DEV_DIEPINT1_TXFEMP register field.

#define ALT_USB_DEV_DIEPINT1_TXFEMP_SET_MSK   0x00000080

The mask used to set the ALT_USB_DEV_DIEPINT1_TXFEMP register field value.

#define ALT_USB_DEV_DIEPINT1_TXFEMP_CLR_MSK   0xffffff7f

The mask used to clear the ALT_USB_DEV_DIEPINT1_TXFEMP register field value.

#define ALT_USB_DEV_DIEPINT1_TXFEMP_RESET   0x1

The reset value of the ALT_USB_DEV_DIEPINT1_TXFEMP register field.

#define ALT_USB_DEV_DIEPINT1_TXFEMP_GET (   value)    (((value) & 0x00000080) >> 7)

Extracts the ALT_USB_DEV_DIEPINT1_TXFEMP field value from a register.

#define ALT_USB_DEV_DIEPINT1_TXFEMP_SET (   value)    (((value) << 7) & 0x00000080)

Produces a ALT_USB_DEV_DIEPINT1_TXFEMP register field value suitable for setting the register.

#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_E_INACT   0x0

Enumerated value for register field ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN

No interrupt

#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_E_ACT   0x1

Enumerated value for register field ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN

Fifo Underrun interrupt

#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_LSB   8

The Least Significant Bit (LSB) position of the ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN register field.

#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_MSB   8

The Most Significant Bit (MSB) position of the ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN register field.

#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_WIDTH   1

The width in bits of the ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN register field.

#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_SET_MSK   0x00000100

The mask used to set the ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN register field value.

#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_CLR_MSK   0xfffffeff

The mask used to clear the ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN register field value.

#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_RESET   0x0

The reset value of the ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN register field.

#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_GET (   value)    (((value) & 0x00000100) >> 8)

Extracts the ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN field value from a register.

#define ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN_SET (   value)    (((value) << 8) & 0x00000100)

Produces a ALT_USB_DEV_DIEPINT1_TXFIFOUNDRN register field value suitable for setting the register.

#define ALT_USB_DEV_DIEPINT1_BNAINTR_E_INACT   0x0

Enumerated value for register field ALT_USB_DEV_DIEPINT1_BNAINTR

No interrupt

#define ALT_USB_DEV_DIEPINT1_BNAINTR_E_ACT   0x1

Enumerated value for register field ALT_USB_DEV_DIEPINT1_BNAINTR

BNA interrupt

#define ALT_USB_DEV_DIEPINT1_BNAINTR_LSB   9

The Least Significant Bit (LSB) position of the ALT_USB_DEV_DIEPINT1_BNAINTR register field.

#define ALT_USB_DEV_DIEPINT1_BNAINTR_MSB   9

The Most Significant Bit (MSB) position of the ALT_USB_DEV_DIEPINT1_BNAINTR register field.

#define ALT_USB_DEV_DIEPINT1_BNAINTR_WIDTH   1

The width in bits of the ALT_USB_DEV_DIEPINT1_BNAINTR register field.

#define ALT_USB_DEV_DIEPINT1_BNAINTR_SET_MSK   0x00000200

The mask used to set the ALT_USB_DEV_DIEPINT1_BNAINTR register field value.

#define ALT_USB_DEV_DIEPINT1_BNAINTR_CLR_MSK   0xfffffdff

The mask used to clear the ALT_USB_DEV_DIEPINT1_BNAINTR register field value.

#define ALT_USB_DEV_DIEPINT1_BNAINTR_RESET   0x0

The reset value of the ALT_USB_DEV_DIEPINT1_BNAINTR register field.

#define ALT_USB_DEV_DIEPINT1_BNAINTR_GET (   value)    (((value) & 0x00000200) >> 9)

Extracts the ALT_USB_DEV_DIEPINT1_BNAINTR field value from a register.

#define ALT_USB_DEV_DIEPINT1_BNAINTR_SET (   value)    (((value) << 9) & 0x00000200)

Produces a ALT_USB_DEV_DIEPINT1_BNAINTR register field value suitable for setting the register.

#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_E_INACT   0x0

Enumerated value for register field ALT_USB_DEV_DIEPINT1_PKTDRPSTS

No interrupt

#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_E_ACT   0x1

Enumerated value for register field ALT_USB_DEV_DIEPINT1_PKTDRPSTS

Packet Drop Status interrupt

#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_LSB   11

The Least Significant Bit (LSB) position of the ALT_USB_DEV_DIEPINT1_PKTDRPSTS register field.

#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_MSB   11

The Most Significant Bit (MSB) position of the ALT_USB_DEV_DIEPINT1_PKTDRPSTS register field.

#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_WIDTH   1

The width in bits of the ALT_USB_DEV_DIEPINT1_PKTDRPSTS register field.

#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_SET_MSK   0x00000800

The mask used to set the ALT_USB_DEV_DIEPINT1_PKTDRPSTS register field value.

#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_CLR_MSK   0xfffff7ff

The mask used to clear the ALT_USB_DEV_DIEPINT1_PKTDRPSTS register field value.

#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_RESET   0x0

The reset value of the ALT_USB_DEV_DIEPINT1_PKTDRPSTS register field.

#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_GET (   value)    (((value) & 0x00000800) >> 11)

Extracts the ALT_USB_DEV_DIEPINT1_PKTDRPSTS field value from a register.

#define ALT_USB_DEV_DIEPINT1_PKTDRPSTS_SET (   value)    (((value) << 11) & 0x00000800)

Produces a ALT_USB_DEV_DIEPINT1_PKTDRPSTS register field value suitable for setting the register.

#define ALT_USB_DEV_DIEPINT1_BBLEERR_E_INACT   0x0

Enumerated value for register field ALT_USB_DEV_DIEPINT1_BBLEERR

No interrupt

#define ALT_USB_DEV_DIEPINT1_BBLEERR_E_ACT   0x1

Enumerated value for register field ALT_USB_DEV_DIEPINT1_BBLEERR

BbleErr interrupt

#define ALT_USB_DEV_DIEPINT1_BBLEERR_LSB   12

The Least Significant Bit (LSB) position of the ALT_USB_DEV_DIEPINT1_BBLEERR register field.

#define ALT_USB_DEV_DIEPINT1_BBLEERR_MSB   12

The Most Significant Bit (MSB) position of the ALT_USB_DEV_DIEPINT1_BBLEERR register field.

#define ALT_USB_DEV_DIEPINT1_BBLEERR_WIDTH   1

The width in bits of the ALT_USB_DEV_DIEPINT1_BBLEERR register field.

#define ALT_USB_DEV_DIEPINT1_BBLEERR_SET_MSK   0x00001000

The mask used to set the ALT_USB_DEV_DIEPINT1_BBLEERR register field value.

#define ALT_USB_DEV_DIEPINT1_BBLEERR_CLR_MSK   0xffffefff

The mask used to clear the ALT_USB_DEV_DIEPINT1_BBLEERR register field value.

#define ALT_USB_DEV_DIEPINT1_BBLEERR_RESET   0x0

The reset value of the ALT_USB_DEV_DIEPINT1_BBLEERR register field.

#define ALT_USB_DEV_DIEPINT1_BBLEERR_GET (   value)    (((value) & 0x00001000) >> 12)

Extracts the ALT_USB_DEV_DIEPINT1_BBLEERR field value from a register.

#define ALT_USB_DEV_DIEPINT1_BBLEERR_SET (   value)    (((value) << 12) & 0x00001000)

Produces a ALT_USB_DEV_DIEPINT1_BBLEERR register field value suitable for setting the register.

#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_E_INACT   0x0

Enumerated value for register field ALT_USB_DEV_DIEPINT1_NAKINTRPT

No interrupt

#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_E_ACT   0x1

Enumerated value for register field ALT_USB_DEV_DIEPINT1_NAKINTRPT

NAK Interrupt

#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_LSB   13

The Least Significant Bit (LSB) position of the ALT_USB_DEV_DIEPINT1_NAKINTRPT register field.

#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_MSB   13

The Most Significant Bit (MSB) position of the ALT_USB_DEV_DIEPINT1_NAKINTRPT register field.

#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_WIDTH   1

The width in bits of the ALT_USB_DEV_DIEPINT1_NAKINTRPT register field.

#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_SET_MSK   0x00002000

The mask used to set the ALT_USB_DEV_DIEPINT1_NAKINTRPT register field value.

#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_CLR_MSK   0xffffdfff

The mask used to clear the ALT_USB_DEV_DIEPINT1_NAKINTRPT register field value.

#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_RESET   0x0

The reset value of the ALT_USB_DEV_DIEPINT1_NAKINTRPT register field.

#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_GET (   value)    (((value) & 0x00002000) >> 13)

Extracts the ALT_USB_DEV_DIEPINT1_NAKINTRPT field value from a register.

#define ALT_USB_DEV_DIEPINT1_NAKINTRPT_SET (   value)    (((value) << 13) & 0x00002000)

Produces a ALT_USB_DEV_DIEPINT1_NAKINTRPT register field value suitable for setting the register.

#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_E_INACT   0x0

Enumerated value for register field ALT_USB_DEV_DIEPINT1_NYETINTRPT

No interrupt

#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_E_ACT   0x1

Enumerated value for register field ALT_USB_DEV_DIEPINT1_NYETINTRPT

NYET Interrupt

#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_LSB   14

The Least Significant Bit (LSB) position of the ALT_USB_DEV_DIEPINT1_NYETINTRPT register field.

#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_MSB   14

The Most Significant Bit (MSB) position of the ALT_USB_DEV_DIEPINT1_NYETINTRPT register field.

#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_WIDTH   1

The width in bits of the ALT_USB_DEV_DIEPINT1_NYETINTRPT register field.

#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_SET_MSK   0x00004000

The mask used to set the ALT_USB_DEV_DIEPINT1_NYETINTRPT register field value.

#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_CLR_MSK   0xffffbfff

The mask used to clear the ALT_USB_DEV_DIEPINT1_NYETINTRPT register field value.

#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_RESET   0x0

The reset value of the ALT_USB_DEV_DIEPINT1_NYETINTRPT register field.

#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_GET (   value)    (((value) & 0x00004000) >> 14)

Extracts the ALT_USB_DEV_DIEPINT1_NYETINTRPT field value from a register.

#define ALT_USB_DEV_DIEPINT1_NYETINTRPT_SET (   value)    (((value) << 14) & 0x00004000)

Produces a ALT_USB_DEV_DIEPINT1_NYETINTRPT register field value suitable for setting the register.

#define ALT_USB_DEV_DIEPINT1_OFST   0x128

The byte offset of the ALT_USB_DEV_DIEPINT1 register from the beginning of the component.

#define ALT_USB_DEV_DIEPINT1_ADDR (   base)    ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_USB_DEV_DIEPINT1_OFST))

The address of the ALT_USB_DEV_DIEPINT1 register.

Typedef Documentation

The typedef declaration for register ALT_USB_DEV_DIEPINT1.