3 DETAILS OF FUNCTION
3.1 C Intelligent Function Module Dedicated Functions
41
3
CITL_GetSwitchStatus
This function acquires the switch status of a C intelligent function module.
■ Format
short CITL_GetSwitchStatus(long* plStatusBuf, unsigned long ulBufSize)
■ Argument
■ Description
• This function acquires the switch status of a C intelligent function module, and stores it in the switch status storage
destination (plStatusBuf).
• It also acquires the information for the size specified to the switch status storage destination size (ulBufSize).
• The information to be stored in the switch status storage destination (plStatusBuf) is as follows.
■ Return value
Argument Name Description IN/OUT
plStatusBuf Switch status storage destination Specify the switch status storage destination. OUT
ulBufSize Switch status storage destination size Specify the switch status storage destination size in double word units.
(When '0' is specified, this function ends normally without processing.)
IN
Storage position Description Status
plStatusBuf[0] bit31 to 6 Reserved
bit5 to 3 MODE/SELECT switch status • 000: MODE state
• 010: NEUTRAL state
• 100: SELECT state
• Others: Reserved
bit2 to 0 Reserved
Return value Description
0 (0000H) Normal
Other than 0 (0000H) Error
For details on the error, refer to the following chapter.
Page 108 ERROR CODE LIST