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
Static Public Member Functions | List of all members
epaper::hal::MockDelay Class Reference

#include <mock_delay.hpp>

Static Public Member Functions

static auto delay_ms (std::uint32_t ms) -> void
 Mock millisecond delay (records but doesn't block).
 
static auto total_delay_ms () -> std::uint32_t
 Get total accumulated delay time.
 
static auto delay_count () -> std::size_t
 Get total number of delay calls.
 
static auto reset () -> void
 Reset delay tracking for new test.
 

Member Function Documentation

◆ delay_count()

static auto epaper::hal::MockDelay::delay_count ( ) -> std::size_t
inlinestatic

Get total number of delay calls.

Returns
Delay call count
Examples
/mnt/nas/libepaper/include/epaper/hal/mock_delay.hpp.

◆ delay_ms()

static auto epaper::hal::MockDelay::delay_ms ( std::uint32_t  ms) -> void
inlinestatic

Mock millisecond delay (records but doesn't block).

Parameters
msMilliseconds to delay
Examples
/mnt/nas/libepaper/include/epaper/hal/mock_delay.hpp.

◆ reset()

static auto epaper::hal::MockDelay::reset ( ) -> void
inlinestatic

Reset delay tracking for new test.

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

◆ total_delay_ms()

static auto epaper::hal::MockDelay::total_delay_ms ( ) -> std::uint32_t
inlinestatic

Get total accumulated delay time.

Returns
Total milliseconds across all delay_ms() calls
Examples
/mnt/nas/libepaper/include/epaper/hal/mock_delay.hpp.

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