PxGetTimeslices()

Return timeslices.

APPLIES TO

8.2.0

SYNOPSIS
PxTicks_t PxGetTimeslices (void);
RETURN VALUES
  • Reload value for the calling task’s timeslice mechanism

DESCRIPTION

PxGetTimeslices returns the reload value for the calling task’s timeslice mechanism.

IMPLEMENTATION GUIDELINES
Before call
  • No checks necessary.

After call
  • No checks necessary.

Best Practice
  • No restrictions.

SEE ALSO
USAGE
#include "pxdef.h"

PxSetTimeslices(7);

if (PxGetTimeslices() != 7) {
    // Report error
}