Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

main.c File Reference

sitool main program and I/O event handler. More...

#include "isisclient.h"
#include "client.h"
#include <readline/readline.h>
#include <readline/history.h>

Functions

int main (int argc, char *argv[])
void HandleInt (int signalValue)
 Service Ctrl+C Interrupts (SIGINT signals).

void abortall (void)
 Abort all pending moves.


Variables

isisclient_t client
si_mechanism_t scl
si_drivepars_t dpars


Detailed Description

sitool main program and I/O event handler.


Function Documentation

int main int  argc,
char *  argv[]
 

void HandleInt int  signalValue  ) 
 

Service Ctrl+C Interrupts (SIGINT signals).

SIGINT signal trap for trapping Ctrl+C interrupts. Calls abortall() to immediately abort all moves in progress.

See also:
abortall()

void abortall void   ) 
 

Abort all pending moves.

Uses the low-level SCLAbort() function to send the motion abort (SK = Stop/Kill) command to all microstep drives. Sending SK to an idle microstep drive has no consequences, so this shotgun approach is the simplest and safest.

Invoked by the Ctrl+C interrupt handler (HandleInt()), and called at the end of the main program when the application is quitting to make sure we don't accidentally quit and leave things running.

See also:
HandleInt() and SCLAbort()


Variable Documentation

isisclient_t client
 

si_mechanism_t scl
 

si_drivepars_t dpars
 


Generated on Thu Jul 22 20:02:06 2004 for SiTool Si Microstepping Motor Controller Agent by doxygen 1.3.7