FACT++  1.0
void READ_STRUCT::swapHeader ( )

Definition at line 472 of file EventBuilder.cc.

References NDAC, and NTemp.

Referenced by mainloop().

473 {
474  S[1] = ntohs(S[1]); // package_length (bytes not swapped!)
475  S[2] = ntohs(S[2]); // version_no
476  S[3] = ntohs(S[3]); // PLLLCK
477  S[4] = ntohs(S[4]); // trigger_crc
478  S[5] = ntohs(S[5]); // trigger_type
479 
480  I[3] = ntohl(I[3]); // trigger_id
481  I[4] = ntohl(I[4]); // fad_evt_counter
482  I[5] = ntohl(I[5]); // REFCLK_frequency
483 
484  S[12] = ntohs(S[12]); // board id
485  S[13] = ntohs(S[13]); // adc_clock_phase_shift
486  S[14] = ntohs(S[14]); // number_of_triggers_to_generate
487  S[15] = ntohs(S[15]); // trigger_generator_prescaler
488 
489  I[10] = ntohl(I[10]); // runnumber;
490  I[11] = ntohl(I[11]); // time;
491 
492  // Use back inserter??
493  for (int s=24; s<24+NTemp+NDAC; s++)
494  S[s] = ntohs(S[s]); // drs_temperature / dac
495 }
uint16_t S[MAX_LEN/2]
uint32_t I[MAX_LEN/4]
#define NTemp
Definition: FAD.h:10
#define NDAC
Definition: FAD.h:11

+ Here is the caller graph for this function: