Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/*****************************************************************************
Encoder.h
Copyright (c) 2020 Raphael DINGE
*Tab=3***********************************************************************/
#pragma once
/*\\\ INCLUDE FILES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
#include "erb/Button.h"
#include <cstdint>
namespace erb
{
class Encoder
{
/*\\\ PUBLIC \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
public:
Encoder (const uint8_t & data_0, const uint8_t & data_1);
virtual ~Encoder () = default;
operator int () const;
/*\\\ INTERNAL \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
void impl_preprocess ();
inline void impl_postprocess () {}
Button _inc;
Button _dec;
/*\\\ PROTECTED \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
protected:
/*\\\ PRIVATE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
private:
/*\\\ FORBIDDEN MEMBER FUNCTIONS \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
private:
Encoder (const Encoder & rhs) = delete;
Encoder (Encoder && rhs) = delete;
Encoder & operator = (const Encoder & rhs) = delete;
Encoder & operator = (Encoder && rhs) = delete;
bool operator == (const Encoder & rhs) const = delete;
bool operator != (const Encoder & rhs) const = delete;
}; // class Encoder
} // namespace erb
/*\\\ EOF \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
de542a4b1This file is pinned to the selected release. Download the original to open it in your design tool.