RtGetHalTimerPeriodCounts

RtGetHalTimerPeriodCounts retrieves the APIC counts per wRTOS HAL timer period.

Syntax

Copy
bool RtGetHalTimerPeriodCounts(
    [out]   ULONG *pPeriodicCounts,
    [out]   ULONG *pPeriodicCountsBase
);

Parameters

[out] pPeriodicCounts

A pointer to an ULONG in which to store the current APIC counts per wRTOS HAL timer period.

[out] pPeriodicCountsBase

A pointer to an ULONG in which to store the base APIC counts per wRTOS HAL timer period.

Return Value

If the function succeeds, it returns TRUE. If the function fails, it returns FALSE. Call GetLastError to obtain an error code.

Remarks

RtGetHalTimerPeriodCounts retrieves the current APIC counts per wRTOS HAL time period together with the base APIC counts per wRTOS HAL timer period. The base APIC counts are computed based on the APIC timer frequency and HAL timer period during wRTOS startup.

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

RtApi.h

RtApi.lib (Windows), Startup.lib (RTSS)

See Also: