3 DETAILS OF FUNCTION
3.1 C Intelligent Function Module Dedicated Functions
43
3
CITL_GetUnitStatus
This function acquires the operating status of a C intelligent function module.
■ Format
short CITL_GetUnitStatus(long* plStatusBuf, unsigned long ulBufSize)
■ Argument
■ Description
• This function acquires the operating status of a C intelligent function module, and stores it in the operating status storage
destination (plStatusBuf).
• It also acquires the information for the size specified to the operating status storage destination size (ulBufSize).
• The information to be stored in the operating status storage destination (plStatusBuf) is as follows.
(If information to be stored is not supported, '0' is set as its status.)
■ Return value
■ Relevant function
Page 36 CITL_GetErrInfo
Argument Name Description IN/OUT
plStatusBuf Operating status storage destination Specify the storage destination of the operating status. OUT
ulBufSize Operating status storage destination
size
Specify the size of area reserved in the operating status storage destination
in double word units.
(When '0' is specified, this function ends normally without processing.)
IN
Storage position Description Status
plStatusBuf[0] bit31 to 8 Reserved
bit7 to 4
bit3 to 0
plStatusBuf[1] bit31 to 16 Reserved
bit15 to 9
bit8, 7 Time synchronization operating status • 0: Automatic synchronization
•1: Stop
bit6, 5 Reserved
bit4, 3 SD memory card status • 0: Inserted (mounted)
• 1: Inserted (unmounted)
• 2: Not inserted
bit2 Reserved
bit1
bit0 Standard ROM shutdown status • 0: Shutdown not performed
• 1: Shutdown completed
plStatusBuf[2] bit31 to 0 Index value for number of the standard ROM write cycle
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