Nut/OS  5.0.5
API Reference
_VSDCB Struct Reference

Internal codec control block. More...

#include <vscodec.h>

Collaboration diagram for _VSDCB:
[legend]

Data Fields

int dcb_pbstat
 Playback status.
uint32_t dcb_scmd
 Requested command flags, see VSREQ_ flags.
int dcb_rvol
 Volume of right channel.
int dcb_lvol
 Volume of left channel.
int dcb_treb
 Treble enhancement *1.5dB.
int dcb_tfin
 Treble limit frequency *1000Hz.
int dcb_bass
 Bass enhancement *1dB.
int dcb_bfin
 Bass limit frequency *10Hz.
uint16_t dcb_sinefreq
 Requested beep frequency.
uint32_t dcb_pbwlo
 Playback buffer low watermark.
uint32_t dcb_pbwhi
 Playback buffer high watermark.
uint32_t dcb_wtmo
 Write timeout.
uint32_t dcb_rtmo
 Read timeout.
HANDLE dcb_bufque
 Buffer change event.
HANDLE dcb_feedme
 Decoder hungry event.
uint16_t dcb_codec_ver
 Chip version, 1001, 1002, 1053 etc.
char dcb_codec_rev
 Chip revision character.
uint32_t dcb_dec_caps
 Decoder capabilities.
uint32_t dcb_cod_caps
 Encoder capabilities.
uint32_t dcb_midi_caps
 MIDI capabilities.
uint32_t dcb_cod_mode
 Encoder mode.
int(* dcb_isready )(void)
int(* dcb_sendcmd )(void *, size_t)
int(* dcb_senddata )(const uint8_t *, size_t)
int(* dcb_control )(int req, void *conf)
int(* dcb_recvdata )(void *, size_t)
int dcb_crvol
 Current volume of right channel.
int dcb_srvol
 Requested volume of right channel.
int dcb_clvol
 Current volume of left channel.
int dcb_slvol
 Requested volume of left channel.
int dcb_ctreb
 Current bass enhancement.
int dcb_streb
 Requested bass enhancement.
int dcb_ctfin
 Current bass frequency.
int dcb_stfin
 Requested bass frequency.
int dcb_cbass
 Current treble enhancement.
int dcb_sbass
 Requested bass enhancement.
int dcb_cbfin
 Current treble frequency.
int dcb_sbfin
 Requested treble frequency.

Detailed Description

Internal codec control block.


Field Documentation

Requested command flags, see VSREQ_ flags.

Referenced by FeederThread(), VsCodecIOCtl(), and VsCodecRead().

Volume of right channel.

Referenced by FeederThread(), VsCodecIOCtl(), and VsDecoderSetVolume().

Volume of left channel.

Referenced by FeederThread(), VsCodecIOCtl(), and VsDecoderSetVolume().

Treble enhancement *1.5dB.

Referenced by FeederThread(), VsCodecIOCtl(), and VsDecoderSetBass().

Treble limit frequency *1000Hz.

Referenced by FeederThread(), VsCodecIOCtl(), and VsDecoderSetBass().

Bass enhancement *1dB.

Referenced by FeederThread(), VsCodecIOCtl(), and VsDecoderSetBass().

Bass limit frequency *10Hz.

Referenced by FeederThread(), VsCodecIOCtl(), and VsDecoderSetBass().

Requested beep frequency.

Referenced by FeederThread(), and VsCodecIOCtl().

Playback buffer low watermark.

Referenced by FeederThread(), VsCodecIOCtl(), and VsDecoderBufferInit().

Playback buffer high watermark.

Referenced by FeederThread(), VsCodecIOCtl(), and VsDecoderBufferInit().

Read timeout.

Referenced by VsCodecRead().

Buffer change event.

Referenced by FeederThread(), VsCodecRead(), and VsCodecWrite().

Chip version, 1001, 1002, 1053 etc.

Chip revision character.

Decoder capabilities.

Referenced by VsCodecIOCtl().

Encoder capabilities.

Referenced by VsCodecIOCtl().

MIDI capabilities.

Referenced by VsCodecIOCtl().

Encoder mode.

Referenced by VsCodecOpen(), and VsCodecRead().

int(* _VSDCB::dcb_isready)(void)

Referenced by FeederThread(), and VsCodecWaitReady().

int(* _VSDCB::dcb_sendcmd)(void *, size_t)

Referenced by VsCodecReg().

int(* _VSDCB::dcb_senddata)(const uint8_t *, size_t)

Referenced by FeederThread(), and VsCodecBeep().

int(* _VSDCB::dcb_control)(int req, void *conf)

Referenced by VsCodecIOCtl().

int(* _VSDCB::dcb_recvdata)(void *, size_t)

Referenced by FeederThread().

Current volume of right channel.

Referenced by FeederThread().

Requested volume of right channel.

Referenced by FeederThread().

Current volume of left channel.

Referenced by FeederThread().

Requested volume of left channel.

Referenced by FeederThread().

Current bass enhancement.

Requested bass enhancement.

Current bass frequency.

Requested bass frequency.

Current treble enhancement.

Requested bass enhancement.

Current treble frequency.

Requested treble frequency.


The documentation for this struct was generated from the following files: