devices/pdq2: add RPC getter functions

This commit is contained in:
Sebastien Bourdeauducq 2015-10-28 09:46:17 +08:00
parent 179416dac7
commit d708002fb9

View File

@ -139,6 +139,12 @@ class Pdq2:
self.num_channels = self.num_dacs * self.num_boards
self.channels = [Channel() for i in range(self.num_channels)]
def get_num_boards(self):
return self.num_boards
def get_num_channels(self):
return self.num_channels
def close(self):
self.dev.close()
del self.dev