data-svd-0.1.0.0: SVD (System view description) file handling
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.SVD.Pretty

Synopsis

Helpers

ppList :: (a -> Doc AnsiStyle) -> [a] -> Doc AnsiStyle Source #

Shorthand

Pretty printers

Interrupts

Terse output

MemMap

Who knows

printSetFields :: (Show a, Eq a, Num a) => [(a, Field)] -> String Source #

Print currently set (non-zero) fields

printSetField :: (Show a, Eq a, Num a) => (a, Field) -> String Source #

showField :: Field -> String Source #

Show Field with its range, e.g BRR[15:0] (16 bit wide)

fieldRange :: Field -> String Source #

Datasheeeet like

hexFieldVal :: (Integral x, Show x) => Field -> x -> String Source #

Format field value in hex, padded according to fieldBitWidth