Class: KATCP::QdrCtrl
Overview
Class used to access QDR controller cores
Instance Method Summary collapse
-
#cal_fail? ⇒ Boolean
Returns state of cal_fail bit.
-
#phy_rdy? ⇒ Boolean
Returns state of phy_rdy bit (.
-
#reset ⇒ Object
Resets the QDR controller (re-calibrates).
Methods inherited from Bram
Constructor Details
This class inherits a constructor from KATCP::Bram
Instance Method Details
#cal_fail? ⇒ Boolean
Returns state of cal_fail bit
155 156 157 158 |
# File 'lib/katcp/client/roach.rb', line 155 def cal_fail? # Bit 8 (self[1] & (1<<8)) != 0 end |
#phy_rdy? ⇒ Boolean
Returns state of phy_rdy bit (
161 162 163 164 |
# File 'lib/katcp/client/roach.rb', line 161 def phy_rdy? # Bit 0 (self[1] & (1<<0)) != 0 end |
#reset ⇒ Object
Resets the QDR controller (re-calibrates)
148 149 150 151 152 |
# File 'lib/katcp/client/roach.rb', line 148 def reset self[0] = 0 self[1] = 0xffff_ffff self[0] = 0 end |