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

Description

Enable controller ECC check bit generation and correction

Register Layout

Bits Access Reset Description
[0] RW 0x1 ALT_NAND_CFG_ECC_EN_FLAG
[31:1] ??? 0x0 UNDEFINED

Field : flag

Enables or disables controller ECC capabilities. When enabled, controller calculates ECC check-bits and writes them onto device on program operation. On page reads, check-bits are recomputed and errors reported, if any, after comparing with stored check-bits. When disabled, controller does not compute check-bits. [list][*]1 - ECC Enabled [*]0 - ECC disabled[/list]

Field Access Macros:

#define ALT_NAND_CFG_ECC_EN_FLAG_LSB   0
 
#define ALT_NAND_CFG_ECC_EN_FLAG_MSB   0
 
#define ALT_NAND_CFG_ECC_EN_FLAG_WIDTH   1
 
#define ALT_NAND_CFG_ECC_EN_FLAG_SET_MSK   0x00000001
 
#define ALT_NAND_CFG_ECC_EN_FLAG_CLR_MSK   0xfffffffe
 
#define ALT_NAND_CFG_ECC_EN_FLAG_RESET   0x1
 
#define ALT_NAND_CFG_ECC_EN_FLAG_GET(value)   (((value) & 0x00000001) >> 0)
 
#define ALT_NAND_CFG_ECC_EN_FLAG_SET(value)   (((value) << 0) & 0x00000001)
 

Data Structures

struct  ALT_NAND_CFG_ECC_EN_s
 

Macros

#define ALT_NAND_CFG_ECC_EN_OFST   0xe0
 

Typedefs

typedef struct
ALT_NAND_CFG_ECC_EN_s 
ALT_NAND_CFG_ECC_EN_t
 

Data Structure Documentation

struct ALT_NAND_CFG_ECC_EN_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_NAND_CFG_ECC_EN.

Data Fields
uint32_t flag: 1 ALT_NAND_CFG_ECC_EN_FLAG
uint32_t __pad0__: 31 UNDEFINED

Macro Definitions

#define ALT_NAND_CFG_ECC_EN_FLAG_LSB   0

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

#define ALT_NAND_CFG_ECC_EN_FLAG_MSB   0

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

#define ALT_NAND_CFG_ECC_EN_FLAG_WIDTH   1

The width in bits of the ALT_NAND_CFG_ECC_EN_FLAG register field.

#define ALT_NAND_CFG_ECC_EN_FLAG_SET_MSK   0x00000001

The mask used to set the ALT_NAND_CFG_ECC_EN_FLAG register field value.

#define ALT_NAND_CFG_ECC_EN_FLAG_CLR_MSK   0xfffffffe

The mask used to clear the ALT_NAND_CFG_ECC_EN_FLAG register field value.

#define ALT_NAND_CFG_ECC_EN_FLAG_RESET   0x1

The reset value of the ALT_NAND_CFG_ECC_EN_FLAG register field.

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

Extracts the ALT_NAND_CFG_ECC_EN_FLAG field value from a register.

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

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

#define ALT_NAND_CFG_ECC_EN_OFST   0xe0

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

Typedef Documentation

The typedef declaration for register ALT_NAND_CFG_ECC_EN.