/****************************************************/
/*                                                  */
/* This is an example of use of the rockbits module */
/*                                                  */
/* Some parts are missing, so do not compile it!    */
/*                                                  */
/****************************************************/

#include <rockbits.h>

/* read data from a file , modify some field and write back */

int main()
{

 for (i=0; i<100; i++)
   {
     int atrigger;
     ROCKB_TRIGGER_bits bits;

     fscanf(infile,"%x\n",&atrigger);

     rockb_nr2trigger(atrigger,bits);
     bits.hatl = 1;
     bits.busy = 1;
     bits.synchf = 1;
     atrigger = rockb_trigger2nr(bits);

     fprintf(outfile,"%x\n",atrigger);

   }

}