This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CFG configuration register bit masks | |
CFG_PROF_MASK = 7 << CFG_PROFILE | |
@kernel | |
def change_profile(self, profile): | |
"""Change the DDS profile for all channels in the configuration register. | |
:param profile: profile number between 0 and 7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from numpy import int32, int64 | |
from artiq.language.core import kernel, delay, portable | |
from artiq.language.units import us, ns, ms | |
from artiq.coredevice import spi2 as spi | |
from artiq.coredevice import urukul | |
urukul_sta_pll_lock = urukul.urukul_sta_pll_lock | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from confluent_kafka import avro | |
from confluent_kafka.avro import AvroProducer | |
# load schema to the registry from one producer | |
value_schema = avro.load('test_schema.avsc') | |
# This producer creates the schema and registers it | |
p1 = AvroProducer({ | |
'bootstrap.servers': 'localhost:9092', | |
'schema.registry.url': 'http://localhost:8081' |
NewerOlder