### GPIO_CFG

Bit Field | Read/Write | Field Name | Description
--- | --- | --- | ---
13:12 | RW | DRIVE | Drive strength configuration
10 | RW | LPF | Low Pass Filter enable
9:8 | RW | PULL_CTRL | Pull selection
7 | RW | NS_ACCESS_GPIO | Non-Secure code can use GPIO (can only be written by a secure code)
6:0 | RW | IO_MODE | IO mode selection

Bit Field | Field Name | Value Symbol | Value Description | Hex Value
--- | --- | --- | --- | ---
13:12 | DRIVE | GPIO_2X_DRIVE | 2x drive strength | 0x0
|  | GPIO_3X_DRIVE | 3x drive strength | 0x1
|  | GPIO_5X_DRIVE | 5x drive strength | 0x2
|  | GPIO_6X_DRIVE | 6x drive strength | 0x3*
10 | LPF | GPIO_LPF_DISABLE | Disable low pass filter | 0x0*
|  | GPIO_LPF_ENABLE | Enable low pass filter | 0x1
9:8 | PULL_CTRL | GPIO_NO_PULL | No pull selected | 0x0
|  | GPIO_WEAK_PULL_UP | Weak pull-up selected | 0x1*
|  | GPIO_WEAK_PULL_DOWN | Weak pull-down selected | 0x2
|  | GPIO_STRONG_PULL_UP | Strong pull-up selected | 0x3
7 | NS_ACCESS_GPIO | NS_CANNOT_USE_GPIO | Non-Secure code cannot use this GPIO | 0x0*
|  | NS_CAN_USE_GPIO | Non-Secure code can use this GPIO | 0x1
6:0 | IO_MODE | GPIO_MODE_DISABLE | Disable | 0x0*
|  | GPIO_MODE_INPUT | Input mode | 0x1
|  | GPIO_MODE_GPIO_IN | GPIO input mode | 0x2
|  | GPIO_MODE_GPIO_OUT | GPIO output mode | 0x3
|  | GPIO_MODE_SLOWCLK | Output SLOWCLK (slow clock) signal | 0x4
|  | GPIO_MODE_SYSCLK | Output SYSCLK (system clock) signal | 0x5
|  | GPIO_MODE_USRCLK | Output USRCLK (user clock) signal | 0x6
|  | GPIO_MODE_RCCLK | Output RCCLK signal | 0x7
|  | GPIO_MODE_SWCLK_DIV | Output of SWCLK divider signal | 0x8
|  | GPIO_MODE_EXTCLK_DIV | Output of EXTCLK divider signal | 0x9
|  | GPIO_MODE_RFCLK | Output RFCLK signal | 0xA
|  | GPIO_MODE_STANDBYCLK | Output STANDBYCLK signal | 0xB
|  | GPIO_MODE_SENSORCLK | Output SENSORCLK signal | 0xC
|  | GPIO_MODE_SPI0_IO0 | Output SPI0_IO0 interface signal (master SERO) | 0xD
|  | GPIO_MODE_SPI0_IO1 | Output SPI0_IO1 interface signal (slave SERO) | 0xE
|  | GPIO_MODE_SPI0_IO2 | Output SPI0_IO2 interface signal | 0xF
|  | GPIO_MODE_SPI0_IO3 | Output SPI0_IO3 interface signal | 0x10
|  | GPIO_MODE_SPI0_CS | Output SPI0_CS interface signal | 0x11
|  | GPIO_MODE_SPI0_CLK | Output SPI0_CLK interface signal | 0x12
|  | GPIO_MODE_SPI1_IO0 | Output SPI1_IO0 interface signal (master SERO) | 0x13
|  | GPIO_MODE_SPI1_IO1 | Output SPI1_IO1 interface signal (slave SERO) | 0x14
|  | GPIO_MODE_SPI1_IO2 | Output SPI1_IO2 interface signal | 0x15
|  | GPIO_MODE_SPI1_IO3 | Output SPI1_IO3 interface signal | 0x16
|  | GPIO_MODE_SPI1_CS | Output SPI1_CS interface signal | 0x17
|  | GPIO_MODE_SPI1_CLK | Output SPI1_CLK interface signal | 0x18
|  | GPIO_MODE_UART0_TX | Output UART0_TX interface signal | 0x19
|  | GPIO_MODE_I2C0_SCL | Output I2C0 SCL interface signal (open collector) | 0x1A
|  | GPIO_MODE_I2C0_SDA | Output I2C0 SDA interface signal (open collector) | 0x1B
|  | GPIO_MODE_I2C1_SCL | Output I2C1 SCL interface signal (open collector) | 0x1C
|  | GPIO_MODE_I2C1_SDA | Output I2C1 SDA interface signal (open collector) | 0x1D
|  | GPIO_MODE_PCM0_SERO | Output PCM0_SERO interface signal | 0x1E
|  | GPIO_MODE_PCM0_FRAME | Output PCM0_FRAME interface signal | 0x1F
|  | GPIO_MODE_PWM0 | Output PWM0 interface signal | 0x20
|  | GPIO_MODE_PWM1 | Output PWM1 interface signal | 0x21
|  | GPIO_MODE_PWM2 | Output PWM2 interface signal | 0x22
|  | GPIO_MODE_PWM3 | Output PWM3 interface signal | 0x23
|  | GPIO_MODE_PWM4 | Output PWM4 interface signal | 0x24
|  | GPIO_MODE_PWM0_INV | Output PWM0 interface signal inverted | 0x25
|  | GPIO_MODE_PWM1_INV | Output PWM1 interface signal inverted | 0x26
|  | GPIO_MODE_PWM2_INV | Output PWM2 interface signal inverted | 0x27
|  | GPIO_MODE_PWM3_INV | Output PWM3 interface signal inverted | 0x28
|  | GPIO_MODE_PWM4_INV | Output PWM4 interface signal inverted | 0x29
|  | GPIO_MODE_LIN0_TX | Output LIN0_TX interface signal | 0x2A
|  | GPIO_MODE_BB_TX_DATA | Output baseband controller TX data signal | 0x2B
|  | GPIO_MODE_BB_TX_DATA_VALID | Output baseband controller TX data valid signal | 0x2C
|  | GPIO_MODE_BB_SPI_CSN | Output baseband controller SPI_CSN signal | 0x2D
|  | GPIO_MODE_BB_SPI_CLK | Output baseband controller SPI_CLK signal | 0x2E
|  | GPIO_MODE_BB_SPI_MOSI | Output baseband controller SPI_MOSI signal | 0x2F
|  | GPIO_MODE_BB_DBG_0 | Output baseband controller debug port (bit 0) signal | 0x30
|  | GPIO_MODE_BB_DBG_1 | Output baseband controller debug port (bit 1) signal | 0x31
|  | GPIO_MODE_BB_DBG_2 | Output baseband controller debug port (bit 2) signal | 0x32
|  | GPIO_MODE_BB_DBG_3 | Output baseband controller debug port (bit 3) signal | 0x33
|  | GPIO_MODE_BB_DBG_4 | Output baseband controller debug port (bit 4) signal | 0x34
|  | GPIO_MODE_BB_DBG_5 | Output baseband controller debug port (bit 5) signal | 0x35
|  | GPIO_MODE_BB_DBG_6 | Output baseband controller debug port (bit 6) signal | 0x36
|  | GPIO_MODE_BB_DBG_7 | Output baseband controller debug port (bit 7) signal | 0x37
|  | GPIO_MODE_BB_BLE_SYNC | Output baseband controller wlan coex signal sync | 0x38
|  | GPIO_MODE_BB_BLE_IN_PROCESS | Output baseband controller wlan coex signal in_process | 0x39
|  | GPIO_MODE_BB_BLE_TX | Output baseband controller wlan coex signal Tx | 0x3A
|  | GPIO_MODE_BB_BLE_RX | Output baseband controller wlan coex signal Rx | 0x3B
|  | GPIO_MODE_BB_BLE_PTI_0 | Output baseband controller wlan coex signal PTI (bit 0) | 0x3C
|  | GPIO_MODE_BB_BLE_PTI_1 | Output baseband controller wlan coex signal PTI (bit 1) | 0x3D
|  | GPIO_MODE_BB_BLE_PTI_2 | Output baseband controller wlan coex signal PTI (bit 2) | 0x3E
|  | GPIO_MODE_BB_BLE_PTI_3 | Output baseband controller wlan coex signal PTI (bit 3) | 0x3F
|  | GPIO_MODE_BB_ANT_SW_EN | Output baseband controller antenna switch enable | 0x40
|  | GPIO_MODE_BB_ANT_SW_0 | Output baseband controller antenna switch (bit 0) | 0x41
|  | GPIO_MODE_BB_ANT_SW_1 | Output baseband controller antenna switch (bit 1) | 0x42
|  | GPIO_MODE_BB_ANT_SW_2 | Output baseband controller antenna switch (bit 2) | 0x43
|  | GPIO_MODE_BB_ANT_SW_3 | Output baseband controller antenna switch (bit 3) | 0x44
|  | GPIO_MODE_BB_ANT_SW_4 | Output baseband controller antenna switch (bit 4) | 0x45
|  | GPIO_MODE_BB_ANT_SW_5 | Output baseband controller antenna switch (bit 5) | 0x46
|  | GPIO_MODE_BB_ANT_SW_6 | Output baseband controller antenna switch (bit 6) | 0x47
|  | GPIO_MODE_BB_CTE_MODE | Output baseband controller CTE mode | 0x48
|  | GPIO_MODE_BB_CTE_SAMPLE_P | Output baseband controller CTE sample pulse | 0x49
|  | GPIO_MODE_RF_SPI_MISO | Output RF front-end SPI_MISO interface signal | 0x4A
|  | GPIO_MODE_RF_GPIO0 | Output RF front-end GPIO0 output signal (RX_DATA) | 0x4B
|  | GPIO_MODE_RF_GPIO1 | Output RF front-end GPIO1 output signal (RX_CLK) | 0x4C
|  | GPIO_MODE_RF_GPIO2 | Output RF front-end GPIO2 output signal (SYNC_P) | 0x4D
|  | GPIO_MODE_RF_GPIO3 | Output RF front-end GPIO3 output signal | 0x4E
|  | GPIO_MODE_RF_GPIO4 | Output RF front-end GPIO4 output signal | 0x4F
|  | GPIO_MODE_RF_GPIO5 | Output RF front-end GPIO5 output signal | 0x50
|  | GPIO_MODE_RF_GPIO6 | Output RF front-end GPIO6 output signal | 0x51
|  | GPIO_MODE_RF_GPIO7 | Output RF front-end GPIO7 output signal | 0x52
|  | GPIO_MODE_RF_GPIO8 | Output RF front-end GPIO8 output signal | 0x53
|  | GPIO_MODE_RF_GPIO9 | Output RF front-end GPIO9 output signal | 0x54
|  | GPIO_MODE_RF_IQ_DATA_P | Output RF front-end IQ data pulse signal | 0x55
|  | GPIO_MODE_RF_I_DATA_0 | Output RF front-end I data (bit 0) | 0x56
|  | GPIO_MODE_RF_I_DATA_1 | Output RF front-end I data (bit 1) | 0x57
|  | GPIO_MODE_RF_I_DATA_2 | Output RF front-end I data (bit 2) | 0x58
|  | GPIO_MODE_RF_I_DATA_3 | Output RF front-end I data (bit 3) | 0x59
|  | GPIO_MODE_RF_I_DATA_4 | Output RF front-end I data (bit 4) | 0x5A
|  | GPIO_MODE_RF_I_DATA_5 | Output RF front-end I data (bit 5) | 0x5B
|  | GPIO_MODE_RF_I_DATA_6 | Output RF front-end I data (bit 6) | 0x5C
|  | GPIO_MODE_RF_I_DATA_7 | Output RF front-end I data (bit 7) | 0x5D
|  | GPIO_MODE_RF_Q_DATA_0 | Output RF front-end Q data (bit 0) | 0x5E
|  | GPIO_MODE_RF_Q_DATA_1 | Output RF front-end Q data (bit 1) | 0x5F
|  | GPIO_MODE_RF_Q_DATA_2 | Output RF front-end Q data (bit 2) | 0x60
|  | GPIO_MODE_RF_Q_DATA_3 | Output RF front-end Q data (bit 3) | 0x61
|  | GPIO_MODE_RF_Q_DATA_4 | Output RF front-end Q data (bit 4) | 0x62
|  | GPIO_MODE_RF_Q_DATA_5 | Output RF front-end Q data (bit 5) | 0x63
|  | GPIO_MODE_RF_Q_DATA_6 | Output RF front-end Q data (bit 6) | 0x64
|  | GPIO_MODE_RF_Q_DATA_7 | Output RF front-end Q data (bit 7) | 0x65
|  | GPIO_MODE_RF_ANT_SW_0 | Output RF front-end antenna switch (bit 0) | 0x66
|  | GPIO_MODE_RF_ANT_SW_1 | Output RF front-end antenna switch (bit 1) | 0x67
|  | GPIO_MODE_RF_ANT_SW_2 | Output RF front-end antenna switch (bit 2) | 0x68
|  | GPIO_MODE_RF_ANT_SW_3 | Output RF front-end antenna switch (bit 3) | 0x69
|  | GPIO_MODE_TOF_START | Output Time Of Flight timer start trigger | 0x6A
|  | GPIO_MODE_TOF_STOP | Output Time Of Flight timer stop trigger | 0x6B