DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
FE_ASIC_reg_mapping.hh
Go to the documentation of this file.
1#ifndef __FE_ASIC_REG_MAPPING_HH__
2#define __FE_ASIC_REG_MAPPING_HH__
3
4#include <stdint.h>
5#include <bitset>
6
8 public:
10 void set_ch(uint8_t chip=0, uint8_t chn=0, uint8_t sts=0, uint8_t snc=0,
11 uint8_t sg=0, uint8_t st=0, uint8_t smn=0, uint8_t sdf=0);
12 void set_global(uint8_t chip=0, uint8_t slk0 = 0, uint8_t stb1 = 0,
13 uint8_t stb = 0, uint8_t s16=0, uint8_t slk1=0,
14 uint8_t sdc = 0, uint8_t swdac=0, uint8_t dac=0);
15 void set_chip(uint8_t chip=0,
16 uint8_t sts=0, uint8_t snc=0, uint8_t sg=0, uint8_t st=0,
17 uint8_t smn=0, uint8_t sdf=0, uint8_t slk0=0,
18 uint8_t stb1=0, uint8_t stb=0, uint8_t s16=0,
19 uint8_t slk1=0, uint8_t sdc=0, uint8_t swdac=0, uint8_t dac=0);
20
21 void set_board(uint8_t sts=0, uint8_t snc=0, uint8_t sg=0, uint8_t st=0,
22 uint8_t smn=0, uint8_t sdf=0, uint8_t slk0=0,
23 uint8_t stb1=0, uint8_t stb=0, uint8_t s16=0,
24 uint8_t slk1=0, uint8_t sdc=0, uint8_t swdac=0, uint8_t dac=0);
25 std::bitset<1152> get_bits() const;
26 void set_collection_baseline(uint8_t snc);
27 void print() const;
28
29 private:
30 std::bitset<1152> BITS;
31 static const uint8_t channel_wire_plane[8][16];
32};
33#endif
void set_chip(uint8_t chip=0, uint8_t sts=0, uint8_t snc=0, uint8_t sg=0, uint8_t st=0, uint8_t smn=0, uint8_t sdf=0, uint8_t slk0=0, uint8_t stb1=0, uint8_t stb=0, uint8_t s16=0, uint8_t slk1=0, uint8_t sdc=0, uint8_t swdac=0, uint8_t dac=0)
std::bitset< 1152 > BITS
std::bitset< 1152 > get_bits() const
void set_collection_baseline(uint8_t snc)
static const uint8_t channel_wire_plane[8][16]
void set_global(uint8_t chip=0, uint8_t slk0=0, uint8_t stb1=0, uint8_t stb=0, uint8_t s16=0, uint8_t slk1=0, uint8_t sdc=0, uint8_t swdac=0, uint8_t dac=0)
void set_board(uint8_t sts=0, uint8_t snc=0, uint8_t sg=0, uint8_t st=0, uint8_t smn=0, uint8_t sdf=0, uint8_t slk0=0, uint8_t stb1=0, uint8_t stb=0, uint8_t s16=0, uint8_t slk1=0, uint8_t sdc=0, uint8_t swdac=0, uint8_t dac=0)
void set_ch(uint8_t chip=0, uint8_t chn=0, uint8_t sts=0, uint8_t snc=0, uint8_t sg=0, uint8_t st=0, uint8_t smn=0, uint8_t sdf=0)