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 |
SwiftNav.SBP.Types
Description
Common SBP type requirements, containers, and serialization utilities.
- msgSBPPreamble :: Word8
- defaultSender :: Word16
- data Msg = Msg {
- _msgSBPType :: Word16
- _msgSBPSender :: Word16
- _msgSBPLen :: Word8
- _msgSBPPayload :: !ByteString
- _msgSBPCrc :: Word16
- class HasMsg c where
- 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.
Constructors
Msg | |
Fields
|
Minimal complete definition
class Binary a => ToSBP a where Source #
Class of generic representation of specialized SBP messages into SBP message frames.
Minimal complete definition
Methods
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.
Instances