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

Description

ECC Control Register

Register Layout

Bits Access Reset Description
[0] RW 0x0 ALT_ECC_SDMMC_CTL_ECC_EN
[7:1] ??? 0x0 UNDEFINED
[8] RW 0x0 ALT_ECC_SDMMC_CTL_CNT_RSTA
[9] RW 0x0 ALT_ECC_SDMMC_CTL_CNT_RSTB
[15:10] ??? 0x0 UNDEFINED
[16] RW 0x0 ALT_ECC_SDMMC_CTL_INITA
[23:17] ??? 0x0 UNDEFINED
[24] RW 0x0 ALT_ECC_SDMMC_CTL_INITB
[31:25] ??? 0x0 UNDEFINED

Field : ECC_EN

Enable for the ECC detection and correction logic.

Field Access Macros:

#define ALT_ECC_SDMMC_CTL_ECC_EN_LSB   0
 
#define ALT_ECC_SDMMC_CTL_ECC_EN_MSB   0
 
#define ALT_ECC_SDMMC_CTL_ECC_EN_WIDTH   1
 
#define ALT_ECC_SDMMC_CTL_ECC_EN_SET_MSK   0x00000001
 
#define ALT_ECC_SDMMC_CTL_ECC_EN_CLR_MSK   0xfffffffe
 
#define ALT_ECC_SDMMC_CTL_ECC_EN_RESET   0x0
 
#define ALT_ECC_SDMMC_CTL_ECC_EN_GET(value)   (((value) & 0x00000001) >> 0)
 
#define ALT_ECC_SDMMC_CTL_ECC_EN_SET(value)   (((value) << 0) & 0x00000001)
 

Field : CNT_RSTA

Enable to reset internal single-bit error counter A value to zero

Field Access Macros:

#define ALT_ECC_SDMMC_CTL_CNT_RSTA_LSB   8
 
#define ALT_ECC_SDMMC_CTL_CNT_RSTA_MSB   8
 
#define ALT_ECC_SDMMC_CTL_CNT_RSTA_WIDTH   1
 
#define ALT_ECC_SDMMC_CTL_CNT_RSTA_SET_MSK   0x00000100
 
#define ALT_ECC_SDMMC_CTL_CNT_RSTA_CLR_MSK   0xfffffeff
 
#define ALT_ECC_SDMMC_CTL_CNT_RSTA_RESET   0x0
 
#define ALT_ECC_SDMMC_CTL_CNT_RSTA_GET(value)   (((value) & 0x00000100) >> 8)
 
#define ALT_ECC_SDMMC_CTL_CNT_RSTA_SET(value)   (((value) << 8) & 0x00000100)
 

Field : CNT_RSTB

Enable to reset internal single-bit error counter B value to zero

Field Access Macros:

#define ALT_ECC_SDMMC_CTL_CNT_RSTB_LSB   9
 
#define ALT_ECC_SDMMC_CTL_CNT_RSTB_MSB   9
 
#define ALT_ECC_SDMMC_CTL_CNT_RSTB_WIDTH   1
 
#define ALT_ECC_SDMMC_CTL_CNT_RSTB_SET_MSK   0x00000200
 
#define ALT_ECC_SDMMC_CTL_CNT_RSTB_CLR_MSK   0xfffffdff
 
#define ALT_ECC_SDMMC_CTL_CNT_RSTB_RESET   0x0
 
#define ALT_ECC_SDMMC_CTL_CNT_RSTB_GET(value)   (((value) & 0x00000200) >> 9)
 
#define ALT_ECC_SDMMC_CTL_CNT_RSTB_SET(value)   (((value) << 9) & 0x00000200)
 

Field : INITA

Enable for the hardware memory initialization PORTA.

Field Access Macros:

#define ALT_ECC_SDMMC_CTL_INITA_LSB   16
 
#define ALT_ECC_SDMMC_CTL_INITA_MSB   16
 
#define ALT_ECC_SDMMC_CTL_INITA_WIDTH   1
 
#define ALT_ECC_SDMMC_CTL_INITA_SET_MSK   0x00010000
 
#define ALT_ECC_SDMMC_CTL_INITA_CLR_MSK   0xfffeffff
 
#define ALT_ECC_SDMMC_CTL_INITA_RESET   0x0
 
#define ALT_ECC_SDMMC_CTL_INITA_GET(value)   (((value) & 0x00010000) >> 16)
 
#define ALT_ECC_SDMMC_CTL_INITA_SET(value)   (((value) << 16) & 0x00010000)
 

Field : INITB

Enable for the hardware memory initialization PORTB.

Field Access Macros:

#define ALT_ECC_SDMMC_CTL_INITB_LSB   24
 
#define ALT_ECC_SDMMC_CTL_INITB_MSB   24
 
#define ALT_ECC_SDMMC_CTL_INITB_WIDTH   1
 
#define ALT_ECC_SDMMC_CTL_INITB_SET_MSK   0x01000000
 
#define ALT_ECC_SDMMC_CTL_INITB_CLR_MSK   0xfeffffff
 
#define ALT_ECC_SDMMC_CTL_INITB_RESET   0x0
 
#define ALT_ECC_SDMMC_CTL_INITB_GET(value)   (((value) & 0x01000000) >> 24)
 
#define ALT_ECC_SDMMC_CTL_INITB_SET(value)   (((value) << 24) & 0x01000000)
 

Data Structures

struct  ALT_ECC_SDMMC_CTL_s
 

Macros

#define ALT_ECC_SDMMC_CTL_RESET   0x00000000
 
#define ALT_ECC_SDMMC_CTL_OFST   0x8
 

Typedefs

typedef struct ALT_ECC_SDMMC_CTL_s ALT_ECC_SDMMC_CTL_t
 

Data Structure Documentation

struct ALT_ECC_SDMMC_CTL_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_ECC_SDMMC_CTL.

Data Fields
uint32_t ECC_EN: 1 ALT_ECC_SDMMC_CTL_ECC_EN
uint32_t __pad0__: 7 UNDEFINED
uint32_t CNT_RSTA: 1 ALT_ECC_SDMMC_CTL_CNT_RSTA
uint32_t CNT_RSTB: 1 ALT_ECC_SDMMC_CTL_CNT_RSTB
uint32_t __pad1__: 6 UNDEFINED
uint32_t INITA: 1 ALT_ECC_SDMMC_CTL_INITA
uint32_t __pad2__: 7 UNDEFINED
uint32_t INITB: 1 ALT_ECC_SDMMC_CTL_INITB
uint32_t __pad3__: 7 UNDEFINED

Macro Definitions

#define ALT_ECC_SDMMC_CTL_ECC_EN_LSB   0

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

#define ALT_ECC_SDMMC_CTL_ECC_EN_MSB   0

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

#define ALT_ECC_SDMMC_CTL_ECC_EN_WIDTH   1

The width in bits of the ALT_ECC_SDMMC_CTL_ECC_EN register field.

#define ALT_ECC_SDMMC_CTL_ECC_EN_SET_MSK   0x00000001

The mask used to set the ALT_ECC_SDMMC_CTL_ECC_EN register field value.

#define ALT_ECC_SDMMC_CTL_ECC_EN_CLR_MSK   0xfffffffe

The mask used to clear the ALT_ECC_SDMMC_CTL_ECC_EN register field value.

#define ALT_ECC_SDMMC_CTL_ECC_EN_RESET   0x0

The reset value of the ALT_ECC_SDMMC_CTL_ECC_EN register field.

#define ALT_ECC_SDMMC_CTL_ECC_EN_GET (   value)    (((value) & 0x00000001) >> 0)

Extracts the ALT_ECC_SDMMC_CTL_ECC_EN field value from a register.

#define ALT_ECC_SDMMC_CTL_ECC_EN_SET (   value)    (((value) << 0) & 0x00000001)

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

#define ALT_ECC_SDMMC_CTL_CNT_RSTA_LSB   8

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

#define ALT_ECC_SDMMC_CTL_CNT_RSTA_MSB   8

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

#define ALT_ECC_SDMMC_CTL_CNT_RSTA_WIDTH   1

The width in bits of the ALT_ECC_SDMMC_CTL_CNT_RSTA register field.

#define ALT_ECC_SDMMC_CTL_CNT_RSTA_SET_MSK   0x00000100

The mask used to set the ALT_ECC_SDMMC_CTL_CNT_RSTA register field value.

#define ALT_ECC_SDMMC_CTL_CNT_RSTA_CLR_MSK   0xfffffeff

The mask used to clear the ALT_ECC_SDMMC_CTL_CNT_RSTA register field value.

#define ALT_ECC_SDMMC_CTL_CNT_RSTA_RESET   0x0

The reset value of the ALT_ECC_SDMMC_CTL_CNT_RSTA register field.

#define ALT_ECC_SDMMC_CTL_CNT_RSTA_GET (   value)    (((value) & 0x00000100) >> 8)

Extracts the ALT_ECC_SDMMC_CTL_CNT_RSTA field value from a register.

#define ALT_ECC_SDMMC_CTL_CNT_RSTA_SET (   value)    (((value) << 8) & 0x00000100)

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

#define ALT_ECC_SDMMC_CTL_CNT_RSTB_LSB   9

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

#define ALT_ECC_SDMMC_CTL_CNT_RSTB_MSB   9

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

#define ALT_ECC_SDMMC_CTL_CNT_RSTB_WIDTH   1

The width in bits of the ALT_ECC_SDMMC_CTL_CNT_RSTB register field.

#define ALT_ECC_SDMMC_CTL_CNT_RSTB_SET_MSK   0x00000200

The mask used to set the ALT_ECC_SDMMC_CTL_CNT_RSTB register field value.

#define ALT_ECC_SDMMC_CTL_CNT_RSTB_CLR_MSK   0xfffffdff

The mask used to clear the ALT_ECC_SDMMC_CTL_CNT_RSTB register field value.

#define ALT_ECC_SDMMC_CTL_CNT_RSTB_RESET   0x0

The reset value of the ALT_ECC_SDMMC_CTL_CNT_RSTB register field.

#define ALT_ECC_SDMMC_CTL_CNT_RSTB_GET (   value)    (((value) & 0x00000200) >> 9)

Extracts the ALT_ECC_SDMMC_CTL_CNT_RSTB field value from a register.

#define ALT_ECC_SDMMC_CTL_CNT_RSTB_SET (   value)    (((value) << 9) & 0x00000200)

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

#define ALT_ECC_SDMMC_CTL_INITA_LSB   16

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

#define ALT_ECC_SDMMC_CTL_INITA_MSB   16

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

#define ALT_ECC_SDMMC_CTL_INITA_WIDTH   1

The width in bits of the ALT_ECC_SDMMC_CTL_INITA register field.

#define ALT_ECC_SDMMC_CTL_INITA_SET_MSK   0x00010000

The mask used to set the ALT_ECC_SDMMC_CTL_INITA register field value.

#define ALT_ECC_SDMMC_CTL_INITA_CLR_MSK   0xfffeffff

The mask used to clear the ALT_ECC_SDMMC_CTL_INITA register field value.

#define ALT_ECC_SDMMC_CTL_INITA_RESET   0x0

The reset value of the ALT_ECC_SDMMC_CTL_INITA register field.

#define ALT_ECC_SDMMC_CTL_INITA_GET (   value)    (((value) & 0x00010000) >> 16)

Extracts the ALT_ECC_SDMMC_CTL_INITA field value from a register.

#define ALT_ECC_SDMMC_CTL_INITA_SET (   value)    (((value) << 16) & 0x00010000)

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

#define ALT_ECC_SDMMC_CTL_INITB_LSB   24

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

#define ALT_ECC_SDMMC_CTL_INITB_MSB   24

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

#define ALT_ECC_SDMMC_CTL_INITB_WIDTH   1

The width in bits of the ALT_ECC_SDMMC_CTL_INITB register field.

#define ALT_ECC_SDMMC_CTL_INITB_SET_MSK   0x01000000

The mask used to set the ALT_ECC_SDMMC_CTL_INITB register field value.

#define ALT_ECC_SDMMC_CTL_INITB_CLR_MSK   0xfeffffff

The mask used to clear the ALT_ECC_SDMMC_CTL_INITB register field value.

#define ALT_ECC_SDMMC_CTL_INITB_RESET   0x0

The reset value of the ALT_ECC_SDMMC_CTL_INITB register field.

#define ALT_ECC_SDMMC_CTL_INITB_GET (   value)    (((value) & 0x01000000) >> 24)

Extracts the ALT_ECC_SDMMC_CTL_INITB field value from a register.

#define ALT_ECC_SDMMC_CTL_INITB_SET (   value)    (((value) << 24) & 0x01000000)

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

#define ALT_ECC_SDMMC_CTL_RESET   0x00000000

The reset value of the ALT_ECC_SDMMC_CTL register.

#define ALT_ECC_SDMMC_CTL_OFST   0x8

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

Typedef Documentation

The typedef declaration for register ALT_ECC_SDMMC_CTL.