ATLAS Offline Software
Loading...
Searching...
No Matches
ZdcSubBlockStatus.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
6
8
9//using namespace LVL1BS;
10
11namespace {
12 const ZdcWordDecoder subBlockStatusDecoder(
13 {
14 BitField("Timeout", 7, 1),
15 BitField("Link", 6, 1),
16 BitField("Specific", 4, 1),
17 BitField("Fifo", 3, 1),
18 BitField("BCN", 2, 1),
19 BitField("Protocol", 1, 1),
20 BitField("Parity", 0, 1),
21 BitField("BCLowBits", 22, 6)
22 });
23}
24
25
26
28 m_status(status){
29}
30
32 return ::subBlockStatusDecoder.get<uint8_t>(m_status, 0); }
33
34uint8_t ZdcSubBlockStatus::link() const {
35 return ::subBlockStatusDecoder.get<uint8_t>(m_status, 1);
36}
38 return ::subBlockStatusDecoder.get<uint8_t>(m_status,2);
39}
40uint8_t ZdcSubBlockStatus::fifo() const {
41 return ::subBlockStatusDecoder.get<uint8_t>(m_status, 3);
42}
43uint8_t ZdcSubBlockStatus::bcn() const {
44 return ::subBlockStatusDecoder.get<uint8_t>(m_status, 4);
45}
47 return ::subBlockStatusDecoder.get<uint8_t>(m_status, 5);
48}
50 return ::subBlockStatusDecoder.get<uint8_t>(m_status, 6);
51}
53 return ::subBlockStatusDecoder.get<uint8_t>(m_status, 7);
54}
uint8_t protocol() const
uint8_t parity() const
uint8_t timeout() const
uint8_t bcLowBits() const
ZdcSubBlockStatus(uint32_t status=0x0)
Constructor - default just sets word ID and number of header words.
uint8_t specific() const