CARDSetIconSpeed

C Specification

#include <revolution/card.h>
CARDSetIconSpeed(stat, n, f) \
((stat)->iconSpeed  = \
(u16) (((stat)->iconSpeed  & ~(CARD_STAT_SPEED_MASK << (2 * (n)))) | ((f) << (2 * (n)))))

Arguments

stat Pointer to a CARDStat structure.
n Sequence number of the icon animation.
f Three wait time lengths can be set between each animation frame: CARD_STAT_SPEED_FASTCARD_STAT_SPEED_MIDDLE, or  CARD_STAT_SPEED_SLOW. The speed is determined by the screen refresh rate (60Hz or 50Hz). The wait time lasts the following number of refresh frames:
CARD_STAT_SPEED_FAST  4 frames
CARD_STAT_SPEED_MIDDLE  8 frames
CARD_STAT_SPEED_SLOW  12 frames

Use CARD_STAT_SPEED_END to terminate the animation if you are using 8 or fewer icons.

Return Values

None.

Description

Sets the speed of the Memory Card icon animation to the CARDStat structure.

Note: This function is provided for debugging. Do not use in programs.

See Also

Revision History

2006/03/01 Initial version.


CONFIDENTIAL