![]() |
Altera SoCAL
16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
|
Contains fields that control operating functions.
Register Layout
Bits | Access | Reset | Description |
---|---|---|---|
[0] | RW | 0x0 | Enable |
[1] | RW | 0x1 | Response Mode |
[31:2] | ??? | 0x0 | UNDEFINED |
Field : Enable - wdt_en | ||||||||||
This bit is used to enable and disable the watchdog. When disabled, the counter does not decrement. Thus, no interrupts or warm reset requests are generated. Once this bit has been enabled, it can only be cleared only by resetting the watchdog. Field Enumeration Values:
Field Access Macros: | ||||||||||
#define | ALT_L4WD_CR_WDT_EN_E_DISD 0x0 | |||||||||
#define | ALT_L4WD_CR_WDT_EN_E_END 0x1 | |||||||||
#define | ALT_L4WD_CR_WDT_EN_LSB 0 | |||||||||
#define | ALT_L4WD_CR_WDT_EN_MSB 0 | |||||||||
#define | ALT_L4WD_CR_WDT_EN_WIDTH 1 | |||||||||
#define | ALT_L4WD_CR_WDT_EN_SET_MSK 0x00000001 | |||||||||
#define | ALT_L4WD_CR_WDT_EN_CLR_MSK 0xfffffffe | |||||||||
#define | ALT_L4WD_CR_WDT_EN_RESET 0x0 | |||||||||
#define | ALT_L4WD_CR_WDT_EN_GET(value) (((value) & 0x00000001) >> 0) | |||||||||
#define | ALT_L4WD_CR_WDT_EN_SET(value) (((value) << 0) & 0x00000001) | |||||||||
Field : Response Mode - rmod | ||||||||||||||||
Selects the output response generated to a timeout. Field Enumeration Values:
Field Access Macros: | ||||||||||||||||
#define | ALT_L4WD_CR_RMOD_E_RST 0x0 | |||||||||||||||
#define | ALT_L4WD_CR_RMOD_E_IRQRST 0x1 | |||||||||||||||
#define | ALT_L4WD_CR_RMOD_LSB 1 | |||||||||||||||
#define | ALT_L4WD_CR_RMOD_MSB 1 | |||||||||||||||
#define | ALT_L4WD_CR_RMOD_WIDTH 1 | |||||||||||||||
#define | ALT_L4WD_CR_RMOD_SET_MSK 0x00000002 | |||||||||||||||
#define | ALT_L4WD_CR_RMOD_CLR_MSK 0xfffffffd | |||||||||||||||
#define | ALT_L4WD_CR_RMOD_RESET 0x1 | |||||||||||||||
#define | ALT_L4WD_CR_RMOD_GET(value) (((value) & 0x00000002) >> 1) | |||||||||||||||
#define | ALT_L4WD_CR_RMOD_SET(value) (((value) << 1) & 0x00000002) | |||||||||||||||
Data Structures | |
struct | ALT_L4WD_CR_s |
Macros | |
#define | ALT_L4WD_CR_OFST 0x0 |
#define | ALT_L4WD_CR_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_L4WD_CR_OFST)) |
Typedefs | |
typedef struct ALT_L4WD_CR_s | ALT_L4WD_CR_t |
struct ALT_L4WD_CR_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_L4WD_CR.
Data Fields | ||
---|---|---|
uint32_t | wdt_en: 1 | Enable |
uint32_t | rmod: 1 | Response Mode |
uint32_t | __pad0__: 30 | UNDEFINED |
#define ALT_L4WD_CR_WDT_EN_E_DISD 0x0 |
Enumerated value for register field ALT_L4WD_CR_WDT_EN
Watchdog disabled
#define ALT_L4WD_CR_WDT_EN_E_END 0x1 |
Enumerated value for register field ALT_L4WD_CR_WDT_EN
Watchdog enabled
#define ALT_L4WD_CR_WDT_EN_LSB 0 |
The Least Significant Bit (LSB) position of the ALT_L4WD_CR_WDT_EN register field.
#define ALT_L4WD_CR_WDT_EN_MSB 0 |
The Most Significant Bit (MSB) position of the ALT_L4WD_CR_WDT_EN register field.
#define ALT_L4WD_CR_WDT_EN_WIDTH 1 |
The width in bits of the ALT_L4WD_CR_WDT_EN register field.
#define ALT_L4WD_CR_WDT_EN_SET_MSK 0x00000001 |
The mask used to set the ALT_L4WD_CR_WDT_EN register field value.
#define ALT_L4WD_CR_WDT_EN_CLR_MSK 0xfffffffe |
The mask used to clear the ALT_L4WD_CR_WDT_EN register field value.
#define ALT_L4WD_CR_WDT_EN_RESET 0x0 |
The reset value of the ALT_L4WD_CR_WDT_EN register field.
#define ALT_L4WD_CR_WDT_EN_GET | ( | value | ) | (((value) & 0x00000001) >> 0) |
Extracts the ALT_L4WD_CR_WDT_EN field value from a register.
#define ALT_L4WD_CR_WDT_EN_SET | ( | value | ) | (((value) << 0) & 0x00000001) |
Produces a ALT_L4WD_CR_WDT_EN register field value suitable for setting the register.
#define ALT_L4WD_CR_RMOD_E_RST 0x0 |
Enumerated value for register field ALT_L4WD_CR_RMOD
Generate a warm reset request
#define ALT_L4WD_CR_RMOD_E_IRQRST 0x1 |
Enumerated value for register field ALT_L4WD_CR_RMOD
First generate an interrupt, and if it is not cleared by the time a second timeout occurs, then generate a warm reset request.
#define ALT_L4WD_CR_RMOD_LSB 1 |
The Least Significant Bit (LSB) position of the ALT_L4WD_CR_RMOD register field.
#define ALT_L4WD_CR_RMOD_MSB 1 |
The Most Significant Bit (MSB) position of the ALT_L4WD_CR_RMOD register field.
#define ALT_L4WD_CR_RMOD_WIDTH 1 |
The width in bits of the ALT_L4WD_CR_RMOD register field.
#define ALT_L4WD_CR_RMOD_SET_MSK 0x00000002 |
The mask used to set the ALT_L4WD_CR_RMOD register field value.
#define ALT_L4WD_CR_RMOD_CLR_MSK 0xfffffffd |
The mask used to clear the ALT_L4WD_CR_RMOD register field value.
#define ALT_L4WD_CR_RMOD_RESET 0x1 |
The reset value of the ALT_L4WD_CR_RMOD register field.
#define ALT_L4WD_CR_RMOD_GET | ( | value | ) | (((value) & 0x00000002) >> 1) |
Extracts the ALT_L4WD_CR_RMOD field value from a register.
#define ALT_L4WD_CR_RMOD_SET | ( | value | ) | (((value) << 1) & 0x00000002) |
Produces a ALT_L4WD_CR_RMOD register field value suitable for setting the register.
#define ALT_L4WD_CR_OFST 0x0 |
The byte offset of the ALT_L4WD_CR register from the beginning of the component.
#define ALT_L4WD_CR_ADDR | ( | base | ) | ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_L4WD_CR_OFST)) |
The address of the ALT_L4WD_CR register.
typedef struct ALT_L4WD_CR_s ALT_L4WD_CR_t |
The typedef declaration for register ALT_L4WD_CR.