#include <vstypes.h>
Include dependency graph for player.h:
Go to the source code of this file.
Definition in file player.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Actions for keypresses.
Definition at line 32 of file player.h. 00032 { 00033 ke_null = 0, 00034 ke_previous, 00035 ke_next, 00036 ke_rewind, 00037 ke_forward, 00038 ke_volumeUp, 00039 ke_volumeDown, 00040 ke_earSpeaker, 00041 ke_earSpeakerToggle, 00042 ke_randomToggle, 00043 ke_randomToggleNewSong, 00044 ke_pauseToggle, 00045 ke_powerOff, 00046 ke_ff_faster, 00047 ke_ff_slower, 00048 ke_ff_off, 00049 ke_volumeUp2, 00050 ke_volumeDown2, 00051 };
|
|
Cleans unused sectors from FAT16/FAT32 disks. If tryBoot is non-zero, checks for VS1000_B.RUN. |
|
Implements codec service Output function. Implements pause mode (player.pauseOn) by inserting zero samples, and low-power pause mode (USBSuspend()) between key presses. Updates audio sample rate. Converts mono input to stereo for AudioOutputSamples(). |
|
Implements codec service Read function. Uses the Read() hook function. |
|
Implements codec service Seek function. Uses Seek() and Tell() hook functions. |
|
Hook: performs actions for key events. Default: RealKeyEventHandler. |
|
Performs key scanning of 5 keys on GPIO0 and the power key. Processes the results to generate short and long key press events, then calls the KeyEventHandler with the appropriate key events. Short press is generated if press was shorter than 16 ui ticks (1 second). Long presses are generated when press lasts longer than 16 ui ticks. Long press generates events 16 times a second unless the KEY_LONG_ONESHOT is added. Any key combination containing power key requires longer press (2 seconds). KeyScan also cancels play and resets pause mode if USB is attached. |
|
Hook: Implements MassStorage. Default: RealMassStorage. |
|
Updates volume using player.volume and player.volumeOffset. |
|
Waits for UART TX ready, then writes next byte. |
|
Read GPIO0[0:7] values. Turns the bits to GPIO mode and restores the state afterwards. |
|
Performs actions for key events. |
|
Implements MassStorage. |
|
Activates low-power mode. Wakes up if changes in USB pin or GPIO0[0:4] pins are detected. Restores USB voltages.
|
|
Non-zero if USBN is low for at least two cycles in 20000 cycles. Note: this routine may be too slow in some applications, so you can check (PERIP(SCI_STATUS) & SCISTF_USB_DN) == 0 directly. |
|
Hook: Activate low-power mode. Default: RealUSBSuspend.
|
|
The default idle hook function that scans keys 16 timer per second. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Structure used by the default firmwares play loop. |
|
|
|
|
|
|
|
|
|
|
|
Helper array to quickly reverse bits in a byte. |
|
Latin1-compatible font stored in Vertical format, LSb is the top pixel. 3 words (6 bytes) per character, high 8 bits first, add one empty line as space between characters. Contains block characters and special symbols in codes 0..31 and 128..159. |