| Copyright | Copyright (C) 2015-2018 Swift Navigation Inc. |
|---|---|
| License | LGPL-3 |
| Maintainer | Swift Navigation <dev@swiftnav.com> |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
SwiftNav.SBP.Logging
Description
Logging and debugging messages from the device.
Synopsis
- data MsgLog = MsgLog {
- _msgLog_level :: !Word8
- _msgLog_text :: !Text
- msgLog :: Word16
- data MsgFwd = MsgFwd {}
- msgLog_level :: Lens' MsgLog Word8
- msgLog_text :: Lens' MsgLog Text
- msgFwd :: Word16
- data MsgTweet = MsgTweet {
- _msgTweet_tweet :: !Text
- msgFwd_fwd_payload :: Lens' MsgFwd Text
- msgFwd_protocol :: Lens' MsgFwd Word8
- msgFwd_source :: Lens' MsgFwd Word8
- msgTweet :: Word16
- data MsgPrintDep = MsgPrintDep {}
- msgTweet_tweet :: Iso' MsgTweet Text
- msgPrintDep :: Word16
- msgPrintDep_text :: Iso' MsgPrintDep Text
Documentation
SBP class for message MSG_LOG (0x0401).
This message contains a human-readable payload string from the device containing errors, warnings and informational messages at ERROR, WARNING, DEBUG, INFO logging levels.
Constructors
| MsgLog | |
Fields
| |
SBP class for message MSG_FWD (0x0402).
This message provides the ability to forward messages over SBP. This may take the form of wrapping up SBP messages received by Piksi for logging purposes or wrapping another protocol with SBP. The source identifier indicates from what interface a forwarded stream derived. The protocol identifier identifies what the expected protocol the forwarded msg contains. Protocol 0 represents SBP and the remaining values are implementation defined.
Constructors
| MsgFwd | |
Fields
| |
msgLog_text :: Lens' MsgLog Text #
SBP class for message MSG_TWEET (0x0012).
All the news fit to tweet.
Constructors
| MsgTweet | |
Fields
| |
data MsgPrintDep #
SBP class for message MSG_PRINT_DEP (0x0010).
Deprecated.
Constructors
| MsgPrintDep | |
Fields
| |
Instances
| Eq MsgPrintDep # | |
Defined in SwiftNav.SBP.Logging | |
| Read MsgPrintDep # | |
Defined in SwiftNav.SBP.Logging Methods readsPrec :: Int -> ReadS MsgPrintDep # readList :: ReadS [MsgPrintDep] # readPrec :: ReadPrec MsgPrintDep # readListPrec :: ReadPrec [MsgPrintDep] # | |
| Show MsgPrintDep # | |
Defined in SwiftNav.SBP.Logging Methods showsPrec :: Int -> MsgPrintDep -> ShowS # show :: MsgPrintDep -> String # showList :: [MsgPrintDep] -> ShowS # | |
| ToJSON MsgPrintDep # | |
Defined in SwiftNav.SBP.Logging Methods toJSON :: MsgPrintDep -> Value # toEncoding :: MsgPrintDep -> Encoding # toJSONList :: [MsgPrintDep] -> Value # toEncodingList :: [MsgPrintDep] -> Encoding # | |
| FromJSON MsgPrintDep # | |
Defined in SwiftNav.SBP.Logging | |
| Binary MsgPrintDep # | |
Defined in SwiftNav.SBP.Logging | |
| ToSBP MsgPrintDep # | |
Defined in SwiftNav.SBP.Logging Methods toSBP :: MsgPrintDep -> Word16 -> Msg # | |
msgPrintDep :: Word16 #