Altera SoCAL  16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
 All Data Structures Variables Typedefs Groups
Register : DFIFO Software Config Register - gdfifocfg

Description

Specifies whether Dedicated Transmit FIFOs should be enabled in device mode.

Register Layout

Bits Access Reset Description
[15:0] RW 0x2000 DFIFO Software Config
[31:16] RW 0x1f80 End Point Info Basr Addr

Field : DFIFO Software Config - gdfifocfg

This field is for dynamic programming of the DFIFO Size. This value takes effect only when the application programs a non zero value to this register. The otg core does not have any corrective logic if the FIFO sizes are programmed incorrectly.

Field Access Macros:

#define ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG_LSB   0
 
#define ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG_MSB   15
 
#define ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG_WIDTH   16
 
#define ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG_SET_MSK   0x0000ffff
 
#define ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG_CLR_MSK   0xffff0000
 
#define ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG_RESET   0x2000
 
#define ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG_GET(value)   (((value) & 0x0000ffff) >> 0)
 
#define ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG_SET(value)   (((value) << 0) & 0x0000ffff)
 

Field : End Point Info Basr Addr - epinfobaseaddr

This field provides the start address of the EP info controller.

Field Access Macros:

#define ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR_LSB   16
 
#define ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR_MSB   31
 
#define ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR_WIDTH   16
 
#define ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR_SET_MSK   0xffff0000
 
#define ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR_CLR_MSK   0x0000ffff
 
#define ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR_RESET   0x1f80
 
#define ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR_GET(value)   (((value) & 0xffff0000) >> 16)
 
#define ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR_SET(value)   (((value) << 16) & 0xffff0000)
 

Data Structures

struct  ALT_USB_GLOB_GDFIFOCFG_s
 

Macros

#define ALT_USB_GLOB_GDFIFOCFG_OFST   0x5c
 
#define ALT_USB_GLOB_GDFIFOCFG_ADDR(base)   ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_USB_GLOB_GDFIFOCFG_OFST))
 

Typedefs

typedef struct
ALT_USB_GLOB_GDFIFOCFG_s 
ALT_USB_GLOB_GDFIFOCFG_t
 

Data Structure Documentation

struct ALT_USB_GLOB_GDFIFOCFG_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_GDFIFOCFG.

Data Fields
uint32_t gdfifocfg: 16 DFIFO Software Config
uint32_t epinfobaseaddr: 16 End Point Info Basr Addr

Macro Definitions

#define ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG_LSB   0

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

#define ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG_MSB   15

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

#define ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG_WIDTH   16

The width in bits of the ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG register field.

#define ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG_SET_MSK   0x0000ffff

The mask used to set the ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG register field value.

#define ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG_CLR_MSK   0xffff0000

The mask used to clear the ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG register field value.

#define ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG_RESET   0x2000

The reset value of the ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG register field.

#define ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG_GET (   value)    (((value) & 0x0000ffff) >> 0)

Extracts the ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG field value from a register.

#define ALT_USB_GLOB_GDFIFOCFG_GDFIFOCFG_SET (   value)    (((value) << 0) & 0x0000ffff)

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

#define ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR_LSB   16

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

#define ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR_MSB   31

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

#define ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR_WIDTH   16

The width in bits of the ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR register field.

#define ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR_SET_MSK   0xffff0000

The mask used to set the ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR register field value.

#define ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR_CLR_MSK   0x0000ffff

The mask used to clear the ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR register field value.

#define ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR_RESET   0x1f80

The reset value of the ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR register field.

#define ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR_GET (   value)    (((value) & 0xffff0000) >> 16)

Extracts the ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR field value from a register.

#define ALT_USB_GLOB_GDFIFOCFG_EPINFOBASEADDR_SET (   value)    (((value) << 16) & 0xffff0000)

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

#define ALT_USB_GLOB_GDFIFOCFG_OFST   0x5c

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

#define ALT_USB_GLOB_GDFIFOCFG_ADDR (   base)    ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_USB_GLOB_GDFIFOCFG_OFST))

The address of the ALT_USB_GLOB_GDFIFOCFG register.

Typedef Documentation

The typedef declaration for register ALT_USB_GLOB_GDFIFOCFG.