/*************************************** * Test tvm742.c * * * ***************************************/ #include "std.h" char *ch_name[] = {"SS01", "SS02", "SS03", "SS04", "SS05", "SS06", "SS07", "SS08", "SS09", "SS10", "SS11", "SS12", "NN01", "NN02", "NN03", "NN04", "NN05", "NN05", "NN07", "NN08", "NN09", "NN10", "NN11", "NN12"}; main(argc,argv) int argc; char **argv; { char *command; int i, ch; int base, tipo, level; unsigned char out_bits[8], in_bits[8]; int cpu_nr, tcp_ip_nr; char *hv_config[3]; /* if (get_config( &tcp_ip_nr, &cpu_nr, hv_config) != 0){ printf (" error in get_config \n"); exit (0); } */ cpu_nr = 1; TVM_Init(1); /* PIT's inizialization */ In64(1, in_bits); printf(" status ( bit high = no input -> \"Fault\" ): "); printf(" %2x%2x%2x%2x%2x%2x%2x%2x\n", in_bits[0], in_bits[1], in_bits[2], in_bits[3], in_bits[4], in_bits[5], in_bits[6], in_bits[7]); TVM_End(1); }