ivory-hw-0.1.0.6: Ivory hardware model (STM32F4).

Safe HaskellNone
LanguageHaskell2010

Ivory.HW.BitData

Synopsis

Documentation

data BitDataReg d Source #

A register associated with a bit data type.

Constructors

BitDataReg 

mkBitDataReg :: IvoryIOReg (BitDataRep d) => Integer -> BitDataReg d Source #

Create a bit data register given its address.

mkBitDataRegNamed :: IvoryIOReg (BitDataRep d) => Integer -> String -> BitDataReg d Source #

Create a bit data register given its address and name.

setReg :: (BitData d, IvoryIOReg (BitDataRep d)) => BitDataReg d -> BitDataM d a -> Ivory eff a Source #

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 a Source #

Modify a register by a set of bit modification actions.