#include <device.hpp>
|
| static auto | delay_ms (std::uint32_t milliseconds) -> void |
| |
| static auto | delay_us (std::uint32_t microseconds) -> void |
| |
◆ Device() [1/4]
| epaper::Device::Device |
( |
| ) |
|
◆ Device() [2/4]
Construct a Device with custom configuration.
- Parameters
-
| config | Device configuration specifying paths and settings |
◆ ~Device()
| epaper::Device::~Device |
( |
| ) |
|
|
noexcept |
◆ Device() [3/4]
| epaper::Device::Device |
( |
const Device & |
| ) |
|
|
delete |
◆ Device() [4/4]
| epaper::Device::Device |
( |
Device && |
other | ) |
|
|
noexcept |
Move constructor.
- Parameters
-
- Note
- Exception Safety: Nothrow guarantee.
◆ delay_ms()
| auto epaper::Device::delay_ms |
( |
std::uint32_t |
milliseconds | ) |
-> void |
|
static |
◆ delay_us()
| auto epaper::Device::delay_us |
( |
std::uint32_t |
microseconds | ) |
-> void |
|
static |
◆ get_input()
◆ get_output()
◆ get_spi()
| auto epaper::Device::get_spi |
( |
| ) |
-> HalSpi |
|
inline |
◆ init()
| auto epaper::Device::init |
( |
| ) |
-> std::expected<void, Error> |
Initialize the GPIO (libgpiod) and SPI (SPIdev) interfaces.
This must be called before any other operations on the device. Idempotent - calling init() on an already initialized device succeeds.
- Returns
- void on success, Error on failure
- Note
- Exception Safety: Strong guarantee - if initialization fails, the device remains in an uninitialized state.
- Examples
- /mnt/nas/libepaper/include/epaper/core/device.hpp.
◆ is_initialized()
| auto epaper::Device::is_initialized |
( |
| ) |
const -> bool |
|
noexcept |
◆ operator=() [1/2]
| auto epaper::Device::operator= |
( |
const Device & |
| ) |
-> Device &=delete |
|
delete |
◆ operator=() [2/2]
| auto epaper::Device::operator= |
( |
Device && |
other | ) |
-> Device & |
|
noexcept |
Move assignment operator.
- Parameters
-
- Returns
- Reference to this device
- Note
- Exception Safety: Nothrow guarantee.
◆ read_pin()
| auto epaper::Device::read_pin |
( |
Pin |
pin | ) |
-> bool |
◆ set_pin_input()
| auto epaper::Device::set_pin_input |
( |
Pin |
pin | ) |
-> void |
◆ set_pin_output()
| auto epaper::Device::set_pin_output |
( |
Pin |
pin | ) |
-> void |
◆ spi_transfer()
| auto epaper::Device::spi_transfer |
( |
std::uint8_t |
value | ) |
const -> std::uint8_t |
◆ spi_write()
| auto epaper::Device::spi_write |
( |
std::span< const std::byte > |
data | ) |
const -> void |
◆ write_pin()
| auto epaper::Device::write_pin |
( |
Pin |
pin, |
|
|
bool |
value |
|
) |
| -> void |
The documentation for this class was generated from the following files: