Class: KATCP::QdrCtrl

Inherits:
Bram
  • Object
show all
Defined in:
lib/katcp/client/roach.rb

Overview

Class used to access QDR controller cores

Instance Method Summary collapse

Methods inherited from Bram

#[], #[]=, #initialize

Constructor Details

This class inherits a constructor from KATCP::Bram

Instance Method Details

#cal_fail?Boolean

Returns state of cal_fail bit

Returns:

  • (Boolean)


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 (

Returns:

  • (Boolean)


161
162
163
164
# File 'lib/katcp/client/roach.rb', line 161

def phy_rdy?
  # Bit 0
  (self[1] & (1<<0)) != 0
end

#resetObject

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