Functions

Function for configuring the GPIO pin range as output pins with normal drive strength. This function can be used to configure pin range as simple output with gate driving GPIO_PIN_CNF_DRIVE_S0S1 (normal cases). More...

Function for configuring the given GPIO pin number as output, hiding inner details. This function can be used to configure a pin as simple output with gate driving GPIO_PIN_CNF_DRIVE_S0S1 (normal cases). More...

Function for configuring the given GPIO pin number as input, hiding inner details. This function can be used to configure pin range as simple input. Sense capability on the pin is configurable and input is connected to buffer so that the GPIO->IN register is readable. More...

Sense capability on the pin is disabled and input is connected to buffer so that the GPIO->IN register is readable.

__STATIC_INLINE void nrf_gpio_cfg_output

(

uint32_t

pin_number

)

Function for configuring the given GPIO pin number as output, hiding inner details. This function can be used to configure a pin as simple output with gate driving GPIO_PIN_CNF_DRIVE_S0S1 (normal cases).

Parameters

pin_number

Specifies the pin number.

Note

Sense capability on the pin is disabled and input is disconnected from the buffer as the pins are configured as output.

Function for configuring the given GPIO pin number as input, hiding inner details. This function can be used to configure pin range as simple input. Sense capability on the pin is configurable and input is connected to buffer so that the GPIO->IN register is readable.

Parameters

pin_number

Specifies the pin number.

pull_config

State of the pin pull resistor (no pull, pulled down, or pulled high).

For configuring only one pin as input, use nrf_gpio_cfg_input. Sense capability on the pin is disabled and input is connected to buffer so that the GPIO->IN register is readable.

__STATIC_INLINE void nrf_gpio_range_cfg_output

(

uint32_t

pin_range_start,

uint32_t

pin_range_end

)

Function for configuring the GPIO pin range as output pins with normal drive strength. This function can be used to configure pin range as simple output with gate driving GPIO_PIN_CNF_DRIVE_S0S1 (normal cases).

Parameters

pin_range_start

Specifies the start number (inclusive) in the range of pin numbers to be configured (allowed values 0-30).

pin_range_end

Specifies the end number (inclusive) in the range of pin numbers to be configured (allowed values 0-30).

Note

For configuring only one pin as output, use nrf_gpio_cfg_output. Sense capability on the pin is disabled and input is disconnected from the buffer as the pins are configured as output.