work/schard.h File Reference

#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <termios.h>
#include <fcntl.h>
#include "sccommon.h"

Include dependency graph for schard.h:


Enumerations

enum  SCs_returns {
  no_new_data = -1, com_error = -2, not_init = -3, no_new_data = -1,
  com_error = -2, not_init = -3
}

Functions

int SC_hard_init ()
int SCs_init (const char *path, int mach_code)
int SCs_data_cycle (int mach_code)
void SCs_off (int mach_code)

Enumeration Type Documentation

enum SCs_returns

Return values of function SCslave

Enumerator:
no_new_data  no new data in module
com_error  communication error
not_init  module not initialized
no_new_data  no new data in module
com_error  communication error
not_init  module not initialized


Function Documentation

int SC_hard_init (  ) 

Initializes global hardware mechanisms.

Returns:
0 if successful

int SCs_data_cycle ( int  mach_code  ) 

Gets data from a SCslave module.

Parameters:
mach_code modules id
Returns:
if the value is below 0 then its one from SCs_returns, else its the data from the SCslave module

int SCs_init ( const char *  path,
int  mach_code 
)

Initializes a SCslave module.

Parameters:
path the path o the serial port
mach_code modules id
Returns:
0 if successful else -1

void SCs_off ( int  mach_code  ) 

Releases the SCslave module.

Parameters:
mach_code modules id


Generated on Wed Jan 23 16:21:26 2008 for Selection Check Librarys by  doxygen 1.5.1