Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
3055a4ce3This file is pinned to the selected release. Download the original to open it in your design tool.
/*****************************************************************************
Button.hpp
Copyright (c) 2020 Raphael DINGE
*Tab=3***********************************************************************/
#pragma once
/*\\\ INCLUDE FILES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
namespace erb
{
/*\\\ PUBLIC \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
/*
==============================================================================
Name : ctor
==============================================================================
*/
Button::Button (const uint8_t & data)
: impl_data (data)
{
}
/*
==============================================================================
Name : idle
==============================================================================
*/
bool Button::idle () const
{
return _debounce.idle ();
}
/*
==============================================================================
Name : pressed
==============================================================================
*/
bool Button::pressed () const
{
return _debounce.pressed ();
}
/*
==============================================================================
Name : held
==============================================================================
*/
bool Button::held () const
{
return _debounce.held ();
}
/*
==============================================================================
Name : released
==============================================================================
*/
bool Button::released () const
{
return _debounce.released ();
}
/*\\\ INTERNAL \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
/*\\\ PROTECTED \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
/*\\\ PRIVATE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
} // namespace erb
/*\\\ EOF \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/