3#include "../../global.hpp"
5#include "../_decl/decl_emu_image.hpp"
6#include "../_decl/decl_emu_device.hpp"
16 inline std::chrono::milliseconds EmuImage::FrameTime()
const
18 return std::dynamic_pointer_cast<const EmuDevice>(
Parent())->FrameTime();
21 template <
class Rep,
class Period>
22 inline void EmuImage::SetFrameTime(
const std::chrono::duration<Rep, Period> &frameTime)
29 throw std::overflow_error(
"timeout must fit to unsigned 32 bit integer in ms");
31 auto digitalIO =
Parent()->DigitalIO();
32 digitalIO->WriteOutputGroup(CExports::Emu::DelayGroup, std::bitset<32>(
static_cast<std::uint32_t
>(msFrameTime)));
DevicePtr Parent() const noexcept
Gets the parent device of this image.
Definition decl_device_image.hpp:47
T duration_cast(T... args)
Namespace for driver or device related operations.
Definition decl_composite.hpp:28
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17