|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| uint32_t MayaFlux::Core::SerialInputBackend::add_view | ( | uint32_t | device_id, |
| SerialSpec | spec ) |
List a second way of reading a device, as a device of its own.
| device_id | The device to read, never a reading itself. |
| spec | Framing and parsing of this reading. Its line setup is not used. |
The reading sees the bytes of the device it reads and cuts and parses them on its own, so one port can be read as lines by one node and as raw bytes by another. Opening it opens the device, closing it only stops this reading, and its values carry its own id. Writes to its id go to the device.
Definition at line 467 of file SerialInputBackend.cpp.
References add_view(), MayaFlux::Core::SerialInputBackend::Entry::configured, MayaFlux::Core::SerialInputBackend::Entry::device, MayaFlux::Core::SerialInputBackend::Roster::entries, MayaFlux::Core::InputDeviceInfo::id, id_for(), MayaFlux::Core::SerialInputBackend::Entry::info, MayaFlux::Core::InputDeviceInfo::is_connected, m_initialized, m_roster, MayaFlux::Core::InputDeviceInfo::name, MayaFlux::Core::SerialInputBackend::Roster::next_id, notify_device(), MayaFlux::Core::SerialInputBackend::Entry::parent, MayaFlux::Core::SerialInputBackend::Entry::spec, and MayaFlux::Core::SerialInputBackend::Entry::view_reader.
Referenced by add_view().