![]() |
Altera SoCAL
16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
|
This register specifies the VBUS pulsing time during SRP.
Register Layout
Bits | Access | Reset | Description |
---|---|---|---|
[11:0] | RW | 0x5b8 | Device VBUS Pulsing Time |
[31:12] | ??? | 0x0 | UNDEFINED |
Field : Device VBUS Pulsing Time - dvbuspulse | |
Specifies the VBUS pulsing time during SRP. This value equals: VBUS pulsing time in PHY clocks/1,024 The value you use depends whether the PHY is operating at 30MHz (16-bit data width) or 60 MHz (8-bit data width). Field Access Macros: | |
#define | ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE_LSB 0 |
#define | ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE_MSB 11 |
#define | ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE_WIDTH 12 |
#define | ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE_SET_MSK 0x00000fff |
#define | ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE_CLR_MSK 0xfffff000 |
#define | ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE_RESET 0x5b8 |
#define | ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE_GET(value) (((value) & 0x00000fff) >> 0) |
#define | ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE_SET(value) (((value) << 0) & 0x00000fff) |
Data Structures | |
struct | ALT_USB_DEV_DVBUSPULSE_s |
Macros | |
#define | ALT_USB_DEV_DVBUSPULSE_OFST 0x2c |
#define | ALT_USB_DEV_DVBUSPULSE_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_USB_DEV_DVBUSPULSE_OFST)) |
Typedefs | |
typedef struct ALT_USB_DEV_DVBUSPULSE_s | ALT_USB_DEV_DVBUSPULSE_t |
struct ALT_USB_DEV_DVBUSPULSE_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_DVBUSPULSE.
Data Fields | ||
---|---|---|
uint32_t | dvbuspulse: 12 | Device VBUS Pulsing Time |
uint32_t | __pad0__: 20 | UNDEFINED |
#define ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE_LSB 0 |
The Least Significant Bit (LSB) position of the ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE register field.
#define ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE_MSB 11 |
The Most Significant Bit (MSB) position of the ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE register field.
#define ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE_WIDTH 12 |
The width in bits of the ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE register field.
#define ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE_SET_MSK 0x00000fff |
The mask used to set the ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE register field value.
#define ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE_CLR_MSK 0xfffff000 |
The mask used to clear the ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE register field value.
#define ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE_RESET 0x5b8 |
The reset value of the ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE register field.
#define ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE_GET | ( | value | ) | (((value) & 0x00000fff) >> 0) |
Extracts the ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE field value from a register.
#define ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE_SET | ( | value | ) | (((value) << 0) & 0x00000fff) |
Produces a ALT_USB_DEV_DVBUSPULSE_DVBUSPULSE register field value suitable for setting the register.
#define ALT_USB_DEV_DVBUSPULSE_OFST 0x2c |
The byte offset of the ALT_USB_DEV_DVBUSPULSE register from the beginning of the component.
#define ALT_USB_DEV_DVBUSPULSE_ADDR | ( | base | ) | ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_USB_DEV_DVBUSPULSE_OFST)) |
The address of the ALT_USB_DEV_DVBUSPULSE register.
typedef struct ALT_USB_DEV_DVBUSPULSE_s ALT_USB_DEV_DVBUSPULSE_t |
The typedef declaration for register ALT_USB_DEV_DVBUSPULSE.