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


Go to the source code of this file.
Data Structures | |
| struct | clockhand |
| struct | clockface |
Macros | |
| #define | CH_HOURS 1 |
| #define | CH_MINUTES 2 |
| #define | CH_SECONDS 3 |
| #define | CH_MS 4 |
| #define | CH_MAX_HOURS 12 |
| #define | CH_MAX_MINUTES 60 |
| #define | CH_MAX_SECONDS 60 |
| #define | CH_MAX_MS 1000 |
| #define | CH_MAX_DEGREES 360 |
| #define | CH_ANGLE_OFFSET 90.0 |
| #define | PI_PI 3.142159 |
Typedefs | |
| typedef struct clockhand | clockhand |
| typedef struct clockface | clockface |
Functions | |
| clockhand * | CHCreateClockHand (point *center, ushort radius, uchar type) |
| void | CHCalculateAngle (clockhand *ch, clocktime *tm) |
| shape * | CHToShape (clockhand *ch) |
| void | CHDestroyClockHand (clockhand *ch) |
| void | CHDestroyClockHandShape (clockhand *ch) |
| clockface * | CFCreateClockFace (ushort numHands, clockhand **chs, clocktime *th) |
| void | CFDestroyClockFace (clockface *cf) |
| void | CFUpdateTime (clockface *cf) |
| shape ** | CFToShapes (clockface *cf) |
| void | CFDestroyShapes (clockface *cf) |
| #define CH_ANGLE_OFFSET 90.0 |
Definition at line 27 of file clock.h.
Referenced by CHToShape().
| #define CH_HOURS 1 |
Definition at line 16 of file clock.h.
Referenced by CHCalculateAngle(), and demonstrateClock().
| #define CH_MINUTES 2 |
Definition at line 17 of file clock.h.
Referenced by CHCalculateAngle(), and demonstrateClock().
| #define CH_MS 4 |
Definition at line 19 of file clock.h.
Referenced by CHCalculateAngle(), and demonstrateClock().
| #define CH_SECONDS 3 |
Definition at line 18 of file clock.h.
Referenced by CHCalculateAngle(), and demonstrateClock().
| #define PI_PI 3.142159 |
Definition at line 29 of file clock.h.
Referenced by CHToShape().
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 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().

