コード例 #1
0
    def setFilterPosition(self, position):
        cfwp = udrv.CFWParams()
        cfwp.cfwModel = udrv.CFWSEL_CFW8
        cfwp.cfwCommand = udrv.CFWC_GOTO
        cfwp.cfwParam1 = position

        cfwr = udrv.CFWResults()

        return self._cmd(udrv.CC_CFW, cfwp, cfwr)
コード例 #2
0
    def getFilterStatus(self):
        cfwp = udrv.CFWParams()
        cfwp.cfwModel = udrv.CFWSEL_CFW8
        cfwp.cfwCommand = udrv.CFWC_QUERY

        cfwr = udrv.CFWResults()

        self._cmd(udrv.CC_CFW, cfwp, cfwr)

        return cfwr.cfwStatus