17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Built-in Functions<br />

Examples:<br />

Example Files:<br />

Also See:<br />

rtc_alarm_write(&datetime);<br />

None<br />

rtc_read(), rtc_alarm_read(), rtc_alarm_write(), setup_rtc_alarm(),<br />

rtc_write(), setup_rtc()<br />

rtc_read( )<br />

Syntax:<br />

Parameters:<br />

rtc_read(&datetime);<br />

datetime- A structure that will contain the values returned by the RTCC<br />

module.<br />

Structure used in read and write functions are defined in the device<br />

header file as rtc_time_t.<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

void<br />

Reads the current value of Time and Date from the RTCC module and<br />

stores the structure date time.<br />

Devices that have the RTCC module.<br />

Nothing.<br />

rtc_read(&datetime);<br />

ex_rtcc.c<br />

rtc_read(), rtc_alarm_read(), rtc_alarm_write(), setup_rtc_alarm(),<br />

rtc_write(), setup_rtc()<br />

rtc_write( )<br />

Syntax:<br />

Parameters:<br />

rtc_write(&datetime);<br />

datetime- A structure that will contain the values to be written to the<br />

RTCC module.<br />

257

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!