- First working version of the TRICS collision protection module
This commit is contained in:
26
interface.h
26
interface.h
@@ -1,5 +1,5 @@
|
||||
|
||||
#line 345 "interface.w"
|
||||
#line 346 "interface.w"
|
||||
|
||||
/*---------------------------------------------------------------------------
|
||||
I N T E R F A C E S
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
/* ----------------------- The drivable interface -----------------------*/
|
||||
|
||||
#line 116 "interface.w"
|
||||
#line 117 "interface.w"
|
||||
|
||||
|
||||
typedef struct {
|
||||
@@ -44,14 +44,14 @@
|
||||
pIDrivable GetDrivableInterface(void *pObject);
|
||||
|
||||
|
||||
#line 370 "interface.w"
|
||||
#line 371 "interface.w"
|
||||
|
||||
|
||||
pIDrivable CreateDrivableInterface(void);
|
||||
|
||||
/* ------------------------ The countable interface ---------------------*/
|
||||
|
||||
#line 176 "interface.w"
|
||||
#line 177 "interface.w"
|
||||
|
||||
typedef struct {
|
||||
int ID;
|
||||
@@ -68,23 +68,23 @@
|
||||
pICountable GetCountableInterface(void *pObject);
|
||||
|
||||
|
||||
#line 375 "interface.w"
|
||||
#line 376 "interface.w"
|
||||
|
||||
|
||||
pICountable CreateCountableInterface(void);
|
||||
|
||||
/* ------------------------- The CallBack Interface --------------------*/
|
||||
|
||||
#line 229 "interface.w"
|
||||
#line 230 "interface.w"
|
||||
|
||||
typedef void (*KillFuncIT)(void *pData);
|
||||
typedef int (*SICSCallBack)(int iEvent, void *pEventData,
|
||||
void *pUserData);
|
||||
|
||||
#line 380 "interface.w"
|
||||
#line 381 "interface.w"
|
||||
|
||||
|
||||
#line 251 "interface.w"
|
||||
#line 252 "interface.w"
|
||||
|
||||
typedef struct __ICallBack *pICallBack;
|
||||
|
||||
@@ -99,11 +99,11 @@
|
||||
int RemoveCallback(pICallBack pInterface, long iID);
|
||||
int RemoveCallback2(pICallBack pInterface, void *pUserData);
|
||||
|
||||
#line 381 "interface.w"
|
||||
#line 382 "interface.w"
|
||||
|
||||
/*---------------------- The Environment Interface --------------------*/
|
||||
|
||||
#line 309 "interface.w"
|
||||
#line 310 "interface.w"
|
||||
|
||||
typedef enum { EVIdle, EVDrive, EVMonitor, EVError } EVMode;
|
||||
typedef struct {
|
||||
@@ -113,13 +113,13 @@
|
||||
int (*HandleError)(void *self);
|
||||
} EVInterface, *pEVInterface;
|
||||
|
||||
#line 383 "interface.w"
|
||||
#line 384 "interface.w"
|
||||
|
||||
|
||||
#line 335 "interface.w"
|
||||
#line 336 "interface.w"
|
||||
|
||||
pEVInterface CreateEVInterface(void);
|
||||
|
||||
#line 384 "interface.w"
|
||||
#line 385 "interface.w"
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user