retroclash-lib-0.1.2.2: Code shared across the code samples in the book "Retrocomputing with Clash"
Safe HaskellSafe-Inferred
LanguageHaskell2010

RetroClash.I2C

Documentation

i2cMaster :: (HiddenClockResetEnable dom, 1 <= i2cRate, KnownNat (DomainPeriod dom), 1 <= DomainPeriod dom) => SNat i2cRate -> ("DATA" ::: Signal dom (Maybe Message)) -> ("SCL_IN" ::: BiSignalIn 'PullUp dom (BitSize Bit)) -> ("SDA_IN" ::: BiSignalIn 'PullUp dom (BitSize Bit)) -> ("SCL_OUT" ::: BiSignalOut 'PullUp dom (BitSize Bit), "SDA_OUT" ::: BiSignalOut 'PullUp dom (BitSize Bit), "READY" ::: Signal dom Bool) Source #