![]() |
Altera SoCAL
16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
|
General Purpose Input/Output Register
Register Layout
Bits | Access | Reset | Description |
---|---|---|---|
[7:0] | R | 0x0 | ALT_SDMMC_GPIO_GPI |
[23:8] | RW | 0x0 | ALT_SDMMC_GPIO_GPO |
[31:24] | ??? | 0x0 | UNDEFINED |
Field : gpi | |
Value on gpi input ports; this portion of register is read-only. Valid only when AREA_OPTIMIZED parameter is 0. Field Access Macros: | |
#define | ALT_SDMMC_GPIO_GPI_LSB 0 |
#define | ALT_SDMMC_GPIO_GPI_MSB 7 |
#define | ALT_SDMMC_GPIO_GPI_WIDTH 8 |
#define | ALT_SDMMC_GPIO_GPI_SET_MSK 0x000000ff |
#define | ALT_SDMMC_GPIO_GPI_CLR_MSK 0xffffff00 |
#define | ALT_SDMMC_GPIO_GPI_RESET 0x0 |
#define | ALT_SDMMC_GPIO_GPI_GET(value) (((value) & 0x000000ff) >> 0) |
#define | ALT_SDMMC_GPIO_GPI_SET(value) (((value) << 0) & 0x000000ff) |
Field : gpo | |
Value needed to be driven to gpo pins; this portion of register is read/write. Valid only when AREA_OPTIMIZED parameter is 0. Field Access Macros: | |
#define | ALT_SDMMC_GPIO_GPO_LSB 8 |
#define | ALT_SDMMC_GPIO_GPO_MSB 23 |
#define | ALT_SDMMC_GPIO_GPO_WIDTH 16 |
#define | ALT_SDMMC_GPIO_GPO_SET_MSK 0x00ffff00 |
#define | ALT_SDMMC_GPIO_GPO_CLR_MSK 0xff0000ff |
#define | ALT_SDMMC_GPIO_GPO_RESET 0x0 |
#define | ALT_SDMMC_GPIO_GPO_GET(value) (((value) & 0x00ffff00) >> 8) |
#define | ALT_SDMMC_GPIO_GPO_SET(value) (((value) << 8) & 0x00ffff00) |
Data Structures | |
struct | ALT_SDMMC_GPIO_s |
Macros | |
#define | ALT_SDMMC_GPIO_RESET 0x00000000 |
#define | ALT_SDMMC_GPIO_OFST 0x58 |
Typedefs | |
typedef struct ALT_SDMMC_GPIO_s | ALT_SDMMC_GPIO_t |
struct ALT_SDMMC_GPIO_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_GPIO.
Data Fields | ||
---|---|---|
const uint32_t | gpi: 8 | ALT_SDMMC_GPIO_GPI |
uint32_t | gpo: 16 | ALT_SDMMC_GPIO_GPO |
uint32_t | __pad0__: 8 | UNDEFINED |
#define ALT_SDMMC_GPIO_GPI_LSB 0 |
The Least Significant Bit (LSB) position of the ALT_SDMMC_GPIO_GPI register field.
#define ALT_SDMMC_GPIO_GPI_MSB 7 |
The Most Significant Bit (MSB) position of the ALT_SDMMC_GPIO_GPI register field.
#define ALT_SDMMC_GPIO_GPI_WIDTH 8 |
The width in bits of the ALT_SDMMC_GPIO_GPI register field.
#define ALT_SDMMC_GPIO_GPI_SET_MSK 0x000000ff |
The mask used to set the ALT_SDMMC_GPIO_GPI register field value.
#define ALT_SDMMC_GPIO_GPI_CLR_MSK 0xffffff00 |
The mask used to clear the ALT_SDMMC_GPIO_GPI register field value.
#define ALT_SDMMC_GPIO_GPI_RESET 0x0 |
The reset value of the ALT_SDMMC_GPIO_GPI register field.
#define ALT_SDMMC_GPIO_GPI_GET | ( | value | ) | (((value) & 0x000000ff) >> 0) |
Extracts the ALT_SDMMC_GPIO_GPI field value from a register.
#define ALT_SDMMC_GPIO_GPI_SET | ( | value | ) | (((value) << 0) & 0x000000ff) |
Produces a ALT_SDMMC_GPIO_GPI register field value suitable for setting the register.
#define ALT_SDMMC_GPIO_GPO_LSB 8 |
The Least Significant Bit (LSB) position of the ALT_SDMMC_GPIO_GPO register field.
#define ALT_SDMMC_GPIO_GPO_MSB 23 |
The Most Significant Bit (MSB) position of the ALT_SDMMC_GPIO_GPO register field.
#define ALT_SDMMC_GPIO_GPO_WIDTH 16 |
The width in bits of the ALT_SDMMC_GPIO_GPO register field.
#define ALT_SDMMC_GPIO_GPO_SET_MSK 0x00ffff00 |
The mask used to set the ALT_SDMMC_GPIO_GPO register field value.
#define ALT_SDMMC_GPIO_GPO_CLR_MSK 0xff0000ff |
The mask used to clear the ALT_SDMMC_GPIO_GPO register field value.
#define ALT_SDMMC_GPIO_GPO_RESET 0x0 |
The reset value of the ALT_SDMMC_GPIO_GPO register field.
#define ALT_SDMMC_GPIO_GPO_GET | ( | value | ) | (((value) & 0x00ffff00) >> 8) |
Extracts the ALT_SDMMC_GPIO_GPO field value from a register.
#define ALT_SDMMC_GPIO_GPO_SET | ( | value | ) | (((value) << 8) & 0x00ffff00) |
Produces a ALT_SDMMC_GPIO_GPO register field value suitable for setting the register.
#define ALT_SDMMC_GPIO_RESET 0x00000000 |
The reset value of the ALT_SDMMC_GPIO register.
#define ALT_SDMMC_GPIO_OFST 0x58 |
The byte offset of the ALT_SDMMC_GPIO register from the beginning of the component.
typedef struct ALT_SDMMC_GPIO_s ALT_SDMMC_GPIO_t |
The typedef declaration for register ALT_SDMMC_GPIO.