Safe Haskell | None |
---|
- newtype BitDataReg d = BitDataReg (Reg (BitDataRep d))
- mkBitDataReg :: IvoryIOReg (BitDataRep d) => Integer -> BitDataReg d
- getReg :: (BitData d, IvoryIOReg (BitDataRep d)) => BitDataReg d -> Ivory eff d
- setReg :: (BitData d, IvoryIOReg (BitDataRep d)) => BitDataReg d -> BitDataM d a -> Ivory eff a
- modifyReg :: (BitData d, IvoryIOReg (BitDataRep d)) => BitDataReg d -> BitDataM d a -> Ivory eff a
Documentation
newtype BitDataReg d Source
A register associated with a bit data type.
BitDataReg (Reg (BitDataRep d)) |
mkBitDataReg :: IvoryIOReg (BitDataRep d) => Integer -> BitDataReg dSource
Create a bit data register given its address.
getReg :: (BitData d, IvoryIOReg (BitDataRep d)) => BitDataReg d -> Ivory eff dSource
setReg :: (BitData d, IvoryIOReg (BitDataRep d)) => BitDataReg d -> BitDataM d a -> Ivory eff aSource
Set a register to a value taken from a block of bit modifications. The previous value is discarded.
modifyReg :: (BitData d, IvoryIOReg (BitDataRep d)) => BitDataReg d -> BitDataM d a -> Ivory eff aSource
Modify a register by a set of bit modification actions.