![]() |
gpio
Vitis Drivers API Documentation
|
Implements the basic functionality of the XGpio driver.
Provides the software API definition of the Xilinx General Purpose I/O device driver.
MODIFICATION HISTORY:
Ver Who Date Changes
1.00a rmm 02/04/02 First release 2.00a jhl 12/16/02 Update for dual channel and interrupt support 2.01a jvb 12/13/05 Changed Initialize() into CfgInitialize(), and made CfgInitialize() take a pointer to a config structure instead of a device id. Moved Initialize() into xgpio_sinit.c, and had Initialize() call CfgInitialize() after it retrieved the config structure using the device id. Removed include of xparameters.h along with any dependencies on xparameters.h and the _g.c config table. 2.11a mta 03/21/07 Updated to new coding style, added GetDataDirection 2.12a sv 11/21/07 Updated driver to support access through DCR bus 3.00a sv 11/21/09 Updated to use HAL Processor APIs. Renamed the macros to remove _m from the name. 4.1 lks 11/18/15 Clean up of the comments in the code and removed support for DCR bridge 4.2 sk 08/16/16 Used UINTPTR instead of u32 for Baseaddress as part of adding 64 bit support. CR# 867425. Changed the prototype of XGpio_CfgInitialize API. 4.9 pm 11/30/21 Addressed Doxygen warning 4.14 vn 07/30/26 Fix Doxygen warnings 4.14 vn 09/10/26 Align Doxygen comments with AMD standards
Functions | |
| int | XGpio_CfgInitialize (XGpio *InstancePtr, XGpio_Config *Config, UINTPTR EffectiveAddr) |
| Initializes the XGpio instance based on the given configuration data. More... | |
| void | XGpio_SetDataDirection (XGpio *InstancePtr, unsigned Channel, u32 DirectionMask) |
| Sets the I/O direction of all discrete signals for a GPIO channel. More... | |
| u32 | XGpio_GetDataDirection (XGpio *InstancePtr, unsigned Channel) |
| Gets the I/O direction of all discrete signals for a GPIO channel. More... | |
| u32 | XGpio_DiscreteRead (XGpio *InstancePtr, unsigned Channel) |
| Reads the state of the discretes for the specified GPIO channel. More... | |
| void | XGpio_DiscreteWrite (XGpio *InstancePtr, unsigned Channel, u32 Mask) |
| Writes to the discretes register for the specified GPIO channel. More... | |