cc26x0_ioc.h

CC26x0 MCU I/O register definitions.

MCU_IOC_BASE

IOC (MCU) base address.

1
(0x40081000)
IOCFG_PORTID_GPIO

GPIO.

1
0x00000000
IOCFG_PORTID_AON_SCS

AON SPI-S SCS.

1
0x00000001
IOCFG_PORTID_AON_SCK

AON SPI-S SCK.

1
0x00000002
IOCFG_PORTID_AON_SDI

AON SPI-S SDI.

1
0x00000003
IOCFG_PORTID_AON_SDO

AON SPI-S SDO.

1
0x00000004
IOCFG_PORTID_AON_CLK32K

AON external 32kHz clock.

1
0x00000007
IOCFG_PORTID_AUX_IO

AUX IO.

1
0x00000008
IOCFG_PORTID_SSI0_RX

SSI0 receive.

1
0x00000009
IOCFG_PORTID_SSI0_TX

SSI0 transmit.

1
0x0000000A
IOCFG_PORTID_SSI0_FSS

SSI0 FSS.

1
0x0000000B
IOCFG_PORTID_SSI0_CLK

SSI0 clock.

1
0x0000000C
IOCFG_PORTID_I2C_MSSDA

I2C data.

1
0x0000000D
IOCFG_PORTID_I2C_MSSCL

I2C clock.

1
0x0000000E
IOCFG_PORTID_UART0_RX

UART0 receive.

1
0x0000000F
IOCFG_PORTID_UART0_TX

UART0 transmit.

1
0x00000010
IOCFG_PORTID_UART0_CTS

UART0 clear to send.

1
0x00000011
IOCFG_PORTID_UART0_RTS

UART0 request to send.

1
0x00000012
IOCFG_PORTID_PORT_EVT0

PORT EVENT 0.

1
0x00000017
IOCFG_PORTID_PORT_EVT1

PORT EVENT 1.

1
0x00000018
IOCFG_PORTID_PORT_EVT2

PORT EVENT 2.

1
0x00000019
IOCFG_PORTID_PORT_EVT3

PORT EVENT 3.

1
0x0000001A
IOCFG_PORTID_PORT_EVT4

PORT EVENT 4.

1
0x0000001B
IOCFG_PORTID_PORT_EVT5

PORT EVENT 5.

1
0x0000001C
IOCFG_PORTID_PORT_EVT6

PORT EVENT 6.

1
0x0000001D
IOCFG_PORTID_PORT_EVT7

PORT EVENT 7.

1
0x0000001E
IOCFG_PORTID_SWV

serial wire viewer

1
0x00000020
IOCFG_PORTID_SSI1_RX

SSI1 receive.

1
0x00000021
IOCFG_PORTID_SSI1_TX

SSI1 transmit.

1
0x00000022
IOCFG_PORTID_SSI1_FSS

SSI1 FSS.

1
0x00000023
IOCFG_PORTID_SSI1_CLK

SSI1 clock.

1
0x00000024
IOCFG_PORTID_I2S_AD0

I2S data 0.

1
0x00000025
IOCFG_PORTID_I2S_AD1

I2S data 1.

1
0x00000026
IOCFG_PORTID_I2S_WCLK

I2S frame/word clock.

1
0x00000027
IOCFG_PORTID_I2S_BCLK

I2S bit clock.

1
0x00000028
IOCFG_PORTID_I2S_MCLK

I2S master clock 2.

1
0x00000029
IOCFG_PORTID_RFC_TRC

RF core trace.

1
0x0000002E
IOCFG_PORTID_RFC_GPO0

RC core data out 0.

1
0x0000002F
IOCFG_PORTID_RFC_GPO1

RC core data out 1.

1
0x00000030
IOCFG_PORTID_RFC_GPO2

RC core data out 2.

1
0x00000031
IOCFG_PORTID_RFC_GPO3

RC core data out 3.

1
0x00000032
IOCFG_PORTID_RFC_GPI0

RC core data in 0.

1
0x00000033
IOCFG_PORTID_RFC_GPI1

RC core data in 1.

1
0x00000034
IOCFG_PORTID_RFC_SMI_DL_OUT

RF core SMI data link out.

1
0x00000035
IOCFG_PORTID_RFC_SMI_DL_IN

RF core SMI data link in.

1
0x00000036
IOCFG_PORTID_RFC_SMI_CMD_OUT

RF core SMI command link out.

1
0x00000037
IOCFG_PORTID_RFC_SMI_CMD_IN

RF core SMI command link in.

1
0x00000038
IOCFG_IOSTR_AUTO

automatic drive strength (2/4/8 mA @ VVDS)

1
0x00000000
IOCFG_IOSTR_MAX

maximum drive strength (2/4/8 mA @ 1.8V)

1
0x00000300
IOCFG_IOSTR_MED

medium drive strength (2/4/8 mA @ 2.5V)

1
0x00000200
IOCFG_IOSTR_MIN

minimum drive strength (2/4/8 mA @ 3.3V)

1
0x00000100
IOCFG_IOCURR_2MA

2mA drive strength

1
0x00000000
IOCFG_IOCURR_4MA

4mA drive strength

1
0x00000400
IOCFG_IOCURR_8MA

4 or 8mA drive strength

1
0x00000800
IOCFG_IOCURR_16MA

Up to 16mA drive strength.

1
0x00000C00
IOCFG_SLEW_RED

reduced slew rate

1
0x00001000
IOCFG_PULLCTL_OFF

no IO pull

1
0x00006000
IOCFG_PULLCTL_UP

pull up

1
0x00004000
IOCFG_PULLCTL_DOWN

pull down

1
0x00002000
IOCFG_EDGEDET_FALLING

edge detection on falling edge

1
0x00010000
IOCFG_EDGEDET_RISING

edge detection on rising edge

1
0x00020000
IOCFG_EDGEDET_BOTH

edge detection on both edges

1
0x00030000
IOCFG_EDGEIRQ_ENABLE

enable interrupt on edge detect

1
0x00040000
IOCFG_IOMODE_INV

inverted I/O

1
0x01000000
IOCFG_IOMODE_OPEN_DRAIN

open drain

1
0x04000000
IOCFG_IOMODE_OPEN_SRC

open source

1
0x06000000
IOCFG_WUCFG_LOW
1
0x10000000
IOCFG_WUCFG_HIGH
1
0x18000000
IOCFG_INPUT_ENABLE
1
0x20000000
IOCFG_HYST_ENABLE
1
0x40000000
AON_IOC_BASE

always-on-IOC base address

1
(PERIPH_BASE + 0x94000)
IOC

IOC register banks.

1
((cc26x0_ioc_regs_t *)(MCU_IOC_BASE))
AON

AON register bank.

1
((aon_regs_t *) (AON_IOC_BASE))
IOCLATCH_EN

IO controlled by GPIO or peripheral; kept in AON otherwise.

1
0x00000001
CLK32KCTL_OEN

don’t output SCLK_LF on DIOs with PORT_ID AON_CLK32K

1
0x00000001
struct cc26x0_ioc_regs_t

obtain IOCFG-register for a DIO

Parameters

dio_num:DIO number (0-31)

reg32_t CFG()

config

struct aon_regs_t

AON registers.

reg32_t IOSTRMIN

IO drive strength minimum.

reg32_t IOSTRMED

IO drive strength medium.

reg32_t IOSTRMAX

IO drive strength maximum.

reg32_t IOCLATCH

IO latch control.

reg32_t CLK32KCTL

SCLK_LF external output control.