Nordic nrf51 sdk sources. Mirrored from https://github.com/ARMmbed/nrf51-sdk.

Dependents:   nRF51822 nRF51822

Embed: (wiki syntax)

« Back to documentation index

NRF_GPIO_Type Struct Reference

NRF_GPIO_Type Struct Reference
[Device_Peripheral_Registers]

General purpose input and output. More...

#include <nrf51.h>

Data Fields

__I uint32_t RESERVED0 [321]
__IO uint32_t OUT
__IO uint32_t OUTSET
__IO uint32_t OUTCLR
__I uint32_t IN
__IO uint32_t DIR
__IO uint32_t DIRSET
__IO uint32_t DIRCLR
__IO uint32_t PIN_CNF [32]

Detailed Description

General purpose input and output.

(GPIO)

Definition at line 1143 of file nrf51.h.


Field Documentation

__IO uint32_t DIR

Direction of GPIO pins.

Definition at line 1149 of file nrf51.h.

__IO uint32_t DIRCLR

DIR clear register.

Definition at line 1151 of file nrf51.h.

__IO uint32_t DIRSET

DIR set register.

Definition at line 1150 of file nrf51.h.

__I uint32_t IN

Read GPIO port.

Definition at line 1148 of file nrf51.h.

__IO uint32_t OUT

Write GPIO port.

Definition at line 1145 of file nrf51.h.

__IO uint32_t OUTCLR

Clear individual bits in GPIO port.

Definition at line 1147 of file nrf51.h.

__IO uint32_t OUTSET

Set individual bits in GPIO port.

Definition at line 1146 of file nrf51.h.

__IO uint32_t PIN_CNF[32]

Configuration of GPIO pins.

Definition at line 1153 of file nrf51.h.

__I uint32_t RESERVED0[321]

< GPIO Structure

Definition at line 1144 of file nrf51.h.