Define a new bit-flag protocol
bf_protocol(
name,
description,
test,
example,
type,
bits = NULL,
version = NULL,
extends = NULL,
note = NULL,
author = NULL
)
character(1)
simple name of this protocol.
character(1)
formalised description of
the operation in this protocol. It will be parsed with
glue
and used in the bitfield legend, so can include
the test arguments as enbraced expressions.
function(...)
the function used to build the bit
flag.
list(.)
named list that contains all arguments in
test
as name with values of the correct type.
character(1)
the encoding type according to
which the bit flag is determined. Possible values are bool
(for
binary flags), enum
(for cases), int
(for integers) and
num
(for floating-point encoding).
integer(1)
in case the flag requires more bits
than the data in example indicate, provide this here.
character(1)
the version of this protocol
according to the semantic versioning
specification, i.e., of the form X.Y.Z
, where X
is a major
version, Y
is a minor version and Z
is a bugfix. For
additional details on when to increase which number, study
this website.
character(1)
optional protocol name and
version that is extended by this protocol.
character(1)
note on what the extension
adds/modifies.
person(.)
to attach a reference to this
protocol, please provide here the relevant information about the author(s).
If this is not provided, the author "unknown"
will be used.
list containing bit-flag protocol