Altera SoCAL  16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
 All Data Structures Variables Typedefs Groups
Register : gahbcfg

Description

AHB Configuration Register

Register Layout

Bits Access Reset Description
[0] RW 0x0 ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK
[4:1] RW 0x0 ALT_USB_GLOB_GAHBCFG_HBSTLEN
[5] RW 0x0 ALT_USB_GLOB_GAHBCFG_DMAEN
[6] ??? 0x0 UNDEFINED
[7] RW 0x0 ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL
[8] RW 0x0 ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL
[20:9] ??? 0x0 UNDEFINED
[21] RW 0x0 ALT_USB_GLOB_GAHBCFG_REMMEMSUPP
[22] RW 0x0 ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT
[23] RW 0x0 ALT_USB_GLOB_GAHBCFG_AHBSINGLE
[24] RW 0x0 ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS
[31:25] ??? 0x0 UNDEFINED

Field : glblintrmsk

Mode:Host and device

Global Interrupt Mask (GlblIntrMsk)

The application uses this bit to mask or unmask the interrupt line

assertion to itself. Irrespective of this bit's setting, the interrupt

status registers are updated by the core.

1'b0: Mask the interrupt assertion to the application.

1'b1: Unmask the interrupt assertion to the application.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_E_MSK 0x0 Mask the interrupt assertion to the application
ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_E_NOMSK 0x1 Unmask the interrupt assertion to the
: application.

Field Access Macros:

#define ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_E_MSK   0x0
 
#define ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_E_NOMSK   0x1
 
#define ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_LSB   0
 
#define ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_MSB   0
 
#define ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_WIDTH   1
 
#define ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_SET_MSK   0x00000001
 
#define ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_CLR_MSK   0xfffffffe
 
#define ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_RESET   0x0
 
#define ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_GET(value)   (((value) & 0x00000001) >> 0)
 
#define ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_SET(value)   (((value) << 0) & 0x00000001)
 

Field : hbstlen

Mode:Host and device

Burst Length/Type (HBstLen)

This field is used in both External and Internal DMA modes. In

External DMA mode, these bits appear on dma_burst[3:0] ports,

which can be used by an external wrapper to interface the

External DMA Controller interface to Synopsys DW_ahb_dmac

or ARM PrimeCell.

External DMA Modedefines the DMA burst length in terms of

32-bit words:

4'b0000: 1 word

4'b0001: 4 words

4'b0010: 8 words

4'b0011: 16 words

4'b0100: 32 words

4'b0101: 64 word

s

4'b0110: 128 words

4'b0111: 256 words

Others: Reserved

Internal DMA ModeAHB Master burst type:

4'b0000 Single

4'b0001 INCR

4'b0011 INCR4

4'b0101 INCR8

4'b0111 INCR16

Others: Reserved

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD1ORSINGLE 0x0 1 word or single
ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD4ORINCR 0x1 4 word or incr
ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD8 0x2 8 word
ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD16ORINCR4 0x3 16 word or incr4
ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD32 0x4 32 word
ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD64ORINCR8 0x5 64 word or incr8
ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD128 0x6 128 word
ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD256ORINCR16 0x7 256 word or incr16
ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORDX 0x8 Others reserved

Field Access Macros:

#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD1ORSINGLE   0x0
 
#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD4ORINCR   0x1
 
#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD8   0x2
 
#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD16ORINCR4   0x3
 
#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD32   0x4
 
#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD64ORINCR8   0x5
 
#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD128   0x6
 
#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD256ORINCR16   0x7
 
#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORDX   0x8
 
#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_LSB   1
 
#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_MSB   4
 
#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_WIDTH   4
 
#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_SET_MSK   0x0000001e
 
#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_CLR_MSK   0xffffffe1
 
#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_RESET   0x0
 
#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_GET(value)   (((value) & 0x0000001e) >> 1)
 
#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_SET(value)   (((value) << 1) & 0x0000001e)
 

Field : dmaen

Mode:Host and device

DMA Enable (DMAEn)

1'b0: Core operates in Slave mode

1'b1: Core operates in a DMA mode

This bit is always 0 when Slave-Only mode has been selected

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GAHBCFG_DMAEN_E_SLVMOD 0x0 Core operates in Slave mode
ALT_USB_GLOB_GAHBCFG_DMAEN_E_DMAMOD 0x1 Core operates in a DMA mode

Field Access Macros:

#define ALT_USB_GLOB_GAHBCFG_DMAEN_E_SLVMOD   0x0
 
#define ALT_USB_GLOB_GAHBCFG_DMAEN_E_DMAMOD   0x1
 
#define ALT_USB_GLOB_GAHBCFG_DMAEN_LSB   5
 
#define ALT_USB_GLOB_GAHBCFG_DMAEN_MSB   5
 
#define ALT_USB_GLOB_GAHBCFG_DMAEN_WIDTH   1
 
#define ALT_USB_GLOB_GAHBCFG_DMAEN_SET_MSK   0x00000020
 
#define ALT_USB_GLOB_GAHBCFG_DMAEN_CLR_MSK   0xffffffdf
 
#define ALT_USB_GLOB_GAHBCFG_DMAEN_RESET   0x0
 
#define ALT_USB_GLOB_GAHBCFG_DMAEN_GET(value)   (((value) & 0x00000020) >> 5)
 
#define ALT_USB_GLOB_GAHBCFG_DMAEN_SET(value)   (((value) << 5) & 0x00000020)
 

Field : nptxfemplvl

Mode:Host and device

Non-Periodic TxFIFO Empty Level (NPTxFEmpLvl)

This bit is used only in Slave mode.

In host mode and with Shared FIFO with device mode, this bit

indicates when the Non-Periodic TxFIFO Empty Interrupt bit in

the Core Interrupt register (GINTSTS.NPTxFEmp) is triggered.

With dedicated FIFO in device mode, this bit indicates when IN

endpoint Transmit FIFO empty interrupt (DIEPINTn.TxFEmp) is

triggered.

Host mode and with Shared FIFO with device mode:-

1'b0: GINTSTS.NPTxFEmp interrupt indicates that the Non-

Periodic TxFIFO is half empty

1'b1: GINTSTS.NPTxFEmp interrupt indicates that the Non-

Periodic TxFIFO is completely empty

Dedicated FIFO in device mode :-

1'b0: DIEPINTn.TxFEmp interrupt indicates that the IN

Endpoint TxFIFO is half empty

1'b1: DIEPINTn.TxFEmp interrupt indicates that the IN

Endpoint TxFIFO is completely empty

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_E_HALFEMPTY 0x0 DIEPINTn.TxFEmp interrupt indicates that the IN
: Endpoint TxFIFO is half empty or DIEPINTn.TxFEmp
: interrupt indicates that the IN Endpoint TxFIFO
: is half empty
ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_E_EMPTY 0x1 GINTSTS.NPTxFEmp interrupt indicates that the
: Non-Periodic TxFIFO is completely empty or
: DIEPINTn.TxFEmp interrupt indicates that the IN
: Endpoint TxFIFO is completely empty

Field Access Macros:

#define ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_E_HALFEMPTY   0x0
 
#define ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_E_EMPTY   0x1
 
#define ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_LSB   7
 
#define ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_MSB   7
 
#define ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_WIDTH   1
 
#define ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_SET_MSK   0x00000080
 
#define ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_CLR_MSK   0xffffff7f
 
#define ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_RESET   0x0
 
#define ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_GET(value)   (((value) & 0x00000080) >> 7)
 
#define ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_SET(value)   (((value) << 7) & 0x00000080)
 

Field : ptxfemplvl

Mode:Host only

Periodic TxFIFO Empty Level (PTxFEmpLvl)

Indicates when the Periodic TxFIFO Empty Interrupt bit in the

Core Interrupt register (GINTSTS.PTxFEmp) is triggered. This

bit is used only in Slave mode.

1'b0: GINTSTS.PTxFEmp interrupt indicates that the

Periodic TxFIFO is half empty

1'b1: GINTSTS.PTxFEmp interrupt indicates that the

Periodic TxFIFO is completely empty

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_E_HALFEMPTY 0x0 GINTSTS.PTxFEmp interrupt indicates that the
: Periodic TxFIFO is half empty
ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_E_EMPTY 0x1 GINTSTS.PTxFEmp interrupt indicates that the
: Periodic TxFIFO is completely empty

Field Access Macros:

#define ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_E_HALFEMPTY   0x0
 
#define ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_E_EMPTY   0x1
 
#define ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_LSB   8
 
#define ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_MSB   8
 
#define ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_WIDTH   1
 
#define ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_SET_MSK   0x00000100
 
#define ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_CLR_MSK   0xfffffeff
 
#define ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_RESET   0x0
 
#define ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_GET(value)   (((value) & 0x00000100) >> 8)
 
#define ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_SET(value)   (((value) << 8) & 0x00000100)
 

Field : remmemsupp

Remote Memory Support (RemMemSupp)

This bit is programmed to enable the functionality to wait for the system DMA

Done Signal for the DMA Write Transfers.

GAHBCFG.RemMemSupp=1

  • The int_dma_req output signal is asserted when HSOTG DMA starts

write transfer to the external memory. When the core is done with the

Transfers it asserts int_dma_done signal to flag the completion of DMA

writes from HSOTG. The core then waits for sys_dma_done signal from

the system to proceed further and complete the Data Transfer

corresponding to a particular Channel/Endpoint.

GAHBCFG.RemMemSupp=0

  • The int_dma_req and int_dma_done signals are not asserted and the

core proceeds with the assertion of the XferComp interrupt as soon as

the DMA write transfer is done at the HSOTG Core Boundary and it

doesn't wait for the sys_dma_done signal to complete the DATA transfers

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_E_DISD 0x0 Disable wait for system DMA Done Signal
ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_E_END 0x1 Enable wait for the system DMA Done Signal for
: the DMA Write Transfers

Field Access Macros:

#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_E_DISD   0x0
 
#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_E_END   0x1
 
#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_LSB   21
 
#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_MSB   21
 
#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_WIDTH   1
 
#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_SET_MSK   0x00200000
 
#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_CLR_MSK   0xffdfffff
 
#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_RESET   0x0
 
#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_GET(value)   (((value) & 0x00200000) >> 21)
 
#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_SET(value)   (((value) << 21) & 0x00200000)
 

Field : notialldmawrit

Notify All Dma Write Transactions (NotiAllDmaWrit)

This bit is programmed to enable the System DMA Done functionality for all

the DMA write Transactions corresponding to the Channel/Endpoint. This bit

is valid only when GAHBCFG.RemMemSupp is set to 1.

GAHBCFG.NotiAllDmaWrit = 1

  • HSOTG core asserts int_dma_req for all the DMA write transactions on

the AHB interface along with int_dma_done, chep_last_transact and

chep_number signal informations. The core waits for sys_dma_done

signal for all the DMA write transactions in order to complete the transfer

of a particular Channel/Endpoint.

GAHBCFG.NotiAllDmaWrit = 0

  • HSOTG core asserts int_dma_req signal only for the last transaction of

DMA write transfer corresponding to a particular Channel/Endpoint.

Similarly, the core waits for sys_dma_done signal only for that

transaction of DMA write to complete the transfer of a particular

Channel/Endpoint.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_E_LASTTRANS 0x0 HSOTG core asserts int_dma_req signal only for
: the last transaction of DMA write transfer
: corresponding to a particular Channel/Endpoint.
: Similarly, the core waits for sys_dma_done
: signal only for that transaction of DMA write to
: complete the transfer of a particular
: Channel/Endpoint
ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_E_ALLTRANS 0x1 HSOTG core asserts int_dma_req for all the DMA
: write transactions on the AHB interface along
: with int_dma_done, chep_last_transact and
: chep_number signal informations. The core waits
: for sys_dma_done signal for all the DMA write
: transactions in order to complete the transfer
: of a particular Channel/Endpoint

Field Access Macros:

#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_E_LASTTRANS   0x0
 
#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_E_ALLTRANS   0x1
 
#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_LSB   22
 
#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_MSB   22
 
#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_WIDTH   1
 
#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_SET_MSK   0x00400000
 
#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_CLR_MSK   0xffbfffff
 
#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_RESET   0x0
 
#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_GET(value)   (((value) & 0x00400000) >> 22)
 
#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_SET(value)   (((value) << 22) & 0x00400000)
 

Field : ahbsingle

AHB Single Support (AHBSingle)

This bit when programmed supports Single transfers for the remaining data in a

transfer when the DWC_otg core is operating in DMA mode.  

1'b0: This is the default mode. When this bit is set to 1'b0,

the remaining data in the transfer is sent using INCR burst size.  

1'b1: When set to 1'b1, the remaining data in a transfer is sent using Single

burst size.

Note: if this feature is enabled, the AHB RETRY and SPLIT transfers still have INCR

burst type. Enable this feature when the AHB Slave connected to the DWC_otg core does

not support INCR burst (and when Split, and Retry transactions are not being used

in the bus).

Field Access Macros:

#define ALT_USB_GLOB_GAHBCFG_AHBSINGLE_LSB   23
 
#define ALT_USB_GLOB_GAHBCFG_AHBSINGLE_MSB   23
 
#define ALT_USB_GLOB_GAHBCFG_AHBSINGLE_WIDTH   1
 
#define ALT_USB_GLOB_GAHBCFG_AHBSINGLE_SET_MSK   0x00800000
 
#define ALT_USB_GLOB_GAHBCFG_AHBSINGLE_CLR_MSK   0xff7fffff
 
#define ALT_USB_GLOB_GAHBCFG_AHBSINGLE_RESET   0x0
 
#define ALT_USB_GLOB_GAHBCFG_AHBSINGLE_GET(value)   (((value) & 0x00800000) >> 23)
 
#define ALT_USB_GLOB_GAHBCFG_AHBSINGLE_SET(value)   (((value) << 23) & 0x00800000)
 

Field : invdescendianess

Invert Descriptor Endianess (InvDescEndianess)

1’b0: Descriptor Endianness is same as AHB Master Endianness

1’b1: Descriptor Endianness is Little Endian if AHB Master Endianness is Big Endian.

Descriptor Endianness is Big Endian if AHB Master Endianness is Little Endian.

Field Access Macros:

#define ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS_LSB   24
 
#define ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS_MSB   24
 
#define ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS_WIDTH   1
 
#define ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS_SET_MSK   0x01000000
 
#define ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS_CLR_MSK   0xfeffffff
 
#define ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS_RESET   0x0
 
#define ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS_GET(value)   (((value) & 0x01000000) >> 24)
 
#define ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS_SET(value)   (((value) << 24) & 0x01000000)
 

Data Structures

struct  ALT_USB_GLOB_GAHBCFG_s
 

Macros

#define ALT_USB_GLOB_GAHBCFG_RESET   0x00000000
 
#define ALT_USB_GLOB_GAHBCFG_OFST   0x8
 
#define ALT_USB_GLOB_GAHBCFG_ADDR(base)   ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_USB_GLOB_GAHBCFG_OFST))
 

Typedefs

typedef struct
ALT_USB_GLOB_GAHBCFG_s 
ALT_USB_GLOB_GAHBCFG_t
 

Data Structure Documentation

struct ALT_USB_GLOB_GAHBCFG_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_GLOB_GAHBCFG.

Data Fields
uint32_t glblintrmsk: 1 ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK
uint32_t hbstlen: 4 ALT_USB_GLOB_GAHBCFG_HBSTLEN
uint32_t dmaen: 1 ALT_USB_GLOB_GAHBCFG_DMAEN
uint32_t __pad0__: 1 UNDEFINED
uint32_t nptxfemplvl: 1 ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL
uint32_t ptxfemplvl: 1 ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL
uint32_t __pad1__: 12 UNDEFINED
uint32_t remmemsupp: 1 ALT_USB_GLOB_GAHBCFG_REMMEMSUPP
uint32_t notialldmawrit: 1 ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT
uint32_t ahbsingle: 1 ALT_USB_GLOB_GAHBCFG_AHBSINGLE
uint32_t invdescendianess: 1 ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS
uint32_t __pad2__: 7 UNDEFINED

Macro Definitions

#define ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_E_MSK   0x0

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK

Mask the interrupt assertion to the application

#define ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_E_NOMSK   0x1

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK

Unmask the interrupt assertion to the application.

#define ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_LSB   0

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

#define ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_MSB   0

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

#define ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_WIDTH   1

The width in bits of the ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK register field.

#define ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_SET_MSK   0x00000001

The mask used to set the ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK register field value.

#define ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_CLR_MSK   0xfffffffe

The mask used to clear the ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK register field value.

#define ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK_RESET   0x0

The reset value of the ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK register field.

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

Extracts the ALT_USB_GLOB_GAHBCFG_GLBLINTRMSK field value from a register.

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

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

#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD1ORSINGLE   0x0

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_HBSTLEN

1 word or single

#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD4ORINCR   0x1

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_HBSTLEN

4 word or incr

#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD8   0x2

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_HBSTLEN

8 word

#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD16ORINCR4   0x3

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_HBSTLEN

16 word or incr4

#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD32   0x4

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_HBSTLEN

32 word

#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD64ORINCR8   0x5

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_HBSTLEN

64 word or incr8

#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD128   0x6

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_HBSTLEN

128 word

#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORD256ORINCR16   0x7

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_HBSTLEN

256 word or incr16

#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_E_WORDX   0x8

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_HBSTLEN

Others reserved

#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_LSB   1

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

#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_MSB   4

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

#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_WIDTH   4

The width in bits of the ALT_USB_GLOB_GAHBCFG_HBSTLEN register field.

#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_SET_MSK   0x0000001e

The mask used to set the ALT_USB_GLOB_GAHBCFG_HBSTLEN register field value.

#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_CLR_MSK   0xffffffe1

The mask used to clear the ALT_USB_GLOB_GAHBCFG_HBSTLEN register field value.

#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_RESET   0x0

The reset value of the ALT_USB_GLOB_GAHBCFG_HBSTLEN register field.

#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_GET (   value)    (((value) & 0x0000001e) >> 1)

Extracts the ALT_USB_GLOB_GAHBCFG_HBSTLEN field value from a register.

#define ALT_USB_GLOB_GAHBCFG_HBSTLEN_SET (   value)    (((value) << 1) & 0x0000001e)

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

#define ALT_USB_GLOB_GAHBCFG_DMAEN_E_SLVMOD   0x0

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_DMAEN

Core operates in Slave mode

#define ALT_USB_GLOB_GAHBCFG_DMAEN_E_DMAMOD   0x1

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_DMAEN

Core operates in a DMA mode

#define ALT_USB_GLOB_GAHBCFG_DMAEN_LSB   5

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

#define ALT_USB_GLOB_GAHBCFG_DMAEN_MSB   5

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

#define ALT_USB_GLOB_GAHBCFG_DMAEN_WIDTH   1

The width in bits of the ALT_USB_GLOB_GAHBCFG_DMAEN register field.

#define ALT_USB_GLOB_GAHBCFG_DMAEN_SET_MSK   0x00000020

The mask used to set the ALT_USB_GLOB_GAHBCFG_DMAEN register field value.

#define ALT_USB_GLOB_GAHBCFG_DMAEN_CLR_MSK   0xffffffdf

The mask used to clear the ALT_USB_GLOB_GAHBCFG_DMAEN register field value.

#define ALT_USB_GLOB_GAHBCFG_DMAEN_RESET   0x0

The reset value of the ALT_USB_GLOB_GAHBCFG_DMAEN register field.

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

Extracts the ALT_USB_GLOB_GAHBCFG_DMAEN field value from a register.

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

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

#define ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_E_HALFEMPTY   0x0

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL

DIEPINTn.TxFEmp interrupt indicates that the IN Endpoint TxFIFO is half empty or DIEPINTn.TxFEmp interrupt indicates that the IN Endpoint TxFIFO is half empty

#define ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_E_EMPTY   0x1

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL

GINTSTS.NPTxFEmp interrupt indicates that the Non-Periodic TxFIFO is completely empty or DIEPINTn.TxFEmp interrupt indicates that the IN Endpoint TxFIFO is completely empty

#define ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_LSB   7

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

#define ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_MSB   7

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

#define ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_WIDTH   1

The width in bits of the ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL register field.

#define ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_SET_MSK   0x00000080

The mask used to set the ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL register field value.

#define ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_CLR_MSK   0xffffff7f

The mask used to clear the ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL register field value.

#define ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL_RESET   0x0

The reset value of the ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL register field.

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

Extracts the ALT_USB_GLOB_GAHBCFG_NPTXFEMPLVL field value from a register.

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

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

#define ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_E_HALFEMPTY   0x0

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL

GINTSTS.PTxFEmp interrupt indicates that the Periodic TxFIFO is half empty

#define ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_E_EMPTY   0x1

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL

GINTSTS.PTxFEmp interrupt indicates that the Periodic TxFIFO is completely empty

#define ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_LSB   8

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

#define ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_MSB   8

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

#define ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_WIDTH   1

The width in bits of the ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL register field.

#define ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_SET_MSK   0x00000100

The mask used to set the ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL register field value.

#define ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_CLR_MSK   0xfffffeff

The mask used to clear the ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL register field value.

#define ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL_RESET   0x0

The reset value of the ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL register field.

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

Extracts the ALT_USB_GLOB_GAHBCFG_PTXFEMPLVL field value from a register.

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

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

#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_E_DISD   0x0

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_REMMEMSUPP

Disable wait for system DMA Done Signal

#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_E_END   0x1

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_REMMEMSUPP

Enable wait for the system DMA Done Signal for the DMA Write Transfers

#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_LSB   21

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

#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_MSB   21

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

#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_WIDTH   1

The width in bits of the ALT_USB_GLOB_GAHBCFG_REMMEMSUPP register field.

#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_SET_MSK   0x00200000

The mask used to set the ALT_USB_GLOB_GAHBCFG_REMMEMSUPP register field value.

#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_CLR_MSK   0xffdfffff

The mask used to clear the ALT_USB_GLOB_GAHBCFG_REMMEMSUPP register field value.

#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_RESET   0x0

The reset value of the ALT_USB_GLOB_GAHBCFG_REMMEMSUPP register field.

#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_GET (   value)    (((value) & 0x00200000) >> 21)

Extracts the ALT_USB_GLOB_GAHBCFG_REMMEMSUPP field value from a register.

#define ALT_USB_GLOB_GAHBCFG_REMMEMSUPP_SET (   value)    (((value) << 21) & 0x00200000)

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

#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_E_LASTTRANS   0x0

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT

HSOTG core asserts int_dma_req signal only for the last transaction of DMA write transfer corresponding to a particular Channel/Endpoint. Similarly, the core waits for sys_dma_done signal only for that transaction of DMA write to complete the transfer of a particular Channel/Endpoint

#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_E_ALLTRANS   0x1

Enumerated value for register field ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT

HSOTG core asserts int_dma_req for all the DMA write transactions on the AHB interface along with int_dma_done, chep_last_transact and chep_number signal informations. The core waits for sys_dma_done signal for all the DMA write transactions in order to complete the transfer of a particular Channel/Endpoint

#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_LSB   22

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

#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_MSB   22

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

#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_WIDTH   1

The width in bits of the ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT register field.

#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_SET_MSK   0x00400000

The mask used to set the ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT register field value.

#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_CLR_MSK   0xffbfffff

The mask used to clear the ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT register field value.

#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_RESET   0x0

The reset value of the ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT register field.

#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_GET (   value)    (((value) & 0x00400000) >> 22)

Extracts the ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT field value from a register.

#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_SET (   value)    (((value) << 22) & 0x00400000)

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

#define ALT_USB_GLOB_GAHBCFG_AHBSINGLE_LSB   23

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

#define ALT_USB_GLOB_GAHBCFG_AHBSINGLE_MSB   23

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

#define ALT_USB_GLOB_GAHBCFG_AHBSINGLE_WIDTH   1

The width in bits of the ALT_USB_GLOB_GAHBCFG_AHBSINGLE register field.

#define ALT_USB_GLOB_GAHBCFG_AHBSINGLE_SET_MSK   0x00800000

The mask used to set the ALT_USB_GLOB_GAHBCFG_AHBSINGLE register field value.

#define ALT_USB_GLOB_GAHBCFG_AHBSINGLE_CLR_MSK   0xff7fffff

The mask used to clear the ALT_USB_GLOB_GAHBCFG_AHBSINGLE register field value.

#define ALT_USB_GLOB_GAHBCFG_AHBSINGLE_RESET   0x0

The reset value of the ALT_USB_GLOB_GAHBCFG_AHBSINGLE register field.

#define ALT_USB_GLOB_GAHBCFG_AHBSINGLE_GET (   value)    (((value) & 0x00800000) >> 23)

Extracts the ALT_USB_GLOB_GAHBCFG_AHBSINGLE field value from a register.

#define ALT_USB_GLOB_GAHBCFG_AHBSINGLE_SET (   value)    (((value) << 23) & 0x00800000)

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

#define ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS_LSB   24

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

#define ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS_MSB   24

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

#define ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS_WIDTH   1

The width in bits of the ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS register field.

#define ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS_SET_MSK   0x01000000

The mask used to set the ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS register field value.

#define ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS_CLR_MSK   0xfeffffff

The mask used to clear the ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS register field value.

#define ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS_RESET   0x0

The reset value of the ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS register field.

#define ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS_GET (   value)    (((value) & 0x01000000) >> 24)

Extracts the ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS field value from a register.

#define ALT_USB_GLOB_GAHBCFG_INVDESCENDIANESS_SET (   value)    (((value) << 24) & 0x01000000)

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

#define ALT_USB_GLOB_GAHBCFG_RESET   0x00000000

The reset value of the ALT_USB_GLOB_GAHBCFG register.

#define ALT_USB_GLOB_GAHBCFG_OFST   0x8

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

#define ALT_USB_GLOB_GAHBCFG_ADDR (   base)    ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_USB_GLOB_GAHBCFG_OFST))

The address of the ALT_USB_GLOB_GAHBCFG register.

Typedef Documentation

The typedef declaration for register ALT_USB_GLOB_GAHBCFG.