Functions
Usbd_audio_out_if_Private_Functions
Collaboration diagram for Usbd_audio_out_if_Private_Functions:

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...
 

Detailed Description

Function Documentation

static uint8_t AudioCmd ( uint8_t *  pbuf,
uint32_t  size,
uint8_t  cmd 
)
static

AudioCmd Play, Stop, Pause or Resume current file.

Parameters
pbufaddress from which file shoud be played.
sizesize of the current buffer/file.
cmdcommand to be executed, can be AUDIO_CMD_PLAY , AUDIO_CMD_PAUSE, AUDIO_CMD_RESUME or AUDIO_CMD_STOP.
Return values
AUDIO_OKif all operations succeed, AUDIO_FAIL else.

Definition at line 162 of file usbd_audio_out_if.c.

static uint8_t DeInit ( uint32_t  options)
static

DeInit Free all resources used by low layer and stops audio-play function.

Parameters
optionsoptions passed to low layer function.
Return values
AUDIO_OKif all operations succeed, AUDIO_FAIL else.

Definition at line 145 of file usbd_audio_out_if.c.

static uint8_t GetState ( void  )
static

GetState Return the current state of the audio machine.

Parameters
None
Return values
CurrentState.

Definition at line 304 of file usbd_audio_out_if.c.

static uint8_t Init ( uint32_t  AudioFreq,
uint32_t  Volume,
uint32_t  options 
)
static

Init Initialize and configures all required resources for audio play function.

Parameters
AudioFreqStatrtup audio frequency.
VolumeStartup volume to be set.
optionsspecific options passed to low layer function.
Return values
AUDIO_OKif all operations succeed, AUDIO_FAIL else.

Definition at line 113 of file usbd_audio_out_if.c.

static uint8_t MuteCtl ( uint8_t  cmd)
static

MuteCtl Mute or Unmute the audio current output.

Parameters
cmdcan be 0 to unmute, or 1 to mute.
Return values
AUDIO_OKif all operations succeed, AUDIO_FAIL else.

Definition at line 271 of file usbd_audio_out_if.c.

static uint8_t PeriodicTC ( uint8_t  cmd)
static
Parameters

Definition at line 290 of file usbd_audio_out_if.c.

static uint8_t VolumeCtl ( uint8_t  vol)
static

VolumeCtl Set the volume level in %.

Parameters
volvolume level to be set in % (from 0% to 100%)
Return values
AUDIO_OKif all operations succeed, AUDIO_FAIL else.

Definition at line 253 of file usbd_audio_out_if.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:28