Skip to content

Latest commit

 

History

History
17 lines (17 loc) · 445 Bytes

README.md

File metadata and controls

17 lines (17 loc) · 445 Bytes

bit(位)和byte(字节)关系

  • 1 byte = 8 bit
  • int --> 4 byte --> 32 bit

32-bit Decode

struct buff0Data
{ 
    int channel :4; 
    int SlotID :4; 
    int CrateID :4;
    int HeaderLength :5;
    int EventLength :14;
    int Pileup: 1;
};