Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
|
|
3.0.0 |
Go to the source code of this file.
Macros | |
#define | NRF_PSEL(fun, port, pin) |
Utility macro to build nRF psels property entry. More... | |
nRF pin configuration bit field positions and masks. | |
#define | NRF_FUN_POS 16U |
#define | NRF_FUN_MSK 0xFFFFU |
#define | NRF_LP_POS 12U |
#define | NRF_LP_MSK 0x1U |
#define | NRF_DRIVE_POS 8U |
#define | NRF_DRIVE_MSK 0xFU |
#define | NRF_PULL_POS 6U |
#define | NRF_PULL_MSK 0x3U |
#define | NRF_PIN_POS 0U |
#define | NRF_PIN_MSK 0x3FU |
nRF pinctrl pin functions. | |
#define | NRF_FUN_UART_TX 0U |
#define | NRF_FUN_UART_RX 1U |
#define | NRF_FUN_UART_RTS 2U |
#define | NRF_FUN_UART_CTS 3U |
nRF pinctrl output drive. | |
| |
#define | NRF_DRIVE_S0S1 0U |
#define | NRF_DRIVE_H0S1 1U |
#define | NRF_DRIVE_S0H1 2U |
#define | NRF_DRIVE_H0H1 3U |
#define | NRF_DRIVE_D0S1 4U |
#define | NRF_DRIVE_D0H1 5U |
#define | NRF_DRIVE_S0D1 6U |
#define | NRF_DRIVE_H0D1 7U |
#define | NRF_DRIVE_E0E1 11U |
nRF pinctrl pull-up/down. | |
| |
#define | NRF_PULL_NONE 0U |
#define | NRF_PULL_DOWN 1U |
#define | NRF_PULL_UP 3U |
nRF pinctrl low power mode. | |
#define | NRF_LP_DISABLE 0U |
#define | NRF_LP_ENABLE 1U |
#define NRF_DRIVE_D0H1 5U |
Disconnect '0', high drive '1'.
#define NRF_DRIVE_D0S1 4U |
Disconnect '0' standard '1'.
#define NRF_DRIVE_E0E1 11U |
Extra high drive '0', extra high drive '1'.
#define NRF_DRIVE_H0D1 7U |
High drive '0', disconnect '1'.
#define NRF_DRIVE_H0H1 3U |
High drive '0', high drive '1'.
#define NRF_DRIVE_H0S1 1U |
High drive '0', standard '1'.
#define NRF_DRIVE_MSK 0xFU |
Mask for the drive configuration field.
#define NRF_DRIVE_POS 8U |
Position of the drive configuration field.
#define NRF_DRIVE_S0D1 6U |
Standard '0', disconnect '1'.
#define NRF_DRIVE_S0H1 2U |
Standard '0', high drive '1'.
#define NRF_DRIVE_S0S1 0U |
Standard '0', standard '1'.
#define NRF_FUN_MSK 0xFFFFU |
Mask for the function field.
#define NRF_FUN_POS 16U |
Position of the function field.
#define NRF_FUN_UART_CTS 3U |
UART CTS
#define NRF_FUN_UART_RTS 2U |
UART RTS
#define NRF_FUN_UART_RX 1U |
UART RX
#define NRF_FUN_UART_TX 0U |
UART TX
#define NRF_LP_DISABLE 0U |
Input.
#define NRF_LP_ENABLE 1U |
Output.
#define NRF_LP_MSK 0x1U |
Mask for the low power field.
#define NRF_LP_POS 12U |
Position of the low power field.
#define NRF_PIN_MSK 0x3FU |
Mask for the pin field.
#define NRF_PIN_POS 0U |
Position of the pin field.
#define NRF_PSEL | ( | fun, | |
port, | |||
pin | |||
) |
Utility macro to build nRF psels property entry.
fun | Pin function configuration (see NRF_FUNC_{name} macros). |
port | Port (0 or 1). |
pin | Pin (0..31). |
#define NRF_PULL_DOWN 1U |
Pull-down enabled.
#define NRF_PULL_MSK 0x3U |
Mask for the pull configuration field.
#define NRF_PULL_NONE 0U |
Pull-up disabled.
#define NRF_PULL_POS 6U |
Position of the pull configuration field.
#define NRF_PULL_UP 3U |
Pull-up enabled.