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

Description

This register can be used to configure the core after power-on or a change in mode. This register mainly contains AHB system-related configuration parameters. Do not change this register after the initial programming. The application must program this register before starting any transactions on either the AHB or the USB.

Register Layout

Bits Access Reset Description
[0] RW 0x0 Global Interrupt Mask
[4:1] RW 0x0 Burst Length Type
[5] RW 0x0 DMA Enable
[6] ??? 0x0 UNDEFINED
[7] RW 0x0 Non-Periodic TxFIFO Empty Level
[8] RW 0x0 Periodic TxFIFO Empty Leve
[20:9] ??? 0x0 UNDEFINED
[21] RW 0x0 Remote Memory Support
[22] RW 0x0 Notify All Dma Write Transactions
[31:23] ??? 0x0 UNDEFINED

Field : Global Interrupt Mask - glblintrmsk

Mode: Host and device. The application uses this bit to mask or unmask the interrupt line assertion to itself. Irrespective of this bits setting, the interrupt status registers are updated by the core.

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 : Burst Length Type - hbstlen

Mode:Host and device. This field is used in Internal DMA modes.

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 : DMA Enable - dmaen

Mode:Host and device. Enables switching from DMA mode to slave mode.

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 : Non-Periodic TxFIFO Empty Level - nptxfemplvl

Mode:Host and device. 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:

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 : Periodic TxFIFO Empty Leve - ptxfemplvl

Mode:Host only. 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.

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 : Remote Memory Support - remmemsupp

This bit is programmed to enable/disable the functionality to wait for the system DMA Done Signal for the DMA Write Transfers.

  • 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.
  • 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 wait for the system DMA Done Signal for the DMA Write Transfers 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

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 : 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.

Field Enumeration Values:

Enum Value Description
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
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

Field Access Macros:

#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_E_ALLTRANS   0x1
 
#define ALT_USB_GLOB_GAHBCFG_NOTIALLDMAWRIT_E_LASTTRANS   0x0
 
#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)
 

Data Structures

struct  ALT_USB_GLOB_GAHBCFG_s
 

Macros

#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 Global Interrupt Mask
uint32_t hbstlen: 4 Burst Length Type
uint32_t dmaen: 1 DMA Enable
uint32_t __pad0__: 1 UNDEFINED
uint32_t nptxfemplvl: 1 Non-Periodic TxFIFO Empty Level
uint32_t ptxfemplvl: 1 Periodic TxFIFO Empty Leve
uint32_t __pad1__: 12 UNDEFINED
uint32_t remmemsupp: 1 Remote Memory Support
uint32_t notialldmawrit: 1 Notify All Dma Write Transactions
uint32_t __pad2__: 9 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_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_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_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_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.