Speeduino
Loading...
Searching...
No Matches
Public Member Functions | List of all members
fastInputPin_t Class Reference

A class for input pin operations that is faster than standard Arduino digitalRead() More...

#include <fastInputPin.h>

Public Member Functions

void setPin (uint8_t pin, uint8_t mode=INPUT)
 Set the input pin.
 
bool isPinHigh (void) const
 Check if the pin is set high.
 
bool isPinLow (void) const
 Check if the pin is set low.
 
bool isValid (void) const
 Is the pin set?
 

Detailed Description

A class for input pin operations that is faster than standard Arduino digitalRead()

Call setPin() to initialize the pin, then call isPinHigh() to check if the pin is set high.

Member Function Documentation

◆ isPinHigh()

bool fastInputPin_t::isPinHigh ( void  ) const

Check if the pin is set high.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isPinLow()

bool fastInputPin_t::isPinLow ( void  ) const
inline

Check if the pin is set low.

Here is the call graph for this function:

◆ isValid()

bool fastInputPin_t::isValid ( void  ) const
inline

Is the pin set?

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPin()

void fastInputPin_t::setPin ( uint8_t  pin,
uint8_t  mode = INPUT 
)

Set the input pin.

Here is the call graph for this function:
Here is the caller graph for this function:

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