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::MockOutputPin Class Reference

#include <mock_pin.hpp>

Public Member Functions

auto write (bool level) -> void
 Write logic level to pin (records operation).
 
auto last_level () const -> bool
 Get the last written logic level.
 
auto write_count () const -> std::size_t
 Get total number of write operations.
 
auto reset () -> void
 Reset pin state for new test.
 

Member Function Documentation

◆ last_level()

auto epaper::hal::MockOutputPin::last_level ( ) const -> bool
inline

Get the last written logic level.

Returns
Last level written
Examples
/mnt/nas/libepaper/include/epaper/hal/mock_pin.hpp.

◆ reset()

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

Reset pin state for new test.

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

◆ write()

auto epaper::hal::MockOutputPin::write ( bool  level) -> void
inline

Write logic level to pin (records operation).

Parameters
levelLogic level (true=HIGH, false=LOW)
Examples
/mnt/nas/libepaper/include/epaper/hal/mock_pin.hpp.

◆ write_count()

auto epaper::hal::MockOutputPin::write_count ( ) const -> std::size_t
inline

Get total number of write operations.

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

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