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

#include <rockframes.h>

/* read data from file and write out all the empty frames */

int main()
{

 for (i=0; i<100; i++)
   {
     unsigned int afifo;

     fscanf(afile,"%x\n",&afifo);

     if (rockf_whatis(afifo)==ROCKF_IS_EMPTY)
       {
	 ROCKF_EMPTY_bits bits;

	 rockf_nr2bits(afifo,bits);
	 printf("sy: %x last: %x ca: %x trigger %x\n",bits.sy,bits.l,bits.ca,bits.trigger);
       }
   }

}