resetps: xresetps.h File Reference

| resetps Xilinx SDK Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List
- Examples

Data Structures | Macros | Enumerations | Functions
xresetps.h File Reference

## Data Structures
struct | XResetPs_Config
| This typedef contains configuration information for the device. More...
struct | XResetPs
| The XResetPs driver instance data. More...

## Macros
#define | XRESETPS_SUPPORTED_ACT(ResetSupport, PulseSupport, AssertSupport) ((ResetSupport << 2) | (PulseSupport << 1) | AssertSupport)
| Set supported reset action. More...
#define | XRESETPS_CHK_ASSERT_SUPPORT(Actions) ((Actions & 0x1))
| Check if assert/dessert reset is supported. More...
#define | XRESETPS_CHK_PULSE_SUPPORT(Actions) ((Actions & 0x2) >> 1)
| Check if pulse reset is supported. More...
#define | XRESETPS_CHK_STATUS_SUPPORT(Actions) ((Actions & 0x4) >> 2)
| Check if Status check is supported. More...
#define | XResetPs_ReadReg(RegAddress) Xil_In32((u32)RegAddress)
| Read the given register. More...
#define | XResetPs_WriteReg(RegAddress, Data) Xil_Out32((u32)RegAddress, (u32)Data)
| Write the given register. More...

## Enumerations
enum | XResetPs_PulseTypes { XRESETPS_PT_NO_DLY_NO_PSCHK, XRESETPS_PT_DLY_NO_PSCHK, XRESETPS_PT_DLY_PSCHK, XRESETPS_PT_INVALID }
| This typedef defines type of pulse reset to be executed for peripherals. More...
enum | XresetPs_ResetAction
| This typedef defines reset actions on the peripherals. More...
enum | XResetPs_RstId
| This typedef defines resetIDs of peripherals maps to PMUFW resetIDs. More...
enum | XResetPs_RstStatus
| This typedef defines possible values for reset status of peripherals. More...

## Functions
XResetPs_Config * | XResetPs_LookupConfig (u16 DeviceId)
| Lookup the device configuration based on the unique device ID. More...
XStatus | XResetPs_CfgInitialize (XResetPs *InstancePtr, XResetPs_Config *ConfigPtr)
| Initialize a specific reset controller instance/driver. More...
XStatus | XResetPs_ResetAssert (XResetPs *InstancePtr, const XResetPs_RstId ResetID)
| Assert reset for specific peripheral based on reset ID. More...
XStatus | XResetPs_ResetDeassert (XResetPs *InstancePtr, const XResetPs_RstId ResetID)
| Deassert reset for specific peripheral based on reset ID. More...
XStatus | XResetPs_ResetPulse (XResetPs *InstancePtr, const XResetPs_RstId ResetID)
| Pulse reset for specific peripheral based on reset ID. More...
XStatus | XResetPs_ResetStatus (XResetPs *InstancePtr, const XResetPs_RstId ResetID, XResetPs_RstStatus *Status)
| Get reset status for specific peripheral based on reset ID. More...