/* --------------------------------------------------------------------------- * protocolfunctions.h (c) 2008 Micro-key bv * --------------------------------------------------------------------------- * Micro-key bv * Industrieweg 28, 9804 TG Noordhorn * Postbus 92, 9800 AB Zuidhorn * The Netherlands * Tel: +31 594 503020 * Fax: +31 594 505825 * Email: support@microkey.nl * Web: www.microkey.nl * --------------------------------------------------------------------------- * Description: * --------------------------------------------------------------------------- * Version(s): 0.1, Dez 11, 2008, MMi * Creation. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * System include files. * --------------------------------------------------------------------------- */ #include "bus.h" #include "BusProtocol.h" /* --------------------------------------------------------------------------- * Application include files. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * Constant and macro definitions. * --------------------------------------------------------------------------- */ #define MASTERDEVICENUMBER 1 #define THISDEVICENUMBER 2 #define REMOTEDEVICENUMBER 1 #define MAXDEVICENUMBER 2 /* --------------------------------------------------------------------------- * Type definitions. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * Variable declarations. * --------------------------------------------------------------------------- */ int bushandler; /* Bus system identifier */ int IOCTL_interface; BOOLEAN BUS_ATTACHED; /* --------------------------------------------------------------------------- * Function declarations. * --------------------------------------------------------------------------- */ void protocolInit (UINT32 DEV_ID, UINT32 MAX_ID); void returnAttachedFunctions (UINT8 senderId, UINT8 targetId, UINT8 requestNr, UINT8 functionId, UINT8 nrOfParams, UINT32 *params); void availableBusID (UINT8 senderId, UINT8 targetId, UINT8 requestNr, UINT8 functionId, UINT8 nrOfParams, UINT32 *params); void generalResultFunction (UINT8 requestNr, UINT8 nrOfResults, UINT32 *results); void IO_CPU_Init (void); void appExit (int err); void sigintHandler (int s);