ATLAS Offline Software
Loading...
Searching...
No Matches
SubBlockStatus.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "SubBlockStatus.h"
6
7#include "WordDecoder.h"
8
9using namespace LVL1BS;
10
11namespace {
12 const WordDecoder 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
31uint8_t SubBlockStatus::timeout() const {
32 return ::subBlockStatusDecoder.get<uint8_t>(m_status, 0); }
33
34uint8_t SubBlockStatus::link() const {
35 return ::subBlockStatusDecoder.get<uint8_t>(m_status, 1);
36}
37uint8_t SubBlockStatus::specific() const {
38 return ::subBlockStatusDecoder.get<uint8_t>(m_status,2);
39}
40uint8_t SubBlockStatus::fifo() const {
41 return ::subBlockStatusDecoder.get<uint8_t>(m_status, 3);
42}
43uint8_t SubBlockStatus::bcn() const {
44 return ::subBlockStatusDecoder.get<uint8_t>(m_status, 4);
45}
46uint8_t SubBlockStatus::protocol() const {
47 return ::subBlockStatusDecoder.get<uint8_t>(m_status, 5);
48}
49uint8_t SubBlockStatus::parity() const {
50 return ::subBlockStatusDecoder.get<uint8_t>(m_status, 6);
51}
53 return ::subBlockStatusDecoder.get<uint8_t>(m_status, 7);
54}
uint8_t bcLowBits() const
SubBlockStatus(uint32_t status=0x0)
Constructor - default just sets word ID and number of header words.