OS
v1.7.5
Documentation
|
A Response Handler object. More...
#include <response.hpp>
Public Member Functions | |
response ()=default | |
bool | setup (char *xLocBuff, const size_t nMax) noexcept |
Initialize the instance of the response handler object. | |
void | reset (void) noexcept |
Reset the Response Handler. | |
responseStatus | received (const char *pattern, const size_t n, const qOS::duration_t t=clock::IMMEDIATE) noexcept |
Non-Blocking response check. | |
bool | isrHandler (const char rxChar) noexcept |
ISR receiver for the response handler. | |
bool | isInitialized (void) const noexcept |
Check if the response object is already initialized by using response::setup() | |
A Response Handler object.
|
default |
|
noexcept |
Check if the response object is already initialized by using response::setup()
true
if the response object is initialized, false
if not.
|
noexcept |
ISR receiver for the response handler.
[in] | rxChar | The byte-data from the receiver |
|
noexcept |
Non-Blocking response check.
[in] | pattern | The data checked in the receiver ISR |
[in] | n | The length of the data pointer by pattern (if pattern is string, set n to 0 to auto-compute the length) |
[in] | t | The timeout value given in milliseconds. |
|
noexcept |
Reset the Response Handler.
|
noexcept |
Initialize the instance of the response handler object.
[in] | xLocBuff | A pointer to the memory block where the desired response will remain. |
[in] | nMax | The size of xLocBuff |
true
, otherwise returns false
.