blob: 0ff1c7174b7677b0c6b0e3e1a6a2789c71845605 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include <fbl/span.h>
#include <cstddef>
#include <cstdint>
namespace ppp {
static constexpr uint16_t kFrameCheckSequenceInit = 0xffff;
static constexpr uint16_t kFrameCheckSequence = 0xf0b8;
uint16_t Fcs(uint16_t current, fbl::Span<const uint8_t> data);
} // namespace ppp