#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) |
enum SCs_returns |
int SC_hard_init | ( | ) |
Initializes global hardware mechanisms.
int SCs_data_cycle | ( | int | mach_code | ) |
Gets data from a SCslave module.
mach_code | modules id |
int SCs_init | ( | const char * | path, | |
int | mach_code | |||
) |
Initializes a SCslave module.
path | the path o the serial port | |
mach_code | modules id |
void SCs_off | ( | int | mach_code | ) |
Releases the SCslave module.
mach_code | modules id |