# Copyright (C) 2018-2021 Swift Navigation Inc.
# Contact: https://support.swiftnav.com
#
# This source is subject to the license found in the file 'LICENSE' which must
# be distributed together with this source. All other rights reserved.
#
# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.

package: swiftnav.sbp.sbas
description: SBAS data
stable: False
public: True
include:
  - gnss.yaml
definitions:

 - MSG_SBAS_RAW:
    id: 0x7777
    short_desc: Raw SBAS data
    desc: >
      This message is sent once per second per SBAS satellite. ME checks the
      parity of the data block and sends only blocks that pass the check.
    fields:
        - sid:
            type: GnssSignal
            desc: GNSS signal identifier.
        - tow:
            type: u32
            units: ms
            desc: GPS time-of-week at the start of the data block.
        - message_type:
           type: u8
           desc: SBAS message type (0-63)
        - data:
            type: array
            size: 27
            fill: u8
            desc: Raw SBAS data field of 212 bits (last byte padded with zeros).
