#!/usr/bin/env python3
#-----------------------------------------------------------------------------
# Title      : Example Root
#-----------------------------------------------------------------------------
# This file is part of the rogue_example software. It is subject to
# the license terms in the LICENSE.txt file found in the top-level directory
# of this distribution and at:
#    https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html.
# No part of the rogue_example software, including this file, may be
# copied, modified, propagated, or distributed except according to the terms
# contained in the LICENSE.txt file.
#-----------------------------------------------------------------------------
import pyrogue
import pyrogue.interfaces.simulation
import pyrogue.utilities.fileio
import pyrogue.utilities.prbs
import pyrogue.examples
import pyrogue.protocols
import rogue.interfaces.stream
import rogue.interfaces.memory
import rogue
import math
import numpy as np
import matplotlib.pyplot as plt

class ExampleDevice(pyrogue.Device):

    def __init__(self,**kwargs):
        pyrogue.Device.__init__(self, description="Example Device",**kwargs)

        self.add(pyrogue.RemoteVariable(
            name = f'TestOne',
            offset = 0x10000000,
            bitOffset = 0,
            bitSize = 32,
            hidden = False,
            base = pyrogue.UInt))

        #for i in range(5):
        #    self.add(pyrogue.RemoteVariable(
        #        name = f'ADC[{i}]',
        #        offset = 0,
        #        bitOffset = i * 8,
        #        base = pyrogue.UInt,
        #        valueBits = 8,
        #        valueStride = 128,
        #        numValues = 4))


