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

Description

Device Threshold Control Register

Register Layout

Bits Access Reset Description
[0] RW 0x0 ALT_USB_DEV_DTHRCTL_NONISOTHREN
[1] RW 0x0 ALT_USB_DEV_DTHRCTL_ISOTHREN
[10:2] RW 0x8 ALT_USB_DEV_DTHRCTL_TXTHRLEN
[12:11] RW 0x0 ALT_USB_DEV_DTHRCTL_AHBTHRRATIO
[15:13] ??? 0x0 UNDEFINED
[16] RW 0x0 ALT_USB_DEV_DTHRCTL_RXTHREN
[25:17] RW 0x8 ALT_USB_DEV_DTHRCTL_RXTHRLEN
[26] ??? 0x1 UNDEFINED
[27] RW 0x1 ALT_USB_DEV_DTHRCTL_ARBPRKEN
[31:28] ??? 0x0 UNDEFINED

Field : nonisothren

Non-ISO IN Endpoints Threshold Enable. (NonISOThrEn)

When this bit is Set, the core enables thresholding For Non Isochronous IN

endpoints.

Field Enumeration Values:

Enum Value Description
ALT_USB_DEV_DTHRCTL_NONISOTHREN_E_DISD 0x0 No thresholding
ALT_USB_DEV_DTHRCTL_NONISOTHREN_E_END 0x1 Enable thresholding

Field Access Macros:

#define ALT_USB_DEV_DTHRCTL_NONISOTHREN_E_DISD   0x0
 
#define ALT_USB_DEV_DTHRCTL_NONISOTHREN_E_END   0x1
 
#define ALT_USB_DEV_DTHRCTL_NONISOTHREN_LSB   0
 
#define ALT_USB_DEV_DTHRCTL_NONISOTHREN_MSB   0
 
#define ALT_USB_DEV_DTHRCTL_NONISOTHREN_WIDTH   1
 
#define ALT_USB_DEV_DTHRCTL_NONISOTHREN_SET_MSK   0x00000001
 
#define ALT_USB_DEV_DTHRCTL_NONISOTHREN_CLR_MSK   0xfffffffe
 
#define ALT_USB_DEV_DTHRCTL_NONISOTHREN_RESET   0x0
 
#define ALT_USB_DEV_DTHRCTL_NONISOTHREN_GET(value)   (((value) & 0x00000001) >> 0)
 
#define ALT_USB_DEV_DTHRCTL_NONISOTHREN_SET(value)   (((value) << 0) & 0x00000001)
 

Field : isothren

ISO IN Endpoints Threshold Enable. (ISOThrEn)

When this bit is Set, the core enables thresholding For isochronous IN

endpoints.

Field Enumeration Values:

Enum Value Description
ALT_USB_DEV_DTHRCTL_ISOTHREN_E_DISD 0x0 No thresholding
ALT_USB_DEV_DTHRCTL_ISOTHREN_E_END 0x1 Enables thresholding

Field Access Macros:

#define ALT_USB_DEV_DTHRCTL_ISOTHREN_E_DISD   0x0
 
#define ALT_USB_DEV_DTHRCTL_ISOTHREN_E_END   0x1
 
#define ALT_USB_DEV_DTHRCTL_ISOTHREN_LSB   1
 
#define ALT_USB_DEV_DTHRCTL_ISOTHREN_MSB   1
 
#define ALT_USB_DEV_DTHRCTL_ISOTHREN_WIDTH   1
 
#define ALT_USB_DEV_DTHRCTL_ISOTHREN_SET_MSK   0x00000002
 
#define ALT_USB_DEV_DTHRCTL_ISOTHREN_CLR_MSK   0xfffffffd
 
#define ALT_USB_DEV_DTHRCTL_ISOTHREN_RESET   0x0
 
#define ALT_USB_DEV_DTHRCTL_ISOTHREN_GET(value)   (((value) & 0x00000002) >> 1)
 
#define ALT_USB_DEV_DTHRCTL_ISOTHREN_SET(value)   (((value) << 1) & 0x00000002)
 

Field : txthrlen

Transmit Threshold Length (TxThrLen)

This field specifies Transmit thresholding size in DWORDS. This also forms

the MAC threshold and specifies the amount of data in bytes to be in the

corresponding endpoint transmit FIFO, before the core can start transmit

on the USB. The threshold length has to be at least eight DWORDS when the

value of AHBThrRatio is 2'h00. In case the AHBThrRatio is non zero the

application needs to ensure that the AHB Threshold value does not go below

the recommended eight DWORD. This field controls both isochronous and

non-isochronous IN endpoint thresholds. The recommended value for ThrLen

is to be the same as the programmed AHB Burst Length (GAHBCFG.HBstLen).

Field Access Macros:

#define ALT_USB_DEV_DTHRCTL_TXTHRLEN_LSB   2
 
#define ALT_USB_DEV_DTHRCTL_TXTHRLEN_MSB   10
 
#define ALT_USB_DEV_DTHRCTL_TXTHRLEN_WIDTH   9
 
#define ALT_USB_DEV_DTHRCTL_TXTHRLEN_SET_MSK   0x000007fc
 
#define ALT_USB_DEV_DTHRCTL_TXTHRLEN_CLR_MSK   0xfffff803
 
#define ALT_USB_DEV_DTHRCTL_TXTHRLEN_RESET   0x8
 
#define ALT_USB_DEV_DTHRCTL_TXTHRLEN_GET(value)   (((value) & 0x000007fc) >> 2)
 
#define ALT_USB_DEV_DTHRCTL_TXTHRLEN_SET(value)   (((value) << 2) & 0x000007fc)
 

Field : ahbthrratio

AHB Threshold Ratio (AHBThrRatio)

These bits define the ratio between the AHB threshold and the MAC threshold for the

transmit path only. The AHB threshold always remains less than or equal to the USB

threshold, because this does not increase overhead. Both the AHB and the MAC

threshold must be DWORD-aligned. The application needs to program TxThrLen and the

AHBThrRatio to make the AHB Threshold value DWORD aligned. If the AHB threshold

value is not DWORD aligned, the core might not behave correctly. When programming

the TxThrLen and AHBThrRatio, the application must ensure that the minimum AHB

threshold value does not go below 8 DWORDS to meet the USB turnaround time

requirements.

2'b00: AHB threshold = MAC threshold

2'b01: AHB threshold = MAC threshold / 2

2'b10: AHB threshold = MAC threshold / 4

2'b11: AHB threshold = MAC threshold / 8

Field Enumeration Values:

Enum Value Description
ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_E_THRESZERO 0x0 AHB threshold = MAC threshold
ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_E_THRESONE 0x1 AHB threshold = MAC threshold /2
ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_E_THRESTWO 0x2 AHB threshold = MAC threshold /4
ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_E_THRESTHREE 0x3 AHB threshold = MAC threshold /

Field Access Macros:

#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_E_THRESZERO   0x0
 
#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_E_THRESONE   0x1
 
#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_E_THRESTWO   0x2
 
#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_E_THRESTHREE   0x3
 
#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_LSB   11
 
#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_MSB   12
 
#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_WIDTH   2
 
#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_SET_MSK   0x00001800
 
#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_CLR_MSK   0xffffe7ff
 
#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_RESET   0x0
 
#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_GET(value)   (((value) & 0x00001800) >> 11)
 
#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_SET(value)   (((value) << 11) & 0x00001800)
 

Field : rxthren

Receive Threshold Enable (RxThrEn)

When this bit is Set, the core enables thresholding in the receive direction.

Note: We recommends that you do not enable RxThrEn, because it may cause

issues in the RxFIFO especially during error conditions such as RxError and Babble.

Field Enumeration Values:

Enum Value Description
ALT_USB_DEV_DTHRCTL_RXTHREN_E_DISD 0x0 Disable thresholding
ALT_USB_DEV_DTHRCTL_RXTHREN_E_END 0x1 Enable thresholding in the receive direction

Field Access Macros:

#define ALT_USB_DEV_DTHRCTL_RXTHREN_E_DISD   0x0
 
#define ALT_USB_DEV_DTHRCTL_RXTHREN_E_END   0x1
 
#define ALT_USB_DEV_DTHRCTL_RXTHREN_LSB   16
 
#define ALT_USB_DEV_DTHRCTL_RXTHREN_MSB   16
 
#define ALT_USB_DEV_DTHRCTL_RXTHREN_WIDTH   1
 
#define ALT_USB_DEV_DTHRCTL_RXTHREN_SET_MSK   0x00010000
 
#define ALT_USB_DEV_DTHRCTL_RXTHREN_CLR_MSK   0xfffeffff
 
#define ALT_USB_DEV_DTHRCTL_RXTHREN_RESET   0x0
 
#define ALT_USB_DEV_DTHRCTL_RXTHREN_GET(value)   (((value) & 0x00010000) >> 16)
 
#define ALT_USB_DEV_DTHRCTL_RXTHREN_SET(value)   (((value) << 16) & 0x00010000)
 

Field : rxthrlen

Receive Threshold Length (RxThrLen)

This field specifies Receive thresholding size in DWORDS.

This field also specifies the amount of data received on the USB before the

core can start transmitting on the AHB.

The threshold length has to be at least eight DWORDS.

The recommended value For ThrLen is to be the same as the programmed

AHB Burst Length (GAHBCFG.HBstLen).

Field Access Macros:

#define ALT_USB_DEV_DTHRCTL_RXTHRLEN_LSB   17
 
#define ALT_USB_DEV_DTHRCTL_RXTHRLEN_MSB   25
 
#define ALT_USB_DEV_DTHRCTL_RXTHRLEN_WIDTH   9
 
#define ALT_USB_DEV_DTHRCTL_RXTHRLEN_SET_MSK   0x03fe0000
 
#define ALT_USB_DEV_DTHRCTL_RXTHRLEN_CLR_MSK   0xfc01ffff
 
#define ALT_USB_DEV_DTHRCTL_RXTHRLEN_RESET   0x8
 
#define ALT_USB_DEV_DTHRCTL_RXTHRLEN_GET(value)   (((value) & 0x03fe0000) >> 17)
 
#define ALT_USB_DEV_DTHRCTL_RXTHRLEN_SET(value)   (((value) << 17) & 0x03fe0000)
 

Field : arbprken

Arbiter Parking Enable (ArbPrkEn)

This bit controls internal DMA arbiter parking For IN endpoints. When

thresholding is enabled and this bit is Set to one, Then the arbiter parks on the

IN endpoint For which there is a token received on the USB. This is done to

avoid getting into underrun conditions. By Default the parking is enabled.

Field Enumeration Values:

Enum Value Description
ALT_USB_DEV_DTHRCTL_ARBPRKEN_E_DISD 0x0 Disable DMA arbiter parking
ALT_USB_DEV_DTHRCTL_ARBPRKEN_E_END 0x1 Enable DMA arbiter parking for IN endpoints

Field Access Macros:

#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_E_DISD   0x0
 
#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_E_END   0x1
 
#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_LSB   27
 
#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_MSB   27
 
#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_WIDTH   1
 
#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_SET_MSK   0x08000000
 
#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_CLR_MSK   0xf7ffffff
 
#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_RESET   0x1
 
#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_GET(value)   (((value) & 0x08000000) >> 27)
 
#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_SET(value)   (((value) << 27) & 0x08000000)
 

Data Structures

struct  ALT_USB_DEV_DTHRCTL_s
 

Macros

#define ALT_USB_DEV_DTHRCTL_RESET   0x0c100020
 
#define ALT_USB_DEV_DTHRCTL_OFST   0x30
 
#define ALT_USB_DEV_DTHRCTL_ADDR(base)   ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_USB_DEV_DTHRCTL_OFST))
 

Typedefs

typedef struct
ALT_USB_DEV_DTHRCTL_s 
ALT_USB_DEV_DTHRCTL_t
 

Data Structure Documentation

struct ALT_USB_DEV_DTHRCTL_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_DTHRCTL.

Data Fields
uint32_t nonisothren: 1 ALT_USB_DEV_DTHRCTL_NONISOTHREN
uint32_t isothren: 1 ALT_USB_DEV_DTHRCTL_ISOTHREN
uint32_t txthrlen: 9 ALT_USB_DEV_DTHRCTL_TXTHRLEN
uint32_t ahbthrratio: 2 ALT_USB_DEV_DTHRCTL_AHBTHRRATIO
uint32_t __pad0__: 3 UNDEFINED
uint32_t rxthren: 1 ALT_USB_DEV_DTHRCTL_RXTHREN
uint32_t rxthrlen: 9 ALT_USB_DEV_DTHRCTL_RXTHRLEN
uint32_t __pad1__: 1 UNDEFINED
uint32_t arbprken: 1 ALT_USB_DEV_DTHRCTL_ARBPRKEN
uint32_t __pad2__: 4 UNDEFINED

Macro Definitions

#define ALT_USB_DEV_DTHRCTL_NONISOTHREN_E_DISD   0x0

Enumerated value for register field ALT_USB_DEV_DTHRCTL_NONISOTHREN

No thresholding

#define ALT_USB_DEV_DTHRCTL_NONISOTHREN_E_END   0x1

Enumerated value for register field ALT_USB_DEV_DTHRCTL_NONISOTHREN

Enable thresholding

#define ALT_USB_DEV_DTHRCTL_NONISOTHREN_LSB   0

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

#define ALT_USB_DEV_DTHRCTL_NONISOTHREN_MSB   0

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

#define ALT_USB_DEV_DTHRCTL_NONISOTHREN_WIDTH   1

The width in bits of the ALT_USB_DEV_DTHRCTL_NONISOTHREN register field.

#define ALT_USB_DEV_DTHRCTL_NONISOTHREN_SET_MSK   0x00000001

The mask used to set the ALT_USB_DEV_DTHRCTL_NONISOTHREN register field value.

#define ALT_USB_DEV_DTHRCTL_NONISOTHREN_CLR_MSK   0xfffffffe

The mask used to clear the ALT_USB_DEV_DTHRCTL_NONISOTHREN register field value.

#define ALT_USB_DEV_DTHRCTL_NONISOTHREN_RESET   0x0

The reset value of the ALT_USB_DEV_DTHRCTL_NONISOTHREN register field.

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

Extracts the ALT_USB_DEV_DTHRCTL_NONISOTHREN field value from a register.

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

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

#define ALT_USB_DEV_DTHRCTL_ISOTHREN_E_DISD   0x0

Enumerated value for register field ALT_USB_DEV_DTHRCTL_ISOTHREN

No thresholding

#define ALT_USB_DEV_DTHRCTL_ISOTHREN_E_END   0x1

Enumerated value for register field ALT_USB_DEV_DTHRCTL_ISOTHREN

Enables thresholding

#define ALT_USB_DEV_DTHRCTL_ISOTHREN_LSB   1

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

#define ALT_USB_DEV_DTHRCTL_ISOTHREN_MSB   1

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

#define ALT_USB_DEV_DTHRCTL_ISOTHREN_WIDTH   1

The width in bits of the ALT_USB_DEV_DTHRCTL_ISOTHREN register field.

#define ALT_USB_DEV_DTHRCTL_ISOTHREN_SET_MSK   0x00000002

The mask used to set the ALT_USB_DEV_DTHRCTL_ISOTHREN register field value.

#define ALT_USB_DEV_DTHRCTL_ISOTHREN_CLR_MSK   0xfffffffd

The mask used to clear the ALT_USB_DEV_DTHRCTL_ISOTHREN register field value.

#define ALT_USB_DEV_DTHRCTL_ISOTHREN_RESET   0x0

The reset value of the ALT_USB_DEV_DTHRCTL_ISOTHREN register field.

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

Extracts the ALT_USB_DEV_DTHRCTL_ISOTHREN field value from a register.

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

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

#define ALT_USB_DEV_DTHRCTL_TXTHRLEN_LSB   2

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

#define ALT_USB_DEV_DTHRCTL_TXTHRLEN_MSB   10

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

#define ALT_USB_DEV_DTHRCTL_TXTHRLEN_WIDTH   9

The width in bits of the ALT_USB_DEV_DTHRCTL_TXTHRLEN register field.

#define ALT_USB_DEV_DTHRCTL_TXTHRLEN_SET_MSK   0x000007fc

The mask used to set the ALT_USB_DEV_DTHRCTL_TXTHRLEN register field value.

#define ALT_USB_DEV_DTHRCTL_TXTHRLEN_CLR_MSK   0xfffff803

The mask used to clear the ALT_USB_DEV_DTHRCTL_TXTHRLEN register field value.

#define ALT_USB_DEV_DTHRCTL_TXTHRLEN_RESET   0x8

The reset value of the ALT_USB_DEV_DTHRCTL_TXTHRLEN register field.

#define ALT_USB_DEV_DTHRCTL_TXTHRLEN_GET (   value)    (((value) & 0x000007fc) >> 2)

Extracts the ALT_USB_DEV_DTHRCTL_TXTHRLEN field value from a register.

#define ALT_USB_DEV_DTHRCTL_TXTHRLEN_SET (   value)    (((value) << 2) & 0x000007fc)

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

#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_E_THRESZERO   0x0

Enumerated value for register field ALT_USB_DEV_DTHRCTL_AHBTHRRATIO

AHB threshold = MAC threshold

#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_E_THRESONE   0x1

Enumerated value for register field ALT_USB_DEV_DTHRCTL_AHBTHRRATIO

AHB threshold = MAC threshold /2

#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_E_THRESTWO   0x2

Enumerated value for register field ALT_USB_DEV_DTHRCTL_AHBTHRRATIO

AHB threshold = MAC threshold /4

#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_E_THRESTHREE   0x3

Enumerated value for register field ALT_USB_DEV_DTHRCTL_AHBTHRRATIO

AHB threshold = MAC threshold /

#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_LSB   11

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

#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_MSB   12

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

#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_WIDTH   2

The width in bits of the ALT_USB_DEV_DTHRCTL_AHBTHRRATIO register field.

#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_SET_MSK   0x00001800

The mask used to set the ALT_USB_DEV_DTHRCTL_AHBTHRRATIO register field value.

#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_CLR_MSK   0xffffe7ff

The mask used to clear the ALT_USB_DEV_DTHRCTL_AHBTHRRATIO register field value.

#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_RESET   0x0

The reset value of the ALT_USB_DEV_DTHRCTL_AHBTHRRATIO register field.

#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_GET (   value)    (((value) & 0x00001800) >> 11)

Extracts the ALT_USB_DEV_DTHRCTL_AHBTHRRATIO field value from a register.

#define ALT_USB_DEV_DTHRCTL_AHBTHRRATIO_SET (   value)    (((value) << 11) & 0x00001800)

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

#define ALT_USB_DEV_DTHRCTL_RXTHREN_E_DISD   0x0

Enumerated value for register field ALT_USB_DEV_DTHRCTL_RXTHREN

Disable thresholding

#define ALT_USB_DEV_DTHRCTL_RXTHREN_E_END   0x1

Enumerated value for register field ALT_USB_DEV_DTHRCTL_RXTHREN

Enable thresholding in the receive direction

#define ALT_USB_DEV_DTHRCTL_RXTHREN_LSB   16

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

#define ALT_USB_DEV_DTHRCTL_RXTHREN_MSB   16

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

#define ALT_USB_DEV_DTHRCTL_RXTHREN_WIDTH   1

The width in bits of the ALT_USB_DEV_DTHRCTL_RXTHREN register field.

#define ALT_USB_DEV_DTHRCTL_RXTHREN_SET_MSK   0x00010000

The mask used to set the ALT_USB_DEV_DTHRCTL_RXTHREN register field value.

#define ALT_USB_DEV_DTHRCTL_RXTHREN_CLR_MSK   0xfffeffff

The mask used to clear the ALT_USB_DEV_DTHRCTL_RXTHREN register field value.

#define ALT_USB_DEV_DTHRCTL_RXTHREN_RESET   0x0

The reset value of the ALT_USB_DEV_DTHRCTL_RXTHREN register field.

#define ALT_USB_DEV_DTHRCTL_RXTHREN_GET (   value)    (((value) & 0x00010000) >> 16)

Extracts the ALT_USB_DEV_DTHRCTL_RXTHREN field value from a register.

#define ALT_USB_DEV_DTHRCTL_RXTHREN_SET (   value)    (((value) << 16) & 0x00010000)

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

#define ALT_USB_DEV_DTHRCTL_RXTHRLEN_LSB   17

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

#define ALT_USB_DEV_DTHRCTL_RXTHRLEN_MSB   25

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

#define ALT_USB_DEV_DTHRCTL_RXTHRLEN_WIDTH   9

The width in bits of the ALT_USB_DEV_DTHRCTL_RXTHRLEN register field.

#define ALT_USB_DEV_DTHRCTL_RXTHRLEN_SET_MSK   0x03fe0000

The mask used to set the ALT_USB_DEV_DTHRCTL_RXTHRLEN register field value.

#define ALT_USB_DEV_DTHRCTL_RXTHRLEN_CLR_MSK   0xfc01ffff

The mask used to clear the ALT_USB_DEV_DTHRCTL_RXTHRLEN register field value.

#define ALT_USB_DEV_DTHRCTL_RXTHRLEN_RESET   0x8

The reset value of the ALT_USB_DEV_DTHRCTL_RXTHRLEN register field.

#define ALT_USB_DEV_DTHRCTL_RXTHRLEN_GET (   value)    (((value) & 0x03fe0000) >> 17)

Extracts the ALT_USB_DEV_DTHRCTL_RXTHRLEN field value from a register.

#define ALT_USB_DEV_DTHRCTL_RXTHRLEN_SET (   value)    (((value) << 17) & 0x03fe0000)

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

#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_E_DISD   0x0

Enumerated value for register field ALT_USB_DEV_DTHRCTL_ARBPRKEN

Disable DMA arbiter parking

#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_E_END   0x1

Enumerated value for register field ALT_USB_DEV_DTHRCTL_ARBPRKEN

Enable DMA arbiter parking for IN endpoints

#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_LSB   27

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

#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_MSB   27

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

#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_WIDTH   1

The width in bits of the ALT_USB_DEV_DTHRCTL_ARBPRKEN register field.

#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_SET_MSK   0x08000000

The mask used to set the ALT_USB_DEV_DTHRCTL_ARBPRKEN register field value.

#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_CLR_MSK   0xf7ffffff

The mask used to clear the ALT_USB_DEV_DTHRCTL_ARBPRKEN register field value.

#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_RESET   0x1

The reset value of the ALT_USB_DEV_DTHRCTL_ARBPRKEN register field.

#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_GET (   value)    (((value) & 0x08000000) >> 27)

Extracts the ALT_USB_DEV_DTHRCTL_ARBPRKEN field value from a register.

#define ALT_USB_DEV_DTHRCTL_ARBPRKEN_SET (   value)    (((value) << 27) & 0x08000000)

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

#define ALT_USB_DEV_DTHRCTL_RESET   0x0c100020

The reset value of the ALT_USB_DEV_DTHRCTL register.

#define ALT_USB_DEV_DTHRCTL_OFST   0x30

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

#define ALT_USB_DEV_DTHRCTL_ADDR (   base)    ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_USB_DEV_DTHRCTL_OFST))

The address of the ALT_USB_DEV_DTHRCTL register.

Typedef Documentation

The typedef declaration for register ALT_USB_DEV_DTHRCTL.