Struct representing a CPC GPIO expander handle.

This structure contains the configuration for a GPIO pin that will be exposed to the CPC host (primary device) through the CPC GPIO endpoint.

Public Attributes#

const GPIO_Port_TypeDef

GPIO port (e.g., gpioPortA, gpioPortB)

const uint32_t

GPIO pin number (0-15)

const char *

Human-readable name for the GPIO (e.g., "LED1", "BUTTON1")

uint32_t

GPIO configuration flags (bias, drive mode, etc.)

Public Attribute Documentation#

port#

const GPIO_Port_TypeDef sl_cpc_gpio_expander_handle_t::port

GPIO port (e.g., gpioPortA, gpioPortB)


pin#

const uint32_t sl_cpc_gpio_expander_handle_t::pin

GPIO pin number (0-15)


name#

const char* sl_cpc_gpio_expander_handle_t::name

Human-readable name for the GPIO (e.g., "LED1", "BUTTON1")


config#

uint32_t sl_cpc_gpio_expander_handle_t::config

GPIO configuration flags (bias, drive mode, etc.)