Ccpu_Getrtc - Mitsubishi Electric MELIPC MI5000 Series Programming Manual

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

Advertisement

CCPU_GetRTC

Acquires the clock data (local time) of a MELIPC.
Format
short CCPU_GetRTC(short* psGetData, unsigned long ulBufSize)
Argument
Argument
Name
psGetData
Clock data storage destination
ulBufSize
Clock data storage destination
size
Description
• This function acquires the clock data (local time) of a MELIPC, and stores it in the clock data storage destination
(psGetData).
• It also acquires the information for the size specified to the clock data storage destination size (ulBufSize).
• The information to be stored in the clock data storage destination (psGetData) is as follows.
(Available range: January 1, 1980 to December 31, 2079)
psGetData
psGetData[0]
psGetData[1]
psGetData[2]
psGetData[3]
psGetData[4]
psGetData[5]
psGetData[6]
psGetData[7]
psGetData[8]
Return value
Return value
0(0000H)
-240(FF10H)
-264(FEF8H)
For details on error codes, refer to the following section.
Page 116 Function error codes
Relevant function
Page 67 CCPU_SetRTC
Description
Specify the storage destination of the clock data (local time).
Specify the clock data (local time) storage destination size in word units.
(When '0' is specified, this function ends normally without processing.)
Description
Normal
Clock data incorrect error
Pointer error
Description
Year data (1980 to 2079)
Month data (1 to 12)
Day data (1 to 31)
Hour data (0 to 23)
Minute data (0 to 59)
Second data (0 to 59)
Day data (0 to 6)
('0: Sunday, 1: Monday, 2: Tuesday, 3: Wednesday, 4: Thursday, 5: Friday, 6:
Saturday)
Time zone (Unit: minute)
Daylight saving time status flag (0 to 1)
(0: Not during daylight saving time, 1: During daylight saving time)
3.1 C Controller Module Dedicated Functions
IN/OUT
OUT
IN
3 DETAILS OF FUNCTIONS
3
49

Advertisement

Table of Contents
loading

Table of Contents