2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
DebouncedButtonSet< N > Class Template Reference

#include <DebouncedButtonSet.h>

Public Member Functions

 DebouncedButtonSet ()=delete
 
 DebouncedButtonSet (DebouncedDigitalInput(&&buttons)[N])
 
 DebouncedButtonSet (const DebouncedButtonSet &)=delete
 
DebouncedButtonSetoperator= (const DebouncedButtonSet &)=delete
 
void Initialize ()
 
void Update ()
 
bool GetValue (size_t idx) const
 
bool GetRawValue (size_t idx) const
 
void Reset (bool newValue=false)
 
void Reset (size_t idx, bool newValue=false)
 
void SetDebounceCount (size_t idx, uint16_t newCount)
 
void SetDebounceCount (uint16_t newCount)
 
size_t GetNumButtons () const
 

Private Attributes

DebouncedDigitalInput m_buttonSet [N]
 
bool m_initialized
 
const size_t m_numButtons
 

Constructor & Destructor Documentation

◆ DebouncedButtonSet() [1/3]

template<size_t N>
DebouncedButtonSet< N >::DebouncedButtonSet ( )
delete

◆ DebouncedButtonSet() [2/3]

template<size_t N>
DebouncedButtonSet< N >::DebouncedButtonSet ( DebouncedDigitalInput(&&)  buttons[N])
inlineexplicit

◆ DebouncedButtonSet() [3/3]

template<size_t N>
DebouncedButtonSet< N >::DebouncedButtonSet ( const DebouncedButtonSet< N > &  )
delete

Member Function Documentation

◆ GetNumButtons()

template<size_t N>
size_t DebouncedButtonSet< N >::GetNumButtons ( ) const
inline

◆ GetRawValue()

template<size_t N>
bool DebouncedButtonSet< N >::GetRawValue ( size_t  idx) const
inline

◆ GetValue()

template<size_t N>
bool DebouncedButtonSet< N >::GetValue ( size_t  idx) const
inline

◆ Initialize()

template<size_t N>
void DebouncedButtonSet< N >::Initialize ( )
inline

◆ operator=()

template<size_t N>
DebouncedButtonSet & DebouncedButtonSet< N >::operator= ( const DebouncedButtonSet< N > &  )
delete

◆ Reset() [1/2]

template<size_t N>
void DebouncedButtonSet< N >::Reset ( bool  newValue = false)
inline

◆ Reset() [2/2]

template<size_t N>
void DebouncedButtonSet< N >::Reset ( size_t  idx,
bool  newValue = false 
)
inline

◆ SetDebounceCount() [1/2]

template<size_t N>
void DebouncedButtonSet< N >::SetDebounceCount ( size_t  idx,
uint16_t  newCount 
)
inline

◆ SetDebounceCount() [2/2]

template<size_t N>
void DebouncedButtonSet< N >::SetDebounceCount ( uint16_t  newCount)
inline

◆ Update()

template<size_t N>
void DebouncedButtonSet< N >::Update ( )
inline

Member Data Documentation

◆ m_buttonSet

template<size_t N>
DebouncedDigitalInput DebouncedButtonSet< N >::m_buttonSet[N]
private

◆ m_initialized

template<size_t N>
bool DebouncedButtonSet< N >::m_initialized
private

◆ m_numButtons

template<size_t N>
const size_t DebouncedButtonSet< N >::m_numButtons
private

The documentation for this class was generated from the following file: