Ccpu_Getcountermicros - Mitsubishi Electric MELIPC MI5000 Series Programming Manual

Vxworks
Hide thumbs Also See for MELIPC MI5000 Series:
Table of Contents

Advertisement

CCPU_GetCounterMicros

Acquires a 1 μs counter value of a MELIPC.
Format
short CCPU_GetCounterMicros(unsigned long* pulMicros)
Argument
Argument
pulMicros
Description
• This function acquires a 1 μs counter value of a MELIPC, and stores it in the 1 μs counter value storage destination
(pulMicros).
• The 1 μs counter value increases by 1 every 1 μs after the power is turned ON.
• The count cycles between 0 and 4294967295.
Return value
Return value
0(0000H)
-264(FEF8H)
For details on error codes, refer to the following section.
Page 116 Function error codes
Relevant function
Page 41 CCPU_GetCounterMillis
Page 83 CCPU_GetCounterMicros_ISR
Page 84 CCPU_GetCounterMillis_ISR
3 DETAILS OF FUNCTIONS
40
3.1 C Controller Module Dedicated Functions
Name
1μs counter value storage
destination
Description
Normal
Pointer error
Description
Specify the storage destination of the 1μs counter value.
IN/OUT
OUT

Advertisement

Table of Contents
loading

Table of Contents