Semaphore based wait and sync for the mp3 play

Dependents:   RTOS-VS1053b-mp3_semaphore

VS1053t.h

Committer:
takashikojo
Date:
2012-03-19
Revision:
0:d421471bef92

File content as of revision 0:d421471bef92:

/* mbed VLSI VS1053t library 
 * 
 * Thread based VS1053 class inherited from VS1053b
 *
 */

#include "VS1053.h"

class VS1053t : public VS1053 {
public :
    VS1053t(
        PinName mosi,
        PinName miso,
        PinName sck,
        PinName cs,
        PinName rst,
        PinName dreq,
        PinName dcs,
        char*   buffer,
        int     buffer_size,
        bool thread = false 
    );
    unsigned int waitBuffer(unsigned int size, uint32_t time) ;
    unsigned char bufferGetByte(void) ;
private :
    int WaitingSize ;
    bool thread ;

} ;