4#include "include/types.hpp"
5#include "include/timer.hpp"
29 char *pattern2Match{
nullptr };
31 size_t maxStrLength{ 0U };
32 size_t patternLength{ 0U };
33 volatile size_t matchedCount{ 0U };
34 volatile bool responseReceived{
false };
36 void operator=(
response const& ) =
delete;
49 bool setup(
char *xLocBuff,
const size_t nMax )
noexcept;
static const qOS::duration_t IMMEDIATE
To specify a non-wait time value.
Definition clock.hpp:124
A Response Handler object.
Definition response.hpp:27
void reset(void) noexcept
Reset the Response Handler.
bool setup(char *xLocBuff, const size_t nMax) noexcept
Initialize the instance of the response handler object.
bool isrHandler(const char rxChar) noexcept
ISR receiver for 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 isInitialized(void) const noexcept
Check if the response object is already initialized by using response::setup()
A non-blocking Timer object.
Definition timer.hpp:26
timeCount_t duration_t
The typedef that specified an time quantity, usually expressed in milliseconds.
Definition clock.hpp:18
responseStatus
A enum with the possible return status of a qOS::response object.
Definition response.hpp:18
OS/Kernel interfaces.
Definition bytebuffer.hpp:7