AFI Electronics
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • FirstPage
  • ADC
  • TDC
  • Logical
  • Interfaces
  • Systems
  • Documentation
  • Contacts
  • PrivatePage
  • RecentChanges
PCI Digitizer, VME TDC, PCI VME Master, Data Acquisition System
  • attachment:adcm_df.h of AdcmDataFormat

Attachment 'adcm_df.h'

Download

   1 #ifndef ADCM_DF_H
   2 #define ADCM_DF_H 1
   3 
   4 // ISO C99
   5 #include <inttypes.h>
   6 #include <sys/types.h>
   7 
   8 #include "adcm16.h"
   9 
  10 #define STOR_ID_CMAP  0x504D    /* 'MP' */
  11 #define STOR_ID_EVNT  0x5645    /* 'EV' */
  12 #define STOR_ID_CNTR  0x5443    /* 'CT' */
  13 
  14 struct stor_packet_hdr_t {
  15   u_int16_t id;                 // data block ID
  16   u_int16_t size;               // block size, bytes
  17 } __attribute__ ((packed));
  18 
  19 struct stor_ev_hdr_t {
  20   u_int8_t np;                  // number of pulses following
  21   u_int8_t reserved1;
  22   u_int16_t reserved2;
  23   u_int32_t ts;                 // timestamp, 10 ns step
  24 } __attribute__ ((packed));
  25 
  26 struct stor_puls_t {
  27   u_int8_t ch;
  28   u_int8_t flags;
  29   float a;
  30   float t;
  31   float w;
  32 } __attribute__ ((packed));
  33 
  34 struct adcm_cmap_t {
  35   u_int32_t n;
  36   u_int8_t map[ADC_NCH];
  37 };
  38 
  39 struct adcm_counters_t {
  40   u_int32_t n;
  41   double time;
  42   u_int32_t rawhits[ADC_NCH];
  43 };
  44 
  45 #endif /* ADCM_DF_H */
  46 

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2008-12-17 20:53:50, 3.1 KB) [[attachment:adcm-config.xml]]
  • [get | view] (2008-12-17 20:57:18, 1.4 KB) [[attachment:adcm_16.h]]
  • [get | view] (2008-12-17 20:58:20, 0.9 KB) [[attachment:adcm_chbuf_impl.h]]
  • [get | view] (2008-12-17 21:02:18, 0.9 KB) [[attachment:adcm_df.h]]
  • [get | view] (2008-12-17 20:58:35, 0.5 KB) [[attachment:adcm_ev_impl.h]]
  • [get | view] (2008-12-17 21:02:32, 4.2 KB) [[attachment:df_decode.c]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.