EE445M RTOS
Taken at the University of Texas Spring 2015
|
Go to the source code of this file.
Functions | |
clocktime * | TKCreateTimeHandle (char mode) |
void | TKDestroy (clocktime *tm) |
char * | TKToString (clocktime *tm) |
void | TKIncrementHours (clocktime *tm, short hours) |
void | TKIncrementMinutes (clocktime *tm, short minutes) |
void | TKIncrementSeconds (clocktime *tm, short seconds) |
void | TKIncrementMS (clocktime *tm, short ms) |
short | TKValidateTime (clocktime *tm) |
void | TKCleanupTime (clocktime *tm) |
clocktime * | TKDuplicateTimeHandle (clocktime *th) |
void TKCleanupTime | ( | clocktime * | tm | ) |
Definition at line 147 of file timekit.c.
References clocktime::hours, clocktime::minutes, clocktime::ms, clocktime::seconds, TK_TIME_INVALID_HOURS, TK_TIME_INVALID_MINUTES, TK_TIME_INVALID_MS, TK_TIME_INVALID_SECONDS, TK_TIME_VALID, and TKValidateTime().
clocktime* TKCreateTimeHandle | ( | char | mode | ) |
Definition at line 14 of file timekit.c.
References clocktime::hours, clocktime::minutes, clocktime::mode, clocktime::ms, and clocktime::seconds.
Referenced by demonstrateClock().
void TKDestroy | ( | clocktime * | tm | ) |
Definition at line 24 of file timekit.c.
Referenced by demonstrateClock().
Definition at line 170 of file timekit.c.
References clocktime::hours, clocktime::minutes, clocktime::mode, clocktime::ms, and clocktime::seconds.
void TKIncrementHours | ( | clocktime * | tm, |
short | hours | ||
) |
Definition at line 55 of file timekit.c.
References clocktime::hours, and TK_NUM_HOURS.
Referenced by demonstrateClock(), main(), and TKIncrementMinutes().
void TKIncrementMinutes | ( | clocktime * | tm, |
short | minutes | ||
) |
Definition at line 69 of file timekit.c.
References clocktime::minutes, TK_NUM_MINUTES, and TKIncrementHours().
Referenced by demonstrateClock(), main(), and TKIncrementSeconds().
void TKIncrementMS | ( | clocktime * | tm, |
short | ms | ||
) |
Definition at line 109 of file timekit.c.
References clocktime::ms, TK_NUM_MS, and TKIncrementSeconds().
Referenced by main(), and pseudointerrupt().
void TKIncrementSeconds | ( | clocktime * | tm, |
short | seconds | ||
) |
Definition at line 89 of file timekit.c.
References clocktime::seconds, TK_NUM_SECONDS, and TKIncrementMinutes().
Referenced by main(), and TKIncrementMS().
char* TKToString | ( | clocktime * | tm | ) |
Definition at line 31 of file timekit.c.
References clocktime::hours, clocktime::minutes, clocktime::mode, clocktime::ms, clocktime::printBuffer, clocktime::seconds, TK_PRINT_MODE_HOURS_MINUTES, TK_PRINT_MODE_HOURS_MINUTES_SECONDS, and TK_PRINT_MODE_HOURS_MINUTES_SECONDS_MS.
Referenced by main().
short TKValidateTime | ( | clocktime * | tm | ) |
Definition at line 131 of file timekit.c.
References clocktime::hours, clocktime::minutes, clocktime::mode, clocktime::ms, clocktime::seconds, TK_NUM_HOURS, TK_NUM_MINUTES, TK_NUM_MS, TK_NUM_SECONDS, TK_TIME_INVALID_HOURS, TK_TIME_INVALID_MINUTES, TK_TIME_INVALID_MS, TK_TIME_INVALID_SECONDS, and TK_TIME_VALID.
Referenced by main(), and TKCleanupTime().