![]() |
Altera SoCAL
16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
|
The PPS0 Width register contains the number of units of sub-second increment value between the rising and corresponding falling edges of the PPS0 signal output (ptp_pps_o[0]).
Register Layout
Bits | Access | Reset | Description |
---|---|---|---|
[31:0] | RW | 0x0 | PPS0 Output Signal Width |
Field : PPS0 Output Signal Width - ppswidth | |
These bits store the width between the rising edge and corresponding falling edge of the PPS0 signal output in terms of units of sub-second increment value. You need to program one value less than the required interval. For example, if PTP reference clock is 50 MHz (period of 20ns), and desired width between the rising and corresponding falling edges of PPS0 signal output is 80ns (that is, four units of sub-second increment value), then you should program value 3 (4-1) in this register. Note: The value programmed in this register must be lesser than the value programmed in Register 472 (PPS0 Interval Register). Field Access Macros: | |
#define | ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH_LSB 0 |
#define | ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH_MSB 31 |
#define | ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH_WIDTH 32 |
#define | ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH_SET_MSK 0xffffffff |
#define | ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH_CLR_MSK 0x00000000 |
#define | ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH_RESET 0x0 |
#define | ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH_GET(value) (((value) & 0xffffffff) >> 0) |
#define | ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH_SET(value) (((value) << 0) & 0xffffffff) |
Data Structures | |
struct | ALT_EMAC_GMAC_PPS0_WIDTH_s |
Macros | |
#define | ALT_EMAC_GMAC_PPS0_WIDTH_OFST 0x764 |
#define | ALT_EMAC_GMAC_PPS0_WIDTH_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_EMAC_GMAC_PPS0_WIDTH_OFST)) |
Typedefs | |
typedef struct ALT_EMAC_GMAC_PPS0_WIDTH_s | ALT_EMAC_GMAC_PPS0_WIDTH_t |
struct ALT_EMAC_GMAC_PPS0_WIDTH_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_EMAC_GMAC_PPS0_WIDTH.
Data Fields | ||
---|---|---|
uint32_t | ppswidth: 32 | PPS0 Output Signal Width |
#define ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH_LSB 0 |
The Least Significant Bit (LSB) position of the ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH register field.
#define ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH_MSB 31 |
The Most Significant Bit (MSB) position of the ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH register field.
#define ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH_WIDTH 32 |
The width in bits of the ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH register field.
#define ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH_SET_MSK 0xffffffff |
The mask used to set the ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH register field value.
#define ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH_CLR_MSK 0x00000000 |
The mask used to clear the ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH register field value.
#define ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH_RESET 0x0 |
The reset value of the ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH register field.
#define ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH_GET | ( | value | ) | (((value) & 0xffffffff) >> 0) |
Extracts the ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH field value from a register.
#define ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH_SET | ( | value | ) | (((value) << 0) & 0xffffffff) |
Produces a ALT_EMAC_GMAC_PPS0_WIDTH_PPSWIDTH register field value suitable for setting the register.
#define ALT_EMAC_GMAC_PPS0_WIDTH_OFST 0x764 |
The byte offset of the ALT_EMAC_GMAC_PPS0_WIDTH register from the beginning of the component.
#define ALT_EMAC_GMAC_PPS0_WIDTH_ADDR | ( | base | ) | ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_EMAC_GMAC_PPS0_WIDTH_OFST)) |
The address of the ALT_EMAC_GMAC_PPS0_WIDTH register.
typedef struct ALT_EMAC_GMAC_PPS0_WIDTH_s ALT_EMAC_GMAC_PPS0_WIDTH_t |
The typedef declaration for register ALT_EMAC_GMAC_PPS0_WIDTH.