NPA_Micro_Delay

Delays a set number of microseconds for use in allowing for interface delays, etc.

Thread Context:Non-Blocking
Requirements:Maximum count of 10,000 microseconds (10 milliseconds)

Syntax

    LONG NPA_Micro_Delay (
       LONG   microseconds
    );
    
    

Parameters

microseconds
(IN) The number (between 0 and 10,000, inclusive) of microseconds to delay.

Return Values

The following table lists return values and descriptions.

zero

Successful

nonzero

microseconds was not a valid number

Remarks

NPA_Micro_Delay is used to delay for a short time while allowing an interface state to change, etc. The thread is not switched, and the interrupt state does not change.

This call can be made during interrupt service functions (ISRs); however, it is recommended it be used sparingly within ISRs so that interrupts are not disabled for extensive periods of time.

The resolution of this timer is approximately 1 microsecond.

CDMs can call this function, but it was primarily intended for use by HAMs.