blob: 3959d6885f85d8964d661cac13cf91a343cb9135 [file] [log] [blame]
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/dif/dif_base.h"
#include <stdbool.h>
#include "sw/device/lib/base/multibits.h"
// `extern` declarations to give the inline functions in the corresponding
// header a link location.
extern bool dif_is_valid_toggle(dif_toggle_t val);
extern bool dif_toggle_to_bool(dif_toggle_t val);
extern dif_toggle_t dif_bool_to_toggle(bool val);
extern dif_toggle_t dif_multi_bit_bool_to_toggle(multi_bit_bool_t val);
extern multi_bit_bool_t dif_toggle_to_multi_bit_bool4(dif_toggle_t val);
extern multi_bit_bool_t dif_toggle_to_multi_bit_bool8(dif_toggle_t val);
extern multi_bit_bool_t dif_toggle_to_multi_bit_bool12(dif_toggle_t val);
extern multi_bit_bool_t dif_toggle_to_multi_bit_bool16(dif_toggle_t val);