|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::Core::SerialDevice::request | ( | std::span< const uint8_t > | command, |
| ReplyMatcher | matcher, | ||
| std::chrono::milliseconds | timeout, | ||
| ReplyCallback | done ) |
Send a command and wait for its reply.
| command | Sent as it is. |
| matcher | True for the message that answers the command. |
| timeout | How long to wait. |
| done | Called exactly once for a request that returns true, on the link's thread, with the reply when there is one. Never called for a request that returns false. |
Definition at line 120 of file SerialDevice.cpp.
References m_link, m_pending, MayaFlux::Core::OPEN, and request().
Referenced by complete_request(), end_request(), is_pending(), operator=(), and request().