modified for VS1033
Dependents: 11U68_MP3Player with TFTLCD 11U68_MP3Player-with-TFTLCD Mp3_1
Fork of VS1033 by
VS1053 Class Reference
#include <VS1053.h>
Public Member Functions | |
VS1053 (PinName mosiPin, PinName misoPin, PinName sckPin, PinName csPin, PinName dcsPin, PinName dreqPin, PinName rstPin, uint32_t spiFrequency=7000000) | |
Constructor of class VS1053. | |
~VS1053 () | |
Destructor of class VS1053. | |
void | hardwareReset () |
Make a hardware reset by hitting VS1053's RESET pin. | |
void | sendDataByte (uint8_t data) |
SDI Send a data byte to VS1053. | |
size_t | sendDataBlock (uint8_t *data, size_t length) |
SDI Send a data block specified as a pointer to VS1053. | |
bool | stop () |
Attempt a termination of playing. | |
uint16_t | readReg (uint8_t) |
Read an SCI (Serial Control Interface) register entry. |
Detailed Description
Class VS1053.
Drives VLSI's mp3/midi codec chip.
Definition at line 31 of file VS1053.h.
Constructor & Destructor Documentation
VS1053 | ( | PinName | mosiPin, |
PinName | misoPin, | ||
PinName | sckPin, | ||
PinName | csPin, | ||
PinName | dcsPin, | ||
PinName | dreqPin, | ||
PinName | rstPin, | ||
uint32_t | spiFrequency = 7000000 |
||
) |
Constructor of class VS1053.
Definition at line 11 of file VS1053.cpp.
~VS1053 | ( | ) |
Destructor of class VS1053.
Definition at line 30 of file VS1053.cpp.
Member Function Documentation
void hardwareReset | ( | ) |
Make a hardware reset by hitting VS1053's RESET pin.
Definition at line 62 of file VS1053.cpp.
uint16_t readReg | ( | uint8_t | addr ) |
Read an SCI (Serial Control Interface) register entry.
- Returns:
- Register value or 0000h when invalid address was specified.
Definition at line 189 of file VS1053.cpp.
size_t sendDataBlock | ( | uint8_t * | data, |
size_t | length | ||
) |
SDI Send a data block specified as a pointer to VS1053.
- Returns:
- Data length successfully sent.
Definition at line 126 of file VS1053.cpp.
void sendDataByte | ( | uint8_t | data ) |
SDI Send a data byte to VS1053.
Definition at line 107 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 148 of file VS1053.cpp.
Generated on Sat Jul 23 2022 07:29:08 by 1.7.2