stp_cyc

istp_cyc

Outline

Stop cyclic handler operation.

C format

 ER      stp_cyc (ID cycid);
 ER      istp_cyc (ID cycid);
Parameter(s)

I/O

Parameter

Description

I

 ID      cycid;
ID number of the cyclic handler.



Explanation

This service call moves the cyclic handler specified by parameter cycid from the operational state (STA state) to non-operational state (STP state).

As a result, the target cyclic handler is excluded from activation targets of the RI600PX until issuance of sta_cyc or ista_cyc.

Note This service call does not perform queuing of stop requests. If the target cyclic handler has been moved to the non-operational state (STP state), therefore, no processing is performed but it is not handled as an error.

Return value

Macro

Value

Description

E_OK

0

Normal completion.

E_ID

-18

Invalid ID number.

- cycid < 0

- cycid > VTMAX_CYH

E_CTX

-25

Context error.

- This service call was issued in the CPU locked state.

- This service call was issued in the status "PSW.IPL > kernel interrupt mask level".

Note When the istp_cyc is issued from task or the stp_cyc is issued from non-task, the context error is not detected and normal operation of the system is not guaranteed.

E_NOEXS

-42

Non-existent object.

- The cyclic handler specified by cycid does not exist.