MODIFICATION HISTORY:
Ver Who Date Changes ----- ---- -------- ----------------------------------------------- 1.00a sv 01/15/10 First Release 1.01a sv 04/15/12 Removed the APIs XGpioPs_SetMode, XGpioPs_SetModePin XGpioPs_GetMode, XGpioPs_GetModePin as they are not relevant to Zynq device. The interrupts are disabled for output pins on all banks during initialization. 2.1 hk 04/29/14 Use Input data register DATA_RO for read. CR# 771667.
#include "xgpiops.h"
Functions | |
void | StubHandler (void *CallBackRef, int Bank, u32 Status) |
u32 | XGpioPs_Read (XGpioPs *InstancePtr, u8 Bank) |
int | XGpioPs_ReadPin (XGpioPs *InstancePtr, int Pin) |
void | XGpioPs_Write (XGpioPs *InstancePtr, u8 Bank, u32 Data) |
void | XGpioPs_WritePin (XGpioPs *InstancePtr, int Pin, int Data) |
void | XGpioPs_SetDirection (XGpioPs *InstancePtr, u8 Bank, u32 Direction) |
void | XGpioPs_SetDirectionPin (XGpioPs *InstancePtr, int Pin, int Direction) |
u32 | XGpioPs_GetDirection (XGpioPs *InstancePtr, u8 Bank) |
int | XGpioPs_GetDirectionPin (XGpioPs *InstancePtr, int Pin) |
void | XGpioPs_SetOutputEnable (XGpioPs *InstancePtr, u8 Bank, u32 OpEnable) |
void | XGpioPs_SetOutputEnablePin (XGpioPs *InstancePtr, int Pin, int OpEnable) |
u32 | XGpioPs_GetOutputEnable (XGpioPs *InstancePtr, u8 Bank) |
int | XGpioPs_GetOutputEnablePin (XGpioPs *InstancePtr, int Pin) |
|
This is a stub for the status callback. The stub is here in case the upper layers do not set the handler.
|
|
Get the Direction of the pins of the specified GPIO Bank.
|
|
Get the Direction of the specified pin.
|
|
Get the Output Enable status of the pins of the specified GPIO Bank.
|
|
Get the Output Enable status of the specified pin.
|
|
Read the Data register of the specified GPIO bank.
|
|
Read Data from the specified pin.
|
|
Set the Direction of the pins of the specified GPIO Bank.
|
|
Set the Direction of the specified pin.
|
|
Set the Output Enable of the pins of the specified GPIO Bank.
|
|
Set the Output Enable of the specified pin.
|
|
Write to the Data register of the specified GPIO bank.
|
|
Write data to the specified pin.
|