|
Functions | |
| static uint8_t | AudioCmd (uint8_t *pbuf, uint32_t size, uint8_t cmd) |
| AudioCmd Play, Stop, Pause or Resume current file. More... | |
| static uint8_t | DeInit (uint32_t options) |
| DeInit Free all resources used by low layer and stops audio-play function. More... | |
| static uint8_t | GetState (void) |
| GetState Return the current state of the audio machine. More... | |
| static uint8_t | Init (uint32_t AudioFreq, uint32_t Volume, uint32_t options) |
| Init Initialize and configures all required resources for audio play function. More... | |
| static uint8_t | MuteCtl (uint8_t cmd) |
| MuteCtl Mute or Unmute the audio current output. More... | |
| static uint8_t | PeriodicTC (uint8_t cmd) |
| static uint8_t | VolumeCtl (uint8_t vol) |
| VolumeCtl Set the volume level in %. More... | |
|
static |
AudioCmd Play, Stop, Pause or Resume current file.
| pbuf | address from which file shoud be played. |
| size | size of the current buffer/file. |
| cmd | command to be executed, can be AUDIO_CMD_PLAY , AUDIO_CMD_PAUSE, AUDIO_CMD_RESUME or AUDIO_CMD_STOP. |
| AUDIO_OK | if all operations succeed, AUDIO_FAIL else. |
Definition at line 162 of file usbd_audio_out_if.c.
|
static |
DeInit Free all resources used by low layer and stops audio-play function.
| options | options passed to low layer function. |
| AUDIO_OK | if all operations succeed, AUDIO_FAIL else. |
Definition at line 145 of file usbd_audio_out_if.c.
|
static |
GetState Return the current state of the audio machine.
| None |
| Current | State. |
Definition at line 304 of file usbd_audio_out_if.c.
|
static |
Init Initialize and configures all required resources for audio play function.
| AudioFreq | Statrtup audio frequency. |
| Volume | Startup volume to be set. |
| options | specific options passed to low layer function. |
| AUDIO_OK | if all operations succeed, AUDIO_FAIL else. |
Definition at line 113 of file usbd_audio_out_if.c.
|
static |
MuteCtl Mute or Unmute the audio current output.
| cmd | can be 0 to unmute, or 1 to mute. |
| AUDIO_OK | if all operations succeed, AUDIO_FAIL else. |
Definition at line 271 of file usbd_audio_out_if.c.
|
static |
Definition at line 290 of file usbd_audio_out_if.c.
|
static |
VolumeCtl Set the volume level in %.
| vol | volume level to be set in % (from 0% to 100%) |
| AUDIO_OK | if all operations succeed, AUDIO_FAIL else. |
Definition at line 253 of file usbd_audio_out_if.c.