Altera SoCAL  16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
 All Data Structures Variables Typedefs Groups
Component : GPIO Module - ALT_GPIO

Description

GPIO Module

Registers in the GPIO module

Members

 Register : Port A Data Register - gpio_swporta_dr
 
 Register : Port A Data Direction Register - gpio_swporta_ddr
 
 Register : Interrupt Enable Register - gpio_inten
 
 Register : Interrupt Mask Register - gpio_intmask
 
 Register : Interrupt Level Register - gpio_inttype_level
 
 Register : Interrupt Polarity Register - gpio_int_polarity
 
 Register : Interrupt Status Register - gpio_intstatus
 
 Register : Raw Interrupt Status Register - gpio_raw_intstatus
 
 Register : Debounce Enable Register - gpio_debounce
 
 Register : Clear Interrupt Register - gpio_porta_eoi
 
 Register : External Port A Register - gpio_ext_porta
 
 Register : Synchronization Level Register - gpio_ls_sync
 
 Register : ID Code Register - gpio_id_code
 
 Register : GPIO Version Register - gpio_ver_id_code
 
 Register : Configuration Register 2 - gpio_config_reg2
 
 Register : Configuration Register 1 - gpio_config_reg1
 

Data Structures

struct  ALT_GPIO_s
 
struct  ALT_GPIO_raw_s
 

Typedefs

typedef struct ALT_GPIO_s ALT_GPIO_t
 
typedef struct ALT_GPIO_raw_s ALT_GPIO_raw_t
 

Data Structure Documentation

struct ALT_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 group ALT_GPIO.

Data Fields
volatile ALT_GPIO_SWPORTA_DR_t gpio_swporta_dr ALT_GPIO_SWPORTA_DR
volatile ALT_GPIO_SWPORTA_DDR_t gpio_swporta_ddr ALT_GPIO_SWPORTA_DDR
volatile uint32_t _pad_0x8_0x2f UNDEFINED
volatile ALT_GPIO_INTEN_t gpio_inten ALT_GPIO_INTEN
volatile ALT_GPIO_INTMSK_t gpio_intmask ALT_GPIO_INTMSK
volatile ALT_GPIO_INTTYPE_LEVEL_t gpio_inttype_level ALT_GPIO_INTTYPE_LEVEL
volatile ALT_GPIO_INT_POL_t gpio_int_polarity ALT_GPIO_INT_POL
volatile ALT_GPIO_INTSTAT_t gpio_intstatus ALT_GPIO_INTSTAT
volatile ALT_GPIO_RAW_INTSTAT_t gpio_raw_intstatus ALT_GPIO_RAW_INTSTAT
volatile ALT_GPIO_DEBOUNCE_t gpio_debounce ALT_GPIO_DEBOUNCE
volatile ALT_GPIO_PORTA_EOI_t gpio_porta_eoi ALT_GPIO_PORTA_EOI
volatile ALT_GPIO_EXT_PORTA_t gpio_ext_porta ALT_GPIO_EXT_PORTA
volatile uint32_t _pad_0x54_0x5f UNDEFINED
volatile ALT_GPIO_LS_SYNC_t gpio_ls_sync ALT_GPIO_LS_SYNC
volatile ALT_GPIO_ID_CODE_t gpio_id_code ALT_GPIO_ID_CODE
volatile uint32_t _pad_0x68_0x6b UNDEFINED
volatile ALT_GPIO_VER_ID_CODE_t gpio_ver_id_code ALT_GPIO_VER_ID_CODE
volatile ALT_GPIO_CFG_REG2_t gpio_config_reg2 ALT_GPIO_CFG_REG2
volatile ALT_GPIO_CFG_REG1_t gpio_config_reg1 ALT_GPIO_CFG_REG1
volatile uint32_t _pad_0x78_0x80 UNDEFINED
struct ALT_GPIO_raw_s

The struct declaration for the raw register contents of register group ALT_GPIO.

Data Fields
volatile uint32_t gpio_swporta_dr ALT_GPIO_SWPORTA_DR
volatile uint32_t gpio_swporta_ddr ALT_GPIO_SWPORTA_DDR
volatile uint32_t _pad_0x8_0x2f UNDEFINED
volatile uint32_t gpio_inten ALT_GPIO_INTEN
volatile uint32_t gpio_intmask ALT_GPIO_INTMSK
volatile uint32_t gpio_inttype_level ALT_GPIO_INTTYPE_LEVEL
volatile uint32_t gpio_int_polarity ALT_GPIO_INT_POL
volatile uint32_t gpio_intstatus ALT_GPIO_INTSTAT
volatile uint32_t gpio_raw_intstatus ALT_GPIO_RAW_INTSTAT
volatile uint32_t gpio_debounce ALT_GPIO_DEBOUNCE
volatile uint32_t gpio_porta_eoi ALT_GPIO_PORTA_EOI
volatile uint32_t gpio_ext_porta ALT_GPIO_EXT_PORTA
volatile uint32_t _pad_0x54_0x5f UNDEFINED
volatile uint32_t gpio_ls_sync ALT_GPIO_LS_SYNC
volatile uint32_t gpio_id_code ALT_GPIO_ID_CODE
volatile uint32_t _pad_0x68_0x6b UNDEFINED
volatile uint32_t gpio_ver_id_code ALT_GPIO_VER_ID_CODE
volatile uint32_t gpio_config_reg2 ALT_GPIO_CFG_REG2
volatile uint32_t gpio_config_reg1 ALT_GPIO_CFG_REG1
volatile uint32_t _pad_0x78_0x80 UNDEFINED

Typedef Documentation

typedef struct ALT_GPIO_s ALT_GPIO_t

The typedef declaration for register group ALT_GPIO.

The typedef declaration for the raw register contents of register group ALT_GPIO.