![]() |
cframe
Xilinx SDK Drivers API Documentation
|
Macros | |
#define | XCFRAME_HW_H_ |
Prevent circular inclusions by using protection macros. More... | |
#define | XCframe_In32 Xil_In32 |
Input operation. More... | |
#define | XCframe_Out32 Xil_Out32 |
Output operation. More... | |
#define | XCframe_ReadReg32(BaseAddress, RegOffset) XCframe_In32(BaseAddress + (u32)(RegOffset)) |
This macro reads the given register. More... | |
#define | XCframe_WriteReg32(BaseAddress, RegOffset, Data) XCframe_Out32(BaseAddress + (u32)(RegOffset), (u32)(Data)) |
This macro writes the value into the given register. More... | |
Functions | |
s32 | XCframe_SelfTest (XCframe *InstancePtr) |
This function runs a self-test on the driver and hardware device. More... | |
XCframe_Config * | XCframe_LookupConfig (u16 DeviceId) |
XCframe_LookupConfig returns a reference to an XCframe_Config structure based on the unique device id, DeviceId. More... | |
#define XCFRAME_HW_H_ |
Prevent circular inclusions by using protection macros.
#define XCframe_In32 Xil_In32 |
Input operation.
#define XCframe_Out32 Xil_Out32 |
Output operation.
#define XCframe_ReadReg32 | ( | BaseAddress, | |
RegOffset | |||
) | XCframe_In32(BaseAddress + (u32)(RegOffset)) |
This macro reads the given register.
BaseAddress | is the Xilinx base address of the CFRAME core. |
RegOffset | is the register offset of the register. |
Referenced by XCframe_ReadReg().
#define XCframe_WriteReg32 | ( | BaseAddress, | |
RegOffset, | |||
Data | |||
) | XCframe_Out32(BaseAddress + (u32)(RegOffset), (u32)(Data)) |
This macro writes the value into the given register.
BaseAddress | is the Xilinx base address of the CFRAME core. |
RegOffset | is the register offset of the register. |
Data | is the 32-bit value to write to the register. |
Referenced by XCframe_WriteReg().
XCframe_Config* XCframe_LookupConfig | ( | u16 | DeviceId | ) |
XCframe_LookupConfig returns a reference to an XCframe_Config structure based on the unique device id, DeviceId.
The return value will refer to an entry in the device configuration table defined in the xcframe_g.c file.
DeviceId | is the unique device ID of the device for the lookup operation. |