![]() |
Altera SoCAL
16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
|
Debounce Count Register
Register Layout
Bits | Access | Reset | Description |
---|---|---|---|
[23:0] | RW | 0xffffff | ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT |
[31:24] | ??? | 0x0 | UNDEFINED |
Field : debounce_count | |
Number of host clocks (clk) used by debounce filter logic; typical debounce time is 5-25 ms. Field Access Macros: | |
#define | ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT_LSB 0 |
#define | ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT_MSB 23 |
#define | ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT_WIDTH 24 |
#define | ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT_SET_MSK 0x00ffffff |
#define | ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT_CLR_MSK 0xff000000 |
#define | ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT_RESET 0xffffff |
#define | ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT_GET(value) (((value) & 0x00ffffff) >> 0) |
#define | ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT_SET(value) (((value) << 0) & 0x00ffffff) |
Data Structures | |
struct | ALT_SDMMC_DEBNCE_s |
Macros | |
#define | ALT_SDMMC_DEBNCE_RESET 0x00ffffff |
#define | ALT_SDMMC_DEBNCE_OFST 0x64 |
Typedefs | |
typedef struct ALT_SDMMC_DEBNCE_s | ALT_SDMMC_DEBNCE_t |
struct ALT_SDMMC_DEBNCE_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_SDMMC_DEBNCE.
Data Fields | ||
---|---|---|
uint32_t | debounce_count: 24 | ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT |
uint32_t | __pad0__: 8 | UNDEFINED |
#define ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT_LSB 0 |
The Least Significant Bit (LSB) position of the ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT register field.
#define ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT_MSB 23 |
The Most Significant Bit (MSB) position of the ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT register field.
#define ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT_WIDTH 24 |
The width in bits of the ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT register field.
#define ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT_SET_MSK 0x00ffffff |
The mask used to set the ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT register field value.
#define ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT_CLR_MSK 0xff000000 |
The mask used to clear the ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT register field value.
#define ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT_RESET 0xffffff |
The reset value of the ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT register field.
#define ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT_GET | ( | value | ) | (((value) & 0x00ffffff) >> 0) |
Extracts the ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT field value from a register.
#define ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT_SET | ( | value | ) | (((value) << 0) & 0x00ffffff) |
Produces a ALT_SDMMC_DEBNCE_DEBOUNCE_COUNT register field value suitable for setting the register.
#define ALT_SDMMC_DEBNCE_RESET 0x00ffffff |
The reset value of the ALT_SDMMC_DEBNCE register.
#define ALT_SDMMC_DEBNCE_OFST 0x64 |
The byte offset of the ALT_SDMMC_DEBNCE register from the beginning of the component.
typedef struct ALT_SDMMC_DEBNCE_s ALT_SDMMC_DEBNCE_t |
The typedef declaration for register ALT_SDMMC_DEBNCE.