Altera SoCAL  16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
 All Data Structures Variables Typedefs Groups
Register : Core Release Register - CRR

Description

Core Release Register

Register Layout

Bits Access Reset Description
[7:0] R 0x28 Design Time Stamp, Day
[15:8] R 0x11 Design Time Stamp, Month
[19:16] R 0x6 Design Time Stamp, Year
[27:20] R 0x11 Step of Core Release
[31:28] R 0x1 Core Release

Field : Design Time Stamp, Day - DAY

Field Access Macros:

#define ALT_CAN_PROTO_CRR_DAY_LSB   0
 
#define ALT_CAN_PROTO_CRR_DAY_MSB   7
 
#define ALT_CAN_PROTO_CRR_DAY_WIDTH   8
 
#define ALT_CAN_PROTO_CRR_DAY_SET_MSK   0x000000ff
 
#define ALT_CAN_PROTO_CRR_DAY_CLR_MSK   0xffffff00
 
#define ALT_CAN_PROTO_CRR_DAY_RESET   0x28
 
#define ALT_CAN_PROTO_CRR_DAY_GET(value)   (((value) & 0x000000ff) >> 0)
 
#define ALT_CAN_PROTO_CRR_DAY_SET(value)   (((value) << 0) & 0x000000ff)
 

Field : Design Time Stamp, Month - MON

Field Access Macros:

#define ALT_CAN_PROTO_CRR_MON_LSB   8
 
#define ALT_CAN_PROTO_CRR_MON_MSB   15
 
#define ALT_CAN_PROTO_CRR_MON_WIDTH   8
 
#define ALT_CAN_PROTO_CRR_MON_SET_MSK   0x0000ff00
 
#define ALT_CAN_PROTO_CRR_MON_CLR_MSK   0xffff00ff
 
#define ALT_CAN_PROTO_CRR_MON_RESET   0x11
 
#define ALT_CAN_PROTO_CRR_MON_GET(value)   (((value) & 0x0000ff00) >> 8)
 
#define ALT_CAN_PROTO_CRR_MON_SET(value)   (((value) << 8) & 0x0000ff00)
 

Field : Design Time Stamp, Year - YEAR

Field Access Macros:

#define ALT_CAN_PROTO_CRR_YEAR_LSB   16
 
#define ALT_CAN_PROTO_CRR_YEAR_MSB   19
 
#define ALT_CAN_PROTO_CRR_YEAR_WIDTH   4
 
#define ALT_CAN_PROTO_CRR_YEAR_SET_MSK   0x000f0000
 
#define ALT_CAN_PROTO_CRR_YEAR_CLR_MSK   0xfff0ffff
 
#define ALT_CAN_PROTO_CRR_YEAR_RESET   0x6
 
#define ALT_CAN_PROTO_CRR_YEAR_GET(value)   (((value) & 0x000f0000) >> 16)
 
#define ALT_CAN_PROTO_CRR_YEAR_SET(value)   (((value) << 16) & 0x000f0000)
 

Field : Step of Core Release - STEP

Field Access Macros:

#define ALT_CAN_PROTO_CRR_STEP_LSB   20
 
#define ALT_CAN_PROTO_CRR_STEP_MSB   27
 
#define ALT_CAN_PROTO_CRR_STEP_WIDTH   8
 
#define ALT_CAN_PROTO_CRR_STEP_SET_MSK   0x0ff00000
 
#define ALT_CAN_PROTO_CRR_STEP_CLR_MSK   0xf00fffff
 
#define ALT_CAN_PROTO_CRR_STEP_RESET   0x11
 
#define ALT_CAN_PROTO_CRR_STEP_GET(value)   (((value) & 0x0ff00000) >> 20)
 
#define ALT_CAN_PROTO_CRR_STEP_SET(value)   (((value) << 20) & 0x0ff00000)
 

Field : Core Release - REL

Field Access Macros:

#define ALT_CAN_PROTO_CRR_REL_LSB   28
 
#define ALT_CAN_PROTO_CRR_REL_MSB   31
 
#define ALT_CAN_PROTO_CRR_REL_WIDTH   4
 
#define ALT_CAN_PROTO_CRR_REL_SET_MSK   0xf0000000
 
#define ALT_CAN_PROTO_CRR_REL_CLR_MSK   0x0fffffff
 
#define ALT_CAN_PROTO_CRR_REL_RESET   0x1
 
#define ALT_CAN_PROTO_CRR_REL_GET(value)   (((value) & 0xf0000000) >> 28)
 
#define ALT_CAN_PROTO_CRR_REL_SET(value)   (((value) << 28) & 0xf0000000)
 

Data Structures

struct  ALT_CAN_PROTO_CRR_s
 

Macros

#define ALT_CAN_PROTO_CRR_OFST   0x20
 
#define ALT_CAN_PROTO_CRR_ADDR(base)   ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_CAN_PROTO_CRR_OFST))
 

Typedefs

typedef struct ALT_CAN_PROTO_CRR_s ALT_CAN_PROTO_CRR_t
 

Data Structure Documentation

struct ALT_CAN_PROTO_CRR_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_CAN_PROTO_CRR.

Data Fields
const uint32_t DAY: 8 Design Time Stamp, Day
const uint32_t MON: 8 Design Time Stamp, Month
const uint32_t YEAR: 4 Design Time Stamp, Year
const uint32_t STEP: 8 Step of Core Release
const uint32_t REL: 4 Core Release

Macro Definitions

#define ALT_CAN_PROTO_CRR_DAY_LSB   0

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

#define ALT_CAN_PROTO_CRR_DAY_MSB   7

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

#define ALT_CAN_PROTO_CRR_DAY_WIDTH   8

The width in bits of the ALT_CAN_PROTO_CRR_DAY register field.

#define ALT_CAN_PROTO_CRR_DAY_SET_MSK   0x000000ff

The mask used to set the ALT_CAN_PROTO_CRR_DAY register field value.

#define ALT_CAN_PROTO_CRR_DAY_CLR_MSK   0xffffff00

The mask used to clear the ALT_CAN_PROTO_CRR_DAY register field value.

#define ALT_CAN_PROTO_CRR_DAY_RESET   0x28

The reset value of the ALT_CAN_PROTO_CRR_DAY register field.

#define ALT_CAN_PROTO_CRR_DAY_GET (   value)    (((value) & 0x000000ff) >> 0)

Extracts the ALT_CAN_PROTO_CRR_DAY field value from a register.

#define ALT_CAN_PROTO_CRR_DAY_SET (   value)    (((value) << 0) & 0x000000ff)

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

#define ALT_CAN_PROTO_CRR_MON_LSB   8

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

#define ALT_CAN_PROTO_CRR_MON_MSB   15

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

#define ALT_CAN_PROTO_CRR_MON_WIDTH   8

The width in bits of the ALT_CAN_PROTO_CRR_MON register field.

#define ALT_CAN_PROTO_CRR_MON_SET_MSK   0x0000ff00

The mask used to set the ALT_CAN_PROTO_CRR_MON register field value.

#define ALT_CAN_PROTO_CRR_MON_CLR_MSK   0xffff00ff

The mask used to clear the ALT_CAN_PROTO_CRR_MON register field value.

#define ALT_CAN_PROTO_CRR_MON_RESET   0x11

The reset value of the ALT_CAN_PROTO_CRR_MON register field.

#define ALT_CAN_PROTO_CRR_MON_GET (   value)    (((value) & 0x0000ff00) >> 8)

Extracts the ALT_CAN_PROTO_CRR_MON field value from a register.

#define ALT_CAN_PROTO_CRR_MON_SET (   value)    (((value) << 8) & 0x0000ff00)

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

#define ALT_CAN_PROTO_CRR_YEAR_LSB   16

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

#define ALT_CAN_PROTO_CRR_YEAR_MSB   19

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

#define ALT_CAN_PROTO_CRR_YEAR_WIDTH   4

The width in bits of the ALT_CAN_PROTO_CRR_YEAR register field.

#define ALT_CAN_PROTO_CRR_YEAR_SET_MSK   0x000f0000

The mask used to set the ALT_CAN_PROTO_CRR_YEAR register field value.

#define ALT_CAN_PROTO_CRR_YEAR_CLR_MSK   0xfff0ffff

The mask used to clear the ALT_CAN_PROTO_CRR_YEAR register field value.

#define ALT_CAN_PROTO_CRR_YEAR_RESET   0x6

The reset value of the ALT_CAN_PROTO_CRR_YEAR register field.

#define ALT_CAN_PROTO_CRR_YEAR_GET (   value)    (((value) & 0x000f0000) >> 16)

Extracts the ALT_CAN_PROTO_CRR_YEAR field value from a register.

#define ALT_CAN_PROTO_CRR_YEAR_SET (   value)    (((value) << 16) & 0x000f0000)

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

#define ALT_CAN_PROTO_CRR_STEP_LSB   20

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

#define ALT_CAN_PROTO_CRR_STEP_MSB   27

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

#define ALT_CAN_PROTO_CRR_STEP_WIDTH   8

The width in bits of the ALT_CAN_PROTO_CRR_STEP register field.

#define ALT_CAN_PROTO_CRR_STEP_SET_MSK   0x0ff00000

The mask used to set the ALT_CAN_PROTO_CRR_STEP register field value.

#define ALT_CAN_PROTO_CRR_STEP_CLR_MSK   0xf00fffff

The mask used to clear the ALT_CAN_PROTO_CRR_STEP register field value.

#define ALT_CAN_PROTO_CRR_STEP_RESET   0x11

The reset value of the ALT_CAN_PROTO_CRR_STEP register field.

#define ALT_CAN_PROTO_CRR_STEP_GET (   value)    (((value) & 0x0ff00000) >> 20)

Extracts the ALT_CAN_PROTO_CRR_STEP field value from a register.

#define ALT_CAN_PROTO_CRR_STEP_SET (   value)    (((value) << 20) & 0x0ff00000)

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

#define ALT_CAN_PROTO_CRR_REL_LSB   28

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

#define ALT_CAN_PROTO_CRR_REL_MSB   31

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

#define ALT_CAN_PROTO_CRR_REL_WIDTH   4

The width in bits of the ALT_CAN_PROTO_CRR_REL register field.

#define ALT_CAN_PROTO_CRR_REL_SET_MSK   0xf0000000

The mask used to set the ALT_CAN_PROTO_CRR_REL register field value.

#define ALT_CAN_PROTO_CRR_REL_CLR_MSK   0x0fffffff

The mask used to clear the ALT_CAN_PROTO_CRR_REL register field value.

#define ALT_CAN_PROTO_CRR_REL_RESET   0x1

The reset value of the ALT_CAN_PROTO_CRR_REL register field.

#define ALT_CAN_PROTO_CRR_REL_GET (   value)    (((value) & 0xf0000000) >> 28)

Extracts the ALT_CAN_PROTO_CRR_REL field value from a register.

#define ALT_CAN_PROTO_CRR_REL_SET (   value)    (((value) << 28) & 0xf0000000)

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

#define ALT_CAN_PROTO_CRR_OFST   0x20

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

#define ALT_CAN_PROTO_CRR_ADDR (   base)    ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_CAN_PROTO_CRR_OFST))

The address of the ALT_CAN_PROTO_CRR register.

Typedef Documentation

The typedef declaration for register ALT_CAN_PROTO_CRR.