Altera SoCAL  16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
 All Data Structures Variables Typedefs Groups
Register : Peripheral PLL Control Register for Counter 7 Clock - cntr7clk

Description

Contains settings that control Couner 7 clock generated from the Peripheral PLL VCO clock.

Register Layout

Bits Access Reset Description
[10:0] RW 0x0 Counter
[31:11] ??? 0x0 UNDEFINED

Field : Counter - cnt

Divides the VCO frequency by the value+1 in this field.

Field Access Macros:

#define ALT_CLKMGR_PERPLL_CNTR7CLK_CNT_LSB   0
 
#define ALT_CLKMGR_PERPLL_CNTR7CLK_CNT_MSB   10
 
#define ALT_CLKMGR_PERPLL_CNTR7CLK_CNT_WIDTH   11
 
#define ALT_CLKMGR_PERPLL_CNTR7CLK_CNT_SET_MSK   0x000007ff
 
#define ALT_CLKMGR_PERPLL_CNTR7CLK_CNT_CLR_MSK   0xfffff800
 
#define ALT_CLKMGR_PERPLL_CNTR7CLK_CNT_RESET   0x0
 
#define ALT_CLKMGR_PERPLL_CNTR7CLK_CNT_GET(value)   (((value) & 0x000007ff) >> 0)
 
#define ALT_CLKMGR_PERPLL_CNTR7CLK_CNT_SET(value)   (((value) << 0) & 0x000007ff)
 

Data Structures

struct  ALT_CLKMGR_PERPLL_CNTR7CLK_s
 

Macros

#define ALT_CLKMGR_PERPLL_CNTR7CLK_RESET   0x00000000
 
#define ALT_CLKMGR_PERPLL_CNTR7CLK_OFST   0x3c
 

Typedefs

typedef struct
ALT_CLKMGR_PERPLL_CNTR7CLK_s 
ALT_CLKMGR_PERPLL_CNTR7CLK_t
 

Data Structure Documentation

struct ALT_CLKMGR_PERPLL_CNTR7CLK_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_CLKMGR_PERPLL_CNTR7CLK.

Data Fields
uint32_t cnt: 11 Counter
uint32_t __pad0__: 21 UNDEFINED

Macro Definitions

#define ALT_CLKMGR_PERPLL_CNTR7CLK_CNT_LSB   0

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

#define ALT_CLKMGR_PERPLL_CNTR7CLK_CNT_MSB   10

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

#define ALT_CLKMGR_PERPLL_CNTR7CLK_CNT_WIDTH   11

The width in bits of the ALT_CLKMGR_PERPLL_CNTR7CLK_CNT register field.

#define ALT_CLKMGR_PERPLL_CNTR7CLK_CNT_SET_MSK   0x000007ff

The mask used to set the ALT_CLKMGR_PERPLL_CNTR7CLK_CNT register field value.

#define ALT_CLKMGR_PERPLL_CNTR7CLK_CNT_CLR_MSK   0xfffff800

The mask used to clear the ALT_CLKMGR_PERPLL_CNTR7CLK_CNT register field value.

#define ALT_CLKMGR_PERPLL_CNTR7CLK_CNT_RESET   0x0

The reset value of the ALT_CLKMGR_PERPLL_CNTR7CLK_CNT register field.

#define ALT_CLKMGR_PERPLL_CNTR7CLK_CNT_GET (   value)    (((value) & 0x000007ff) >> 0)

Extracts the ALT_CLKMGR_PERPLL_CNTR7CLK_CNT field value from a register.

#define ALT_CLKMGR_PERPLL_CNTR7CLK_CNT_SET (   value)    (((value) << 0) & 0x000007ff)

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

#define ALT_CLKMGR_PERPLL_CNTR7CLK_RESET   0x00000000

The reset value of the ALT_CLKMGR_PERPLL_CNTR7CLK register.

#define ALT_CLKMGR_PERPLL_CNTR7CLK_OFST   0x3c

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

Typedef Documentation

The typedef declaration for register ALT_CLKMGR_PERPLL_CNTR7CLK.