1

Dependents:   internet_radio_leo

Fork of VS1053 by Vassilis Serasidis

Embed: (wiki syntax)

« Back to documentation index

VS1053 Class Reference

VS1053 Class Reference

Class VS1053. More...

#include <VS1053.h>

Public Member Functions

 VS1053 (PinName mosiPin, PinName misoPin, PinName sckPin, PinName csPin, PinName bsyncPin, PinName dreqPin, PinName rstPin, uint32_t spiFrequency=1000000)
 ==================================================== Dec 21 2013, kayeks == VS1053.cpp =========================================================================== Just a simple library for VLSI's mp3/midi codec chip

  • Minimal and simple implementation (and dirty too)

 ~VS1053 ()
 Destructor of class VS1053.
void hardwareReset ()
 Make a hardware reset by hitting VS1053's RESET pin.
void modeSwitch (void)
 Patch for some LC Technology VS1053 board with "no sound" problem.
void sendDataByte (char data)
 Send a data byte to VS1053.
size_t sendDataBlock (char *data, size_t length)
 Send a data block specified as a pointer to VS1053.
void clockUp ()
 Change VS1053's PLL setting for speedup.
bool sendCancel ()
 Send cancel request to VS1053.
bool stop ()
 Attempt a termination of playing.

Detailed Description

Class VS1053.

Drives VLSI's mp3/midi codec chip.

Definition at line 18 of file VS1053.h.


Constructor & Destructor Documentation

VS1053 ( PinName  mosiPin,
PinName  misoPin,
PinName  sckPin,
PinName  csPin,
PinName  bsyncPin,
PinName  dreqPin,
PinName  rstPin,
uint32_t  spiFrequency = 1000000 
)

==================================================== Dec 21 2013, kayeks == VS1053.cpp =========================================================================== Just a simple library for VLSI's mp3/midi codec chip

  • Minimal and simple implementation (and dirty too)

Modified on 05 September 2015 by Vassilis Serasidis.

  • Added a patch for playing MP3 files on some "LC Technology" VS1053 boards. Constructor of class VS1053.

Definition at line 18 of file VS1053.cpp.

~VS1053 (  )

Destructor of class VS1053.

Definition at line 38 of file VS1053.cpp.


Member Function Documentation

void clockUp (  )

Change VS1053's PLL setting for speedup.

Definition at line 92 of file VS1053.cpp.

void hardwareReset (  )

Make a hardware reset by hitting VS1053's RESET pin.

Definition at line 42 of file VS1053.cpp.

void modeSwitch ( void   )

Patch for some LC Technology VS1053 board with "no sound" problem.

5 September 2015 bby Vassilis Serasidis

Definition at line 52 of file VS1053.cpp.

bool sendCancel (  )

Send cancel request to VS1053.

Returns:
Zero at failure, non-zero at success.

Definition at line 101 of file VS1053.cpp.

size_t sendDataBlock ( char *  data,
size_t  length 
)

Send a data block specified as a pointer to VS1053.

Returns:
Data length successfully sent.

Definition at line 74 of file VS1053.cpp.

void sendDataByte ( char  data )

Send a data byte to VS1053.

Definition at line 64 of file VS1053.cpp.

bool stop (  )

Attempt a termination of playing.

Please call this repeatedly during data stream tramsission until it successes.

Returns:
Zero at failure, non-zero at success.

Definition at line 118 of file VS1053.cpp.