MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ make_entry()

auto MayaFlux::Core::SerialInputBackend::make_entry ( uint32_t id,
const std::string & path,
const std::string & name,
const SerialLineSettings & line,
const SerialProtocolSettings & protocol,
bool configured )
staticprivate

Definition at line 44 of file SerialInputBackend.cpp.

46{
47 Entry entry;
48 entry.info = InputDeviceInfo {
49 .id = id,
50 .name = name,
51 .manufacturer = {},
52 .backend_type = InputType::SERIAL,
53 .is_connected = true,
54 .port_name = path,
55 .baud_rate = line.baud_rate,
56 };
57 entry.spec = SerialSpec::from(line, protocol);
58 entry.configured = configured;
59 return entry;
60}
@ SERIAL
Serial port communication (Arduino, etc.).
Vruta::SoundRoutine line(float start_value, float end_value, float duration_seconds, uint32_t step_duration, bool restartable)
Creates a continuous interpolation generator between two values over time.
Definition Tasks.cpp:60
static SerialSpec from(const SerialLineSettings &line, const SerialProtocolSettings &protocol)
The spec a configured port describes.

References MayaFlux::Core::SerialInputBackend::Entry::configured, MayaFlux::Core::SerialSpec::from(), MayaFlux::Core::SerialInputBackend::Entry::info, MayaFlux::Core::SERIAL, and MayaFlux::Core::SerialInputBackend::Entry::spec.

Referenced by add_port(), initialize(), and refresh_devices().

Here is the call graph for this function:
Here is the caller graph for this function: