driver: Expose the upper and lower limit settings for Sinc3WithFineODR Filter Cfg

This commit is contained in:
linuswck 2024-10-10 15:23:57 +08:00
parent e8d3858fc9
commit 4f19d2c2be
1 changed files with 3 additions and 1 deletions

View File

@ -140,8 +140,10 @@ class FilterConfig:
return "Sinc3" return "Sinc3"
class Sinc3WithFineODR(): class Sinc3WithFineODR():
upper_limit = 31250
lower_limit = 1.907465
def __init__(self, rate): def __init__(self, rate):
assert rate >= 1.907465 and rate <= 31250 assert rate >= self.lower_limit and rate <= self.upper_limit
self.rate = float(rate) self.rate = float(rate)
def _odr_type(self): def _odr_type(self):