Skip to content

Commit

Permalink
Release v3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Jan 12, 2025
2 parents b4be5f3 + 2b5290e commit 80cd9df
Show file tree
Hide file tree
Showing 55 changed files with 608 additions and 291 deletions.
2 changes: 1 addition & 1 deletion include/cc_demo1/Message.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains definition of <b>"Message"</b> interface class.
Expand Down
2 changes: 1 addition & 1 deletion include/cc_demo1/MsgId.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains definition of message ids enumeration.
Expand Down
8 changes: 4 additions & 4 deletions include/cc_demo1/Version.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains protocol version definition.
Expand All @@ -11,10 +11,10 @@
#define CC_DEMO1_SPEC_VERSION (0U)

/// @brief Major version of the protocol library.
#define CC_DEMO1_MAJOR_VERSION (2)
#define CC_DEMO1_MAJOR_VERSION (3)

/// @brief Minor version of the protocol library.
#define CC_DEMO1_MINOR_VERSION (9)
#define CC_DEMO1_MINOR_VERSION (0)

/// @brief Patch version of the protocol library.
#define CC_DEMO1_PATCH_VERSION (0)
Expand Down Expand Up @@ -58,5 +58,5 @@ inline constexpr unsigned version()
} // namespace cc_demo1

// Generated compile time check for minimal supported version of the COMMS library
static_assert(COMMS_MAKE_VERSION(5, 2, 7) <= comms::version(),
static_assert(COMMS_MAKE_VERSION(5, 3, 0) <= comms::version(),
"The version of COMMS library is too old");
2 changes: 1 addition & 1 deletion include/cc_demo1/dispatch/DispatchClientInputMessage.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains dispatch to handling function(s) for client input input messages.
Expand Down
2 changes: 1 addition & 1 deletion include/cc_demo1/dispatch/DispatchMessage.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains dispatch to handling function(s) for all input messages.
Expand Down
2 changes: 1 addition & 1 deletion include/cc_demo1/dispatch/DispatchServerInputMessage.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains dispatch to handling function(s) for client input input messages.
Expand Down
2 changes: 1 addition & 1 deletion include/cc_demo1/factory/AllMessagesDynMemMsgFactory.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains message factory with dynamic memory allocation for all the messages.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains message factory with dynamic memory allocation for the client input messages.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains message factory with dynamic memory allocation for the server input messages.
Expand Down
2 changes: 1 addition & 1 deletion include/cc_demo1/field/FieldBase.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains definition of base class of all the fields.
Expand Down
4 changes: 3 additions & 1 deletion include/cc_demo1/field/Lat.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains definition of <b>"Lat"</b> field.
Expand Down Expand Up @@ -29,6 +29,7 @@ class Lat : public
cc_demo1::field::FieldBase<>,
std::int32_t,
TExtraOpts...,
comms::option::def::HasName,
comms::option::def::ScalingRatio<1, 10000000L>,
comms::option::def::UnitsDegrees
>
Expand All @@ -38,6 +39,7 @@ class Lat : public
cc_demo1::field::FieldBase<>,
std::int32_t,
TExtraOpts...,
comms::option::def::HasName,
comms::option::def::ScalingRatio<1, 10000000L>,
comms::option::def::UnitsDegrees
>;
Expand Down
2 changes: 1 addition & 1 deletion include/cc_demo1/field/LatCommon.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains common template parameters independent functionality of
Expand Down
4 changes: 3 additions & 1 deletion include/cc_demo1/field/Lon.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains definition of <b>"Lon"</b> field.
Expand Down Expand Up @@ -29,6 +29,7 @@ class Lon : public
cc_demo1::field::FieldBase<>,
std::int32_t,
TExtraOpts...,
comms::option::def::HasName,
comms::option::def::ScalingRatio<1, 10000000L>,
comms::option::def::UnitsDegrees
>
Expand All @@ -38,6 +39,7 @@ class Lon : public
cc_demo1::field::FieldBase<>,
std::int32_t,
TExtraOpts...,
comms::option::def::HasName,
comms::option::def::ScalingRatio<1, 10000000L>,
comms::option::def::UnitsDegrees
>;
Expand Down
2 changes: 1 addition & 1 deletion include/cc_demo1/field/LonCommon.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains common template parameters independent functionality of
Expand Down
4 changes: 3 additions & 1 deletion include/cc_demo1/field/MsgId.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains definition of <b>"MsgId"</b> field.
Expand Down Expand Up @@ -27,6 +27,7 @@ class MsgId : public
cc_demo1::field::FieldBase<>,
cc_demo1::field::MsgIdCommon::ValueType,
TExtraOpts...,
comms::option::def::HasName,
comms::option::def::ValidNumValueRange<0, 11>
>
{
Expand All @@ -35,6 +36,7 @@ class MsgId : public
cc_demo1::field::FieldBase<>,
cc_demo1::field::MsgIdCommon::ValueType,
TExtraOpts...,
comms::option::def::HasName,
comms::option::def::ValidNumValueRange<0, 11>
>;
public:
Expand Down
2 changes: 1 addition & 1 deletion include/cc_demo1/field/MsgIdCommon.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains common template parameters independent functionality of
Expand Down
8 changes: 5 additions & 3 deletions include/cc_demo1/field/PropRemLen.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains definition of <b>"Length"</b> field.
Expand Down Expand Up @@ -26,14 +26,16 @@ class PropRemLen : public
comms::field::IntValue<
cc_demo1::field::FieldBase<>,
std::uint16_t,
TExtraOpts...
TExtraOpts...,
comms::option::def::HasName
>
{
using Base =
comms::field::IntValue<
cc_demo1::field::FieldBase<>,
std::uint16_t,
TExtraOpts...
TExtraOpts...,
comms::option::def::HasName
>;
public:
/// @brief Re-definition of the value type.
Expand Down
2 changes: 1 addition & 1 deletion include/cc_demo1/field/PropRemLenCommon.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains common template parameters independent functionality of
Expand Down
40 changes: 34 additions & 6 deletions include/cc_demo1/frame/Frame.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains definition of <b>"Frame"</b> frame class.
Expand Down Expand Up @@ -33,10 +33,30 @@ namespace frame
template <typename TOpt = cc_demo1::options::DefaultOptions>
struct FrameLayers
{
/// @brief Scope for field(s) of @ref Data layer.
struct DataMembers
{
/// @brief Custom field for @ref cc_demo1::frame::FrameLayers::Data layer
class Field : public
comms::field::ArrayList<
cc_demo1::field::FieldBase<>,
std::uint8_t,
typename TOpt::frame::FrameLayers::DataMembers::Field,
comms::option::def::HasName
>
{
public:
static const char* name()
{
return "Data";
}
};
};

/// @brief Definition of layer "Data".
using Data =
comms::protocol::MsgDataLayer<
typename TOpt::frame::FrameLayers::Data
comms::option::def::FieldType<typename DataMembers::Field>
>;

/// @brief Definition of layer "Id".
Expand All @@ -60,14 +80,18 @@ struct FrameLayers
comms::field::IntValue<
cc_demo1::field::FieldBase<>,
std::uint16_t,
comms::option::def::NumValueSerOffset<2>
comms::option::def::HasName,
comms::option::def::NumValueSerOffset<2>,
comms::option::def::DisplayOffset<2>
>
{
using Base =
comms::field::IntValue<
cc_demo1::field::FieldBase<>,
std::uint16_t,
comms::option::def::NumValueSerOffset<2>
comms::option::def::HasName,
comms::option::def::NumValueSerOffset<2>,
comms::option::def::DisplayOffset<2>
>;
public:
/// @brief Re-definition of the value type.
Expand Down Expand Up @@ -102,13 +126,15 @@ struct FrameLayers
class Checksum : public
comms::field::IntValue<
cc_demo1::field::FieldBase<>,
std::uint16_t
std::uint16_t,
comms::option::def::HasName
>
{
using Base =
comms::field::IntValue<
cc_demo1::field::FieldBase<>,
std::uint16_t
std::uint16_t,
comms::option::def::HasName
>;
public:
/// @brief Re-definition of the value type.
Expand Down Expand Up @@ -145,6 +171,7 @@ struct FrameLayers
comms::field::IntValue<
cc_demo1::field::FieldBase<>,
std::uint16_t,
comms::option::def::HasName,
comms::option::def::FailOnInvalid<comms::ErrorStatus::ProtocolError>,
comms::option::def::DefaultNumValue<43981L>,
comms::option::def::ValidNumValue<43981L>,
Expand All @@ -155,6 +182,7 @@ struct FrameLayers
comms::field::IntValue<
cc_demo1::field::FieldBase<>,
std::uint16_t,
comms::option::def::HasName,
comms::option::def::FailOnInvalid<comms::ErrorStatus::ProtocolError>,
comms::option::def::DefaultNumValue<43981L>,
comms::option::def::ValidNumValue<43981L>,
Expand Down
2 changes: 1 addition & 1 deletion include/cc_demo1/frame/FrameCommon.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains common template parameters independent functionality of
Expand Down
2 changes: 1 addition & 1 deletion include/cc_demo1/input/AllMessages.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains definition of the AllMessages messages bundle.
Expand Down
2 changes: 1 addition & 1 deletion include/cc_demo1/input/ClientInputMessages.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains definition of the ClientInputMessages messages bundle.
Expand Down
2 changes: 1 addition & 1 deletion include/cc_demo1/input/ServerInputMessages.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains definition of the ServerInputMessages messages bundle.
Expand Down
5 changes: 3 additions & 2 deletions include/cc_demo1/message/Ack.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains definition of <b>"Ack"</b> message and its fields.
Expand Down Expand Up @@ -30,7 +30,8 @@ struct AckFields
/// @brief Definition of <b>"MsgId"</b> field.
using MsgId =
cc_demo1::field::MsgId<
TOpt
TOpt,
comms::option::def::HasName
>;

/// @brief All the fields bundled in std::tuple.
Expand Down
2 changes: 1 addition & 1 deletion include/cc_demo1/message/AckCommon.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by commsdsl2comms v6.3.4
// Generated by commsdsl2comms v7.0.0

/// @file
/// @brief Contains common template parameters independent functionality of
Expand Down
Loading

0 comments on commit 80cd9df

Please sign in to comment.