MD_YX5300 Library
1.3
Library for YX5300 MP3 player IC
|
#include <MD_YX5300.h>
Public Attributes | |
status_t | code |
code for operation | |
uint16_t | data |
data returned | |
Status return structure specification.
Used to return (through callback or getStatus() method) the status value of the last device request.
Device commands will always receive a STS_ACK_OK if the message was received correctly. Some commands, notably query requests, will also be followed by an unsolicited message containing the status or information data. These methods are listed below:
Method | Return Status (code) | Return Data (data) |
---|---|---|
Unsolicited mesg | STS_FILE_END | Index number of the file just completed. |
Unsolicited mesg | STS_INIT | Device initialization complete - file store types available (0x02 for TF). |
Unsolicited mesg | STS_ERR_FILE | File index |
queryStatus() | STS_STATUS | Current status. High byte is file store (0x02 for TF); low byte 0x00=stopped, 0x01=play, 0x02=paused. |
queryVolume() | STS_VOLUME | Current volume level [0..MAX_VOLUME]. |
queryFilesCount() | STS_TOT_FILES | Total number of files on the TF card. |
queryFile() | STS_PLAYING | Index number of the current file playing. |
queryFolderFiles() | STS_FLDR_FILES | Total number of files in the folder. |
queryFolderCount() | STS_TOT_FLDR | Total number of folders on the TF card. |
queryEqualizer() | STS_EQUALIZER | Current equalizer mode [0..5]. |