42 #error Source file included in a project NOT based on the QK kernel
47Q_DEFINE_THIS_MODULE(
"qk")
67 static_cast<std::uint8_t
>(ceiling));
84 if (prevCeil != 0xFFU) {
94 static_cast<std::uint8_t
>(prevCeil));
121 std::uint_fast8_t p = 0U;
147 std::uint_fast8_t
const pthre_in)
noexcept
151 std::uint_fast8_t p = act->getPrio();
152 if (act->getEQueue().isEmpty()) {
183 std::uint_fast8_t
const prio_in =
QK_priv_.actPrio;
184 std::uint_fast8_t p =
QK_priv_.nextPrio;
189#if (defined QF_ON_CONTEXT_SW) || (defined Q_SPY)
190 std::uint_fast8_t pprev = prio_in;
195 std::uint_fast8_t pthre_in = 0U;
200 pthre_in =
static_cast<std::uint_fast8_t
>(a->
getPThre());
207 std::uint_fast8_t
const pthre
208 =
static_cast<std::uint_fast8_t
>(a->
getPThre());
214#if (defined QF_ON_CONTEXT_SW) || (defined Q_SPY)
223#ifdef QF_ON_CONTEXT_SW
237#if (QF_MAX_EPOOL > 0U)
251#if (defined QF_ON_CONTEXT_SW) || (defined Q_SPY)
259#ifdef QF_ON_CONTEXT_SW
270#ifdef QF_ON_CONTEXT_SW
309 QS::beginRec_(QS_REC_NUM_(QS_QF_RUN));
319#ifdef QF_ON_CONTEXT_SW
348 std::uint_fast16_t
const qLen,
350 std::uint_fast16_t
const stkSize,
351 void const *
const par)
360 (stkSto ==
nullptr));
363 m_prio =
static_cast<std::uint8_t
>(prioSpec & 0xFFU);
364 m_pthre =
static_cast<std::uint8_t
>(prioSpec >> 8U);
Private attributes of the QK kernel.
std::uint_fast8_t nextPrio
std::uint_fast8_t lockCeil
Active object class (based on the QHsm implementation strategy)
void start(QPrioSpec const prioSpec, QEvtPtr *const qSto, std::uint_fast16_t const qLen, void *const stkSto, std::uint_fast16_t const stkSize, void const *const par)
void init(void const *const e, std::uint_fast8_t const qsId) override
Virtual function to take the top-most initial transition in the state machine.
static QActive * registry_[QF_MAX_ACTIVE+1U]
void register_() noexcept
std::uint_fast8_t getPThre() const noexcept
void dispatch(QEvt const *const e, std::uint_fast8_t const qsId) override
Virtual function to dispatch an event to the state machine.
QACTIVE_EQUEUE_TYPE m_eQueue
QEvt const * get_() noexcept
std::uint_fast8_t getPrio() const noexcept
QF Active Object Framework.
void gc(QEvt const *const e) noexcept
Recycle a mutable (mutable) event.
void bzero_(void *const start, std::uint_fast16_t const len) noexcept
preemptive, non-blocking kernel
QSchedStatus schedLock(std::uint_fast8_t const ceiling) noexcept
void schedUnlock(QSchedStatus const prevCeil) noexcept
QEvt const * QEvtPtr
Pointer to const event instances passed around in QP Framework.
std::uint_fast8_t QSchedStatus
std::uint16_t QPrioSpec
Priority specification for Active Objects in QP.
void QK_activate_() noexcept
std::uint_fast8_t QK_sched_act_(QP::QActive const *const act, std::uint_fast8_t const pthre_in) noexcept
std::uint_fast8_t QK_sched_() noexcept
void QK_activate_() noexcept
std::uint_fast8_t QK_sched_() noexcept
int int_t
Alias for assertion-ID numbers in QP assertions and return from QP::QF::run()
#define Q_UNUSED_PAR(par_)
Helper macro to clearly mark unused parameters of functions.
void QF_onContextSw(QP::QActive *prev, QP::QActive *next)
#define QF_MAX_ACTIVE
Maximum # Active Objects in the system (1..64)
Internal (package scope) QP/C++ interface.
#define QK_ISR_CONTEXT_()
#define QF_INT_DISABLE()
Disable interrupts.
#define QF_INT_ENABLE()
Enable interrupts.
QS/C++ dummy public interface.
#define QS_2U8_PRE(data1_, data2_)
#define QS_BEGIN_PRE(rec_, qsId_)
QP Functional Safety (FuSa) Subsystem.
#define Q_ASSERT_INCRIT(id_, expr_)
General-purpose assertion with user-specified ID number (in critical section)
#define Q_REQUIRE_INCRIT(id_, expr_)
Assertion for checking a precondition (in critical section)