Download 4 - Onlinecomponents.com
Transcript
Architecture and Structure of a Device Driver 5.3.10 Utilities Additional utilities co Table 5-1 m In addition to functions that are a direct mapping of the DDI, some extra utilities are also provided. They are used to read the diagnostic registers, manage the watchdog functions, and set and reset the notification functions. The actual task is implied by the name of the function. See the "vmeutil.c" file for a more detailed description. The following table contains some utilities: Task GetIBSDiagnostic Evaluates the operating state of the INTERBUS master GetIBSDiagnosticEx Evaluates the operating state of the INTERBUS master (like GetIBSDiagnostic, additional structure element addinfo) 5-23 GetSlaveDiagnostic Evaluates the operating state of the slave 5-24 GetSysFailRegister Reads the contents of the SysFail register 5-25 EnableWatchDog Switches a watchdog on 5-26 TriggerWatchDog Triggers the watchdog 5-26 GetWatchDogState Reads the status of a watchdog 5-27 ClearWatchDog Resets the status of a watchdog 5-27 SetWatchDogTimeout Sets the timeout value and switches the watchdog on 5-28 GetWatchDogTimeout Reads the timeout value 5-28 Page 5-22 on l in ec om po ne nt s. Function 6189A 5-21