Safe Haskell | None |
---|---|
Language | Haskell2010 |
import qualified Kcd.Parser as KCD main = do kcd <- KCD.parseKcdFile "example.kcd" print kcd
- parseKcdFile :: String -> IO NetworkDefinition
- parseNetworkDefinition :: MonadThrow m => ConduitM Event o m (Maybe NetworkDefinition)
- data BasicLabelTypeValue
- data Bus = Bus {
- _busMessages :: [Message]
- _busName :: Text
- _busBaudrate :: Int
- data Consumer = Consumer {
- _consumerNodeRef :: [NodeRef]
- data Document = Document {}
- data Endianess
- data Label = Label {}
- data LabelGroup = LabelGroup {}
- data LabelSet = LabelSet {
- _labelSetLabel :: [Label]
- _labelSetLabelGroup :: [LabelGroup]
- data Message = Message {}
- newtype MessageId = MessageId {
- _unMessageId :: Int
- data MessageLength
- = Auto
- | LengthValue Int
- data Multiplex = Multiplex {}
- data MuxGroup = MuxGroup {
- _muxGroupSignals :: [Signal]
- _muxGroupCount :: Int
- data NetworkDefinition = NetworkDefinition {}
- data Node = Node {}
- data NodeRef = NodeRef {
- _nodeRefId :: Text
- newtype Notes = Notes Text
- data Producer = Producer {
- _producerNodeRef :: [NodeRef]
- data Signal = Signal {}
- data Value = Value {}
- data ValueType
- data Var = Var {}
Documentation
parseKcdFile :: String -> IO NetworkDefinition Source #
parseNetworkDefinition :: MonadThrow m => ConduitM Event o m (Maybe NetworkDefinition) Source #
data BasicLabelTypeValue Source #
network transport system that transfers the data between several nodes.
Bus | |
|
Network node that is a user/receiver of the assigned signal.
Describes the scope of application e.g. the target vehicle or controlled device.
Document | |
|
Descriptive name for a single value e.g. to describe an enumeration, mark special,invalid or error values.
Label | |
|
data LabelGroup Source #
LabelGroup | |
|
LabelSet | |
|
Message | |
|
data MessageLength Source #
A looping counter to make a group of signals (MuxGroup) alternately active at a time.
Multiplex | |
|
A group of signals that is just valid when the count value of the group matches with the looping | counter (Multiplex).
MuxGroup | |
|
data NetworkDefinition Source #
Definition of one or more CAN bus networks in one file.
An endpoint connected to the network (e.g. an electronic control unit) that is able to | send messages to or receive messages from other endpoints.
An endpoint connected to the network that is able to send messages to or receive messages from other endpoints.
NodeRef | |
|
Describes the purpose of the signalvariable andor comments on its usage.
Origin network node that is the sender of the assigned message.
A discrete part of information contained in the payload of a message.
Signal | |
|
Details of how the raw value of the signal/variable shall be interpreted.
Value | |
|