|
EE445M RTOS
Taken at the University of Texas Spring 2015
|

Go to the source code of this file.
Functions | |
| shape * | CHToShape (clockhand *ch) |
| clockhand * | CHCreateClockHand (point *center, ushort radius, uchar type) |
| void | CHCalculateAngle (clockhand *ch, clocktime *tm) |
| void | CHDestroyClockHand (clockhand *ch) |
| void | CHDestroyClockHandShape (clockhand *ch) |
| clockface * | CFCreateClockFace (ushort numHands, clockhand **chs, clocktime *th) |
| void | CFDestroyClockFace (clockface *cf) |
| clockhand * | CHDuplicateClockHand (clockhand *ch) |
| void | CFUpdateTime (clockface *cf) |
| shape ** | CFToShapes (clockface *cf) |
| void | CFDestroyShapes (clockface *cf) |
Definition at line 91 of file clock.c.
References clockface::hands, clockface::numHands, and clockface::timehandle.
Referenced by demonstrateClock().

| void CFDestroyClockFace | ( | clockface * | cf | ) |
Definition at line 112 of file clock.c.
References clockface::hands.
Referenced by demonstrateClock().

| void CFDestroyShapes | ( | clockface * | cf | ) |
Definition at line 146 of file clock.c.
References CHDestroyClockHandShape(), clockface::hands, clockface::numHands, and clockface::shapeBuffer.
Referenced by demonstrateClock().


Definition at line 135 of file clock.c.
References CHToShape(), clockface::hands, clockface::numHands, and clockface::shapeBuffer.
Referenced by demonstrateClock().


| void CFUpdateTime | ( | clockface * | cf | ) |
Definition at line 128 of file clock.c.
References CHCalculateAngle(), clockface::hands, clockface::numHands, and clockface::timehandle.
Referenced by demonstrateClock().


Definition at line 46 of file clock.c.
References clockhand::angle, CH_HOURS, CH_MINUTES, CH_MS, CH_SECONDS, clocktime::hours, clocktime::minutes, clocktime::ms, clocktime::seconds, and clockhand::type.
Referenced by CFUpdateTime().

Definition at line 32 of file clock.c.
References clockhand::angle, clockhand::center, clockhand::pointOnCircumference, clockhand::radius, shape_duplicate_point(), and clockhand::type.
Referenced by demonstrateClock().


| void CHDestroyClockHand | ( | clockhand * | ch | ) |
Definition at line 71 of file clock.c.
References clockhand::center, and clockhand::pointOnCircumference.
Referenced by demonstrateClock().

| void CHDestroyClockHandShape | ( | clockhand * | ch | ) |
Definition at line 80 of file clock.c.
References shape::points, and clockhand::shapeBuffer.
Referenced by CFDestroyShapes().

Definition at line 117 of file clock.c.
References clockhand::center, clockhand::pointOnCircumference, clockhand::radius, shape_duplicate_point(), shape_duplicate_shape(), clockhand::shapeBuffer, and clockhand::type.

Definition at line 15 of file clock.c.
References clockhand::angle, clockhand::center, CH_ANGLE_OFFSET, PI_PI, clockhand::pointOnCircumference, clockhand::radius, shape_create(), clockhand::shapeBuffer, point::x, and point::y.
Referenced by CFToShapes().

