test1
Fork of VS1053 by
Embed:
(wiki syntax)
Show/hide line numbers
player.h
00001 #ifndef PLAYER_H 00002 #define PLAYER_H 00003 #include "vs10xx.h" 00004 00005 /** Playing states definations. */ 00006 volatile typedef enum { 00007 PS_STOP, // Player stop 00008 PS_PLAY, // Start to player 00009 } playerStatetype; 00010 00011 /** Control states definations. */ 00012 volatile typedef enum 00013 { 00014 CS_EMPTY = 0, // Have no control 00015 CS_PLAYPAUSE, // Play/pause button pressed 00016 CS_RECORDING, // Play/pause button long pressed 00017 CS_UP, // Up button pressed 00018 CS_DOWN, // Down button pressed 00019 CS_NEXT, // Right button pressed 00020 CS_PREV, // Left button pressed 00021 } ctrlStatetype; 00022 00023 class Player 00024 { 00025 public: 00026 void begin(void); 00027 void playFile(char *file); 00028 void stop(void); 00029 private: 00030 00031 }; 00032 00033 #endif 00034
Generated on Tue Jul 12 2022 18:33:04 by
1.7.2
