Copyright | Copyright (C) 2015 Swift Navigation, Inc. |
---|---|
License | LGPL-3 |
Maintainer | Mark Fine <dev@swiftnav.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Common SBP type requirements, containers, and serialization utilities.
- msgSBPPreamble :: Word8
- defaultSender :: Word16
- data Msg = Msg {}
- class HasMsg c where
- msg :: Lens' c Msg
- msgSBPCrc :: Lens' c Word16
- msgSBPLen :: Lens' c Word8
- msgSBPPayload :: Lens' c ByteString
- msgSBPSender :: Lens' c Word16
- msgSBPType :: Lens' c Word16
- checkCrc :: Msg -> Word16
- class Binary a => ToSBP a where
Documentation
msgSBPPreamble :: Word8 Source
Denotes the start of frame transmission. For v1.0, always 0x55.
defaultSender :: Word16 Source
Default sender ID. Intended for messages sent from the host to the device.
Packet structure for Swift Navigation Binary Protocol (SBP).
Definition of the over-the-wire message framing format and packet structure for Swift Navigation Binary Protocol (SBP), a minimal binary protocol for communicating with Swift devices. It is used to transmit solutions, observations, status and debugging messages, as well as receive messages from the host operating system.
Msg | |
|
msgSBPCrc :: Lens' c Word16 Source
msgSBPLen :: Lens' c Word8 Source
msgSBPPayload :: Lens' c ByteString Source
msgSBPSender :: Lens' c Word16 Source
msgSBPType :: Lens' c Word16 Source
class Binary a => ToSBP a where Source
Class of generic representation of specialized SBP messages into SBP message frames.
toSBP :: a -> Word16 -> Msg Source
Convert an SBP message record that is serializable and a two-byte senderID to a binary into an SBP message frame.