Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/*****************************************************************************
GateOut.h
Copyright (c) 2020 Raphael DINGE
*Tab=3***********************************************************************/
#pragma once
/*\\\ INCLUDE FILES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
#include "erb/detail/GateGenerator.h"
#include <chrono>
#include <cstdint>
namespace erb
{
using namespace std::chrono_literals;
class GateOut
{
/*\\\ PUBLIC \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
public:
static constexpr float ValueMin = 0.f;
static constexpr float ValueMax = 1.f;
GateOut (uint8_t & data, const uint64_t & clock_ms);
virtual ~GateOut () = default;
GateOut & operator = (bool val);
void on ();
void off ();
void trigger (std::chrono::milliseconds duration = 6ms);
/*\\\ INTERNAL \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
uint8_t & impl_data;
inline void impl_preprocess () {}
void impl_postprocess ();
/*\\\ PROTECTED \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
protected:
/*\\\ PRIVATE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
private:
const uint64_t &
_clock_ms;
GateGenerator _generator;
/*\\\ FORBIDDEN MEMBER FUNCTIONS \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
private:
GateOut (const GateOut & rhs) = delete;
GateOut (GateOut && rhs) = delete;
GateOut & operator = (const GateOut & rhs) = delete;
GateOut & operator = (GateOut && rhs) = delete;
bool operator == (const GateOut & rhs) const = delete;
bool operator != (const GateOut & rhs) const = delete;
}; // class GateOut
} // namespace erb
/*\\\ EOF \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
1c962d8cfThis file is pinned to the selected release. Download the original to open it in your design tool.