libepaper 2.0.0
A C++23 library for controlling Waveshare e-paper displays on Raspberry Pi, featuring transparent sleep/wake management and a fluent builder API.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
epaper::hal::MockInputPin Class Reference

#include <mock_pin.hpp>

Public Member Functions

auto read () -> bool
 Read logic level from pin (returns configured level).
 
auto set_level (bool level) -> void
 Set the level that read() will return.
 
auto read_count () const -> std::size_t
 Get total number of read operations.
 
auto reset () -> void
 Reset pin state for new test.
 

Member Function Documentation

◆ read()

auto epaper::hal::MockInputPin::read ( ) -> bool
inline

Read logic level from pin (returns configured level).

Returns
Configured logic level
Examples
/mnt/nas/libepaper/include/epaper/hal/mock_pin.hpp.

◆ read_count()

auto epaper::hal::MockInputPin::read_count ( ) const -> std::size_t
inline

Get total number of read operations.

Returns
Read count
Examples
/mnt/nas/libepaper/include/epaper/hal/mock_pin.hpp.

◆ reset()

auto epaper::hal::MockInputPin::reset ( ) -> void
inline

Reset pin state for new test.

Examples
/mnt/nas/libepaper/include/epaper/hal/mock_pin.hpp.

◆ set_level()

auto epaper::hal::MockInputPin::set_level ( bool  level) -> void
inline

Set the level that read() will return.

Parameters
levelLogic level to return on read()
Examples
/mnt/nas/libepaper/include/epaper/hal/mock_pin.hpp.

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