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

Description

Contains fields that determine the watchdog timeout.

Register Layout

Bits Access Reset Description
[3:0] RW 0xf Timeout Period
[7:4] RW 0xf Timeout Period for Initialization
[31:8] ??? 0x0 UNDEFINED

Field : Timeout Period - top

This field is used to select the timeout period from which the watchdog counter restarts. A change of the timeout period takes effect only after the next counter restart (kick). The timeout period (in clocks) is:

t = 2**(16 + top)

Field Enumeration Values:

Enum Value Description
ALT_L4WD_TORR_TOP_E_TMO64K 0x0 Timeout = 65536 osc1_clk
ALT_L4WD_TORR_TOP_E_TMO128K 0x1 Timeout = 131072 osc1_clk
ALT_L4WD_TORR_TOP_E_TMO256K 0x2 Timeout = 262144 osc1_clk
ALT_L4WD_TORR_TOP_E_TMO512K 0x3 Timeout = 524288 osc1_clk
ALT_L4WD_TORR_TOP_E_TMO1M 0x4 Timeout = 1048576 osc1_clk
ALT_L4WD_TORR_TOP_E_TMO2M 0x5 Timeout = 2097152 osc1_clk
ALT_L4WD_TORR_TOP_E_TMO4M 0x6 Timeout = 4194304 osc1_clk
ALT_L4WD_TORR_TOP_E_TMO8M 0x7 Timeout = 8388608 osc1_clk
ALT_L4WD_TORR_TOP_E_TMO16M 0x8 Timeout = 16777216 osc1_clk
ALT_L4WD_TORR_TOP_E_TMO32M 0x9 Timeout = 33554432 osc1_clk
ALT_L4WD_TORR_TOP_E_TMO64M 0xa Timeout = 67108864 osc1_clk
ALT_L4WD_TORR_TOP_E_TMO128M 0xb Timeout = 134217728 osc1_clk
ALT_L4WD_TORR_TOP_E_TMO256M 0xc Timeout = 268435456 osc1_clk
ALT_L4WD_TORR_TOP_E_TMO512M 0xd Timeout = 536870912 osc1_clk
ALT_L4WD_TORR_TOP_E_TMO1G 0xe Timeout = 1073741824 osc1_clk
ALT_L4WD_TORR_TOP_E_TMO2G 0xf Timeout = 2147483648 osc1_clk

Field Access Macros:

#define ALT_L4WD_TORR_TOP_E_TMO64K   0x0
 
#define ALT_L4WD_TORR_TOP_E_TMO128K   0x1
 
#define ALT_L4WD_TORR_TOP_E_TMO256K   0x2
 
#define ALT_L4WD_TORR_TOP_E_TMO512K   0x3
 
#define ALT_L4WD_TORR_TOP_E_TMO1M   0x4
 
#define ALT_L4WD_TORR_TOP_E_TMO2M   0x5
 
#define ALT_L4WD_TORR_TOP_E_TMO4M   0x6
 
#define ALT_L4WD_TORR_TOP_E_TMO8M   0x7
 
#define ALT_L4WD_TORR_TOP_E_TMO16M   0x8
 
#define ALT_L4WD_TORR_TOP_E_TMO32M   0x9
 
#define ALT_L4WD_TORR_TOP_E_TMO64M   0xa
 
#define ALT_L4WD_TORR_TOP_E_TMO128M   0xb
 
#define ALT_L4WD_TORR_TOP_E_TMO256M   0xc
 
#define ALT_L4WD_TORR_TOP_E_TMO512M   0xd
 
#define ALT_L4WD_TORR_TOP_E_TMO1G   0xe
 
#define ALT_L4WD_TORR_TOP_E_TMO2G   0xf
 
#define ALT_L4WD_TORR_TOP_LSB   0
 
#define ALT_L4WD_TORR_TOP_MSB   3
 
#define ALT_L4WD_TORR_TOP_WIDTH   4
 
#define ALT_L4WD_TORR_TOP_SET_MSK   0x0000000f
 
#define ALT_L4WD_TORR_TOP_CLR_MSK   0xfffffff0
 
#define ALT_L4WD_TORR_TOP_RESET   0xf
 
#define ALT_L4WD_TORR_TOP_GET(value)   (((value) & 0x0000000f) >> 0)
 
#define ALT_L4WD_TORR_TOP_SET(value)   (((value) << 0) & 0x0000000f)
 

Field : Timeout Period for Initialization - top_init

Used to select the timeout period that the watchdog counter restarts from for the first counter restart (kick). This register should be written after reset and before the watchdog is enabled. A change of the TOP_INIT is seen only once the watchdog has been enabled, and any change after the first kick is not seen as subsequent kicks use the period specified by the TOP bits. The timeout period (in clocks) is:

t = 2**(16 + top_init)

Field Enumeration Values:

Enum Value Description
ALT_L4WD_TORR_TOP_INIT_E_TMO64K 0x0 Timeout = 65536 osc1_clk
ALT_L4WD_TORR_TOP_INIT_E_TMO128K 0x1 Timeout = 131072 osc1_clk
ALT_L4WD_TORR_TOP_INIT_E_TMO256K 0x2 Timeout = 262144 osc1_clk
ALT_L4WD_TORR_TOP_INIT_E_TMO512K 0x3 Timeout = 524288 osc1_clk
ALT_L4WD_TORR_TOP_INIT_E_TMO1M 0x4 Timeout = 1048576 osc1_clk
ALT_L4WD_TORR_TOP_INIT_E_TMO2M 0x5 Timeout = 2097152 osc1_clk
ALT_L4WD_TORR_TOP_INIT_E_TMO4M 0x6 Timeout = 4194304 osc1_clk
ALT_L4WD_TORR_TOP_INIT_E_TMO8M 0x7 Timeout = 8388608 osc1_clk
ALT_L4WD_TORR_TOP_INIT_E_TMO16M 0x8 Timeout = 16777216 osc1_clk
ALT_L4WD_TORR_TOP_INIT_E_TMO32M 0x9 Timeout = 33554432 osc1_clk
ALT_L4WD_TORR_TOP_INIT_E_TMO64M 0xa Timeout = 67108864 osc1_clk
ALT_L4WD_TORR_TOP_INIT_E_TMO128M 0xb Timeout = 134217728 osc1_clk
ALT_L4WD_TORR_TOP_INIT_E_TMO256M 0xc Timeout = 268435456 osc1_clk
ALT_L4WD_TORR_TOP_INIT_E_TMO512M 0xd Timeout = 536870912 osc1_clk
ALT_L4WD_TORR_TOP_INIT_E_TMO1G 0xe Timeout = 1073741824 osc1_clk
ALT_L4WD_TORR_TOP_INIT_E_TMO2G 0xf Timeout = 2147483648 osc1_clk

Field Access Macros:

#define ALT_L4WD_TORR_TOP_INIT_E_TMO64K   0x0
 
#define ALT_L4WD_TORR_TOP_INIT_E_TMO128K   0x1
 
#define ALT_L4WD_TORR_TOP_INIT_E_TMO256K   0x2
 
#define ALT_L4WD_TORR_TOP_INIT_E_TMO512K   0x3
 
#define ALT_L4WD_TORR_TOP_INIT_E_TMO1M   0x4
 
#define ALT_L4WD_TORR_TOP_INIT_E_TMO2M   0x5
 
#define ALT_L4WD_TORR_TOP_INIT_E_TMO4M   0x6
 
#define ALT_L4WD_TORR_TOP_INIT_E_TMO8M   0x7
 
#define ALT_L4WD_TORR_TOP_INIT_E_TMO16M   0x8
 
#define ALT_L4WD_TORR_TOP_INIT_E_TMO32M   0x9
 
#define ALT_L4WD_TORR_TOP_INIT_E_TMO64M   0xa
 
#define ALT_L4WD_TORR_TOP_INIT_E_TMO128M   0xb
 
#define ALT_L4WD_TORR_TOP_INIT_E_TMO256M   0xc
 
#define ALT_L4WD_TORR_TOP_INIT_E_TMO512M   0xd
 
#define ALT_L4WD_TORR_TOP_INIT_E_TMO1G   0xe
 
#define ALT_L4WD_TORR_TOP_INIT_E_TMO2G   0xf
 
#define ALT_L4WD_TORR_TOP_INIT_LSB   4
 
#define ALT_L4WD_TORR_TOP_INIT_MSB   7
 
#define ALT_L4WD_TORR_TOP_INIT_WIDTH   4
 
#define ALT_L4WD_TORR_TOP_INIT_SET_MSK   0x000000f0
 
#define ALT_L4WD_TORR_TOP_INIT_CLR_MSK   0xffffff0f
 
#define ALT_L4WD_TORR_TOP_INIT_RESET   0xf
 
#define ALT_L4WD_TORR_TOP_INIT_GET(value)   (((value) & 0x000000f0) >> 4)
 
#define ALT_L4WD_TORR_TOP_INIT_SET(value)   (((value) << 4) & 0x000000f0)
 

Data Structures

struct  ALT_L4WD_TORR_s
 

Macros

#define ALT_L4WD_TORR_OFST   0x4
 
#define ALT_L4WD_TORR_ADDR(base)   ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_L4WD_TORR_OFST))
 

Typedefs

typedef struct ALT_L4WD_TORR_s ALT_L4WD_TORR_t
 

Data Structure Documentation

struct ALT_L4WD_TORR_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_TORR.

Data Fields
uint32_t top: 4 Timeout Period
uint32_t top_init: 4 Timeout Period for Initialization
uint32_t __pad0__: 24 UNDEFINED

Macro Definitions

#define ALT_L4WD_TORR_TOP_E_TMO64K   0x0

Enumerated value for register field ALT_L4WD_TORR_TOP

Timeout = 65536 osc1_clk

#define ALT_L4WD_TORR_TOP_E_TMO128K   0x1

Enumerated value for register field ALT_L4WD_TORR_TOP

Timeout = 131072 osc1_clk

#define ALT_L4WD_TORR_TOP_E_TMO256K   0x2

Enumerated value for register field ALT_L4WD_TORR_TOP

Timeout = 262144 osc1_clk

#define ALT_L4WD_TORR_TOP_E_TMO512K   0x3

Enumerated value for register field ALT_L4WD_TORR_TOP

Timeout = 524288 osc1_clk

#define ALT_L4WD_TORR_TOP_E_TMO1M   0x4

Enumerated value for register field ALT_L4WD_TORR_TOP

Timeout = 1048576 osc1_clk

#define ALT_L4WD_TORR_TOP_E_TMO2M   0x5

Enumerated value for register field ALT_L4WD_TORR_TOP

Timeout = 2097152 osc1_clk

#define ALT_L4WD_TORR_TOP_E_TMO4M   0x6

Enumerated value for register field ALT_L4WD_TORR_TOP

Timeout = 4194304 osc1_clk

#define ALT_L4WD_TORR_TOP_E_TMO8M   0x7

Enumerated value for register field ALT_L4WD_TORR_TOP

Timeout = 8388608 osc1_clk

#define ALT_L4WD_TORR_TOP_E_TMO16M   0x8

Enumerated value for register field ALT_L4WD_TORR_TOP

Timeout = 16777216 osc1_clk

#define ALT_L4WD_TORR_TOP_E_TMO32M   0x9

Enumerated value for register field ALT_L4WD_TORR_TOP

Timeout = 33554432 osc1_clk

#define ALT_L4WD_TORR_TOP_E_TMO64M   0xa

Enumerated value for register field ALT_L4WD_TORR_TOP

Timeout = 67108864 osc1_clk

#define ALT_L4WD_TORR_TOP_E_TMO128M   0xb

Enumerated value for register field ALT_L4WD_TORR_TOP

Timeout = 134217728 osc1_clk

#define ALT_L4WD_TORR_TOP_E_TMO256M   0xc

Enumerated value for register field ALT_L4WD_TORR_TOP

Timeout = 268435456 osc1_clk

#define ALT_L4WD_TORR_TOP_E_TMO512M   0xd

Enumerated value for register field ALT_L4WD_TORR_TOP

Timeout = 536870912 osc1_clk

#define ALT_L4WD_TORR_TOP_E_TMO1G   0xe

Enumerated value for register field ALT_L4WD_TORR_TOP

Timeout = 1073741824 osc1_clk

#define ALT_L4WD_TORR_TOP_E_TMO2G   0xf

Enumerated value for register field ALT_L4WD_TORR_TOP

Timeout = 2147483648 osc1_clk

#define ALT_L4WD_TORR_TOP_LSB   0

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

#define ALT_L4WD_TORR_TOP_MSB   3

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

#define ALT_L4WD_TORR_TOP_WIDTH   4

The width in bits of the ALT_L4WD_TORR_TOP register field.

#define ALT_L4WD_TORR_TOP_SET_MSK   0x0000000f

The mask used to set the ALT_L4WD_TORR_TOP register field value.

#define ALT_L4WD_TORR_TOP_CLR_MSK   0xfffffff0

The mask used to clear the ALT_L4WD_TORR_TOP register field value.

#define ALT_L4WD_TORR_TOP_RESET   0xf

The reset value of the ALT_L4WD_TORR_TOP register field.

#define ALT_L4WD_TORR_TOP_GET (   value)    (((value) & 0x0000000f) >> 0)

Extracts the ALT_L4WD_TORR_TOP field value from a register.

#define ALT_L4WD_TORR_TOP_SET (   value)    (((value) << 0) & 0x0000000f)

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

#define ALT_L4WD_TORR_TOP_INIT_E_TMO64K   0x0

Enumerated value for register field ALT_L4WD_TORR_TOP_INIT

Timeout = 65536 osc1_clk

#define ALT_L4WD_TORR_TOP_INIT_E_TMO128K   0x1

Enumerated value for register field ALT_L4WD_TORR_TOP_INIT

Timeout = 131072 osc1_clk

#define ALT_L4WD_TORR_TOP_INIT_E_TMO256K   0x2

Enumerated value for register field ALT_L4WD_TORR_TOP_INIT

Timeout = 262144 osc1_clk

#define ALT_L4WD_TORR_TOP_INIT_E_TMO512K   0x3

Enumerated value for register field ALT_L4WD_TORR_TOP_INIT

Timeout = 524288 osc1_clk

#define ALT_L4WD_TORR_TOP_INIT_E_TMO1M   0x4

Enumerated value for register field ALT_L4WD_TORR_TOP_INIT

Timeout = 1048576 osc1_clk

#define ALT_L4WD_TORR_TOP_INIT_E_TMO2M   0x5

Enumerated value for register field ALT_L4WD_TORR_TOP_INIT

Timeout = 2097152 osc1_clk

#define ALT_L4WD_TORR_TOP_INIT_E_TMO4M   0x6

Enumerated value for register field ALT_L4WD_TORR_TOP_INIT

Timeout = 4194304 osc1_clk

#define ALT_L4WD_TORR_TOP_INIT_E_TMO8M   0x7

Enumerated value for register field ALT_L4WD_TORR_TOP_INIT

Timeout = 8388608 osc1_clk

#define ALT_L4WD_TORR_TOP_INIT_E_TMO16M   0x8

Enumerated value for register field ALT_L4WD_TORR_TOP_INIT

Timeout = 16777216 osc1_clk

#define ALT_L4WD_TORR_TOP_INIT_E_TMO32M   0x9

Enumerated value for register field ALT_L4WD_TORR_TOP_INIT

Timeout = 33554432 osc1_clk

#define ALT_L4WD_TORR_TOP_INIT_E_TMO64M   0xa

Enumerated value for register field ALT_L4WD_TORR_TOP_INIT

Timeout = 67108864 osc1_clk

#define ALT_L4WD_TORR_TOP_INIT_E_TMO128M   0xb

Enumerated value for register field ALT_L4WD_TORR_TOP_INIT

Timeout = 134217728 osc1_clk

#define ALT_L4WD_TORR_TOP_INIT_E_TMO256M   0xc

Enumerated value for register field ALT_L4WD_TORR_TOP_INIT

Timeout = 268435456 osc1_clk

#define ALT_L4WD_TORR_TOP_INIT_E_TMO512M   0xd

Enumerated value for register field ALT_L4WD_TORR_TOP_INIT

Timeout = 536870912 osc1_clk

#define ALT_L4WD_TORR_TOP_INIT_E_TMO1G   0xe

Enumerated value for register field ALT_L4WD_TORR_TOP_INIT

Timeout = 1073741824 osc1_clk

#define ALT_L4WD_TORR_TOP_INIT_E_TMO2G   0xf

Enumerated value for register field ALT_L4WD_TORR_TOP_INIT

Timeout = 2147483648 osc1_clk

#define ALT_L4WD_TORR_TOP_INIT_LSB   4

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

#define ALT_L4WD_TORR_TOP_INIT_MSB   7

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

#define ALT_L4WD_TORR_TOP_INIT_WIDTH   4

The width in bits of the ALT_L4WD_TORR_TOP_INIT register field.

#define ALT_L4WD_TORR_TOP_INIT_SET_MSK   0x000000f0

The mask used to set the ALT_L4WD_TORR_TOP_INIT register field value.

#define ALT_L4WD_TORR_TOP_INIT_CLR_MSK   0xffffff0f

The mask used to clear the ALT_L4WD_TORR_TOP_INIT register field value.

#define ALT_L4WD_TORR_TOP_INIT_RESET   0xf

The reset value of the ALT_L4WD_TORR_TOP_INIT register field.

#define ALT_L4WD_TORR_TOP_INIT_GET (   value)    (((value) & 0x000000f0) >> 4)

Extracts the ALT_L4WD_TORR_TOP_INIT field value from a register.

#define ALT_L4WD_TORR_TOP_INIT_SET (   value)    (((value) << 4) & 0x000000f0)

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

#define ALT_L4WD_TORR_OFST   0x4

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

#define ALT_L4WD_TORR_ADDR (   base)    ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_L4WD_TORR_OFST))

The address of the ALT_L4WD_TORR register.

Typedef Documentation

The typedef declaration for register ALT_L4WD_TORR.