get_function_name给定一个selector(index),获取指定function的nameget_function_groups给定一个selector(index),获取指定function的pin groups信息enableenable一个function。当然要给出function selector和pin group的selectordisableenable的逆函数
Pin_13) || \ ((PIN) == GPIO_Pin_14) || \ ((PIN) == GPIO_Pin_15)) /** * @} */ /** @defgroup GPIO_Remap_define * @{ */ #define GPIO_Remap_SPI1 ((uint32_t)0x00000001) /*!< SPI1 Alternate Function mapping */ #define GPIO_Remap_I2C1 ((uint32_t)0x00000002) /*...
The CLIENT_PrepareController event callback function performs any operations that are needed to make the general-purpose I/O (GPIO) controller ready to be accessed by the GPIO controller driver.
GPIO_CLX_UnregisterClient function GPIO_CONNECT_IO_PINS_MODE enumeration GPIO_CONNECT_IO_PINS_PARAMETERS structure GPIO_DISABLE_INTERRUPT_PARAMETERS structure GPIO_DISCONNECT_IO_PINS_PARAMETERS structure GPIO_ENABLE_INTERRUPT_PARAMETERS structure GPIO_MASK_INTERRUPT_PARAMETERS structure GPIO_QUERY_AC...
*/ /* Reinitialize to the default configuration as specified in the GUI */ SmartIO_Init(); /* Enable the component */ SmartIO_Enable(); } void SmartIO_Start (void ) Invokes SmartIO_Init() and SmartIO_Enable(). After this function call, ...
ControllerFunctionBankMapping.Mapping[ANYSIZE_ARRAY] An array of BOOLEAN values that indicates the mapping of required F0 power states to GPIO banks. The number of elements in the array equals the number of GPIO banks. If N is the number of banks in the GPIO controller, the banks are numbere...
I really don't feel up to digging through gpiod sources to understand how the enumeration works. But if it's consistent / reliable, I will post a table with my findings. And if not, this method is still helpful for the individual who is just trying to hack something together for their...
.AutoEnableClocks = FALSE, .AutoDeassertReset = FALSE, .SkipEdkiiNondiscoverableInstall = TRUE, .DirectEnumerationSupport = TRUE }; STATIC PLATFORM_GPIO_CONTROLLER *mGpioController = NULL; STATIC EMBEDDED_GPIO *mI2cExpanderGpio = NULL; STATIC EFI_STATUS GetGpioAddress ( IN EMBEDDED_GPIO_PIN Gpi...
> + /* Default GPIO bank enumeration, first address cell from reg */ > + ret = of_property_read_u32(node, "reg", &id); > + if (ret < 0 || id >= LPC32XX_GPIO_BANKS) { > + dev_err(dev, "can not get valid GPIO bank id\n"); ...
DerCLIENT_CONTROLLER_QUERY_SET_REQUEST_TYPEEnumerationstyp gibt an, welchen Typ von Attributinformationen die GPIO-Frameworkerweiterung (GpioClx) vom GPIO-Controllertreiber anfordert. Syntax C++Kopieren typedefenum_CLIENT_CONTROLLER_QUERY_SET_REQUEST_TYPE { QueryBankPowerInformation, QueryBankInt...