Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: merge rx::bidi::CrtpBase into rx::CrtpBase #22

Merged
merged 1 commit into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ To create a receiver (decoder) class it is necessary to derive from `dcc::rx::Cr

struct Decoder : dcc::rx::CrtpBase<Decoder> {
friend dcc::rx::CrtpBase<Decoder>;
friend dcc::rx::CrtpBase<Decoder>::BiDi;

private:
// Set direction (1 forward, 0 backward)
Expand Down
1 change: 0 additions & 1 deletion examples/repl/src/decoder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

struct Decoder : dcc::rx::CrtpBase<Decoder> {
friend dcc::rx::CrtpBase<Decoder>;
friend dcc::rx::CrtpBase<Decoder>::BiDi;

Decoder();

Expand Down
1 change: 0 additions & 1 deletion examples/stm32/src/decoder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

struct Decoder : dcc::rx::CrtpBase<Decoder> {
friend dcc::rx::CrtpBase<Decoder>;
friend dcc::rx::CrtpBase<Decoder>::BiDi;

private:
// Set direction (1 forward, 0 backward)
Expand Down
3 changes: 0 additions & 3 deletions include/dcc/address.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ struct Address {
bool reversed{}; /// Direction reversed
};

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
/// Decode address
///
/// \tparam InputIt std::input_iterator
Expand Down Expand Up @@ -85,7 +83,6 @@ constexpr Address decode_address(InputIt first) {
// 255
else return {*first, Address::IdleSystem};
}
#pragma GCC diagnostic pop

/// Encode address
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/// Backoff logic
///
/// \file dcc/rx/bidi/backoff.hpp
/// \file dcc/rx/backoff.hpp
/// \author Vincent Hamp
/// \date 09/08/2023

Expand All @@ -15,7 +15,7 @@
#include <cstdint>
#include <cstdlib>

namespace dcc::rx::bidi {
namespace dcc::rx {

/// Implements O(2^n) backoff logic
struct Backoff {
Expand Down Expand Up @@ -45,4 +45,4 @@ struct Backoff {
uint8_t _count{};
};

} // namespace dcc::rx::bidi
} // namespace dcc::rx
Loading