sca-ip-drivers
xpresent.h
1 
7 #ifndef XPRESENT_H
8 #define XPRESENT_H
9 
10 #include "xil_io.h"
11 #include "xstatus.h"
12 #include "xpresent_hw.h"
13 
14 #define XPRESENT_ENCRYPT XPRESENT_STATUS_NULL_MASK
15 #define XPRESENT_DECRYPT XPRESENT_STATUS_INV_MASK
16 
17 typedef struct
18 {
19  u16 DeviceId;
20  u32 BaseAddr;
22 
23 typedef struct
24 {
25  XPRESENT_Config Config;
26  u32 IsReady;
27  u32 IsStarted;
28 } XPRESENT;
29 
30 XPRESENT_Config XPRESENT_ConfigTable[];
31 
32 int XPRESENT_CfgInitialize(XPRESENT *InstancePtr, XPRESENT_Config *ConfigPtr);
33 
38 void XPRESENT_Reset(const XPRESENT *InstancePtr, u32 Mode);
39 
44 void XPRESENT_SetInput(const XPRESENT *InstancePtr, const u32 Data[]);
45 
50 void XPRESENT_SetKey(const XPRESENT *InstancePtr, const u32 Data[]);
51 
56 void XPRESENT_GetInput(const XPRESENT *InstancePtr, u32 Data[]);
57 
62 void XPRESENT_GetKey(const XPRESENT *InstancePtr, u32 Data[]);
63 
68 void XPRESENT_GetOutput(const XPRESENT *InstancePtr, u32 Data[]);
69 
73 void XPRESENT_Run(const XPRESENT *InstancePtr);
74 
75 #endif //XPRESENT_H
Definition: xpresent.h:23
Definition: xpresent.h:17