Nut/OS  4.10.3
API Reference
hxcodec.c File Reference
#include <sys/atom.h>
#include <sys/event.h>
#include <sys/timer.h>
#include <sys/heap.h>
#include <cfg/arch/gpio.h>
#include <cfg/audio.h>
#include <dev/irqreg.h>
#include <contrib/hxmp3/mp3dec.h>
#include <contrib/hxmp3/hermite.h>
#include <dev/hxcodec.h>
#include <dev/tlv320dac.h>
#include <sys/bankmem.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <memdebug.h>
Include dependency graph for hxcodec.c:

Go to the source code of this file.

Data Structures

struct  _HXDCB
struct  _MP3PLAYERINFO

Defines

#define NUT_THREAD_HXCODEC0STACK   768
#define HXCODEC0_MAX_OUTPUT_BUFSIZ   16384
 Output buffer size limit.
#define DAC_OUTPUT_RATE   8000
#define MP3_BUFSIZ   (4 * MAINBUF_SIZE)

Typedefs

typedef struct _HXDCB HXDCB
typedef struct _MP3PLAYERINFO MP3PLAYERINFO

Functions

void FeederThread (void *arg)

Variables

NUTDEVICE devHelixCodec
 Device information structure.

Internal Command Flags

#define HXREQ_PLAY   0x00000001
 Force immediate player start.
#define HXREQ_CANCEL   0x00000002
 Force immediate player stop.
#define HXREQ_VOLUPD   0x00000004
 Volume update.
#define HXREQ_BEEP   0x00000008
 Sine wave test.

Define Documentation

#define NUT_THREAD_HXCODEC0STACK   768

Definition at line 82 of file hxcodec.c.

#define HXCODEC0_MAX_OUTPUT_BUFSIZ   16384

Output buffer size limit.

Definition at line 87 of file hxcodec.c.

#define DAC_OUTPUT_RATE   8000

Definition at line 94 of file hxcodec.c.

#define MP3_BUFSIZ   (4 * MAINBUF_SIZE)

Definition at line 102 of file hxcodec.c.

#define HXREQ_PLAY   0x00000001

Force immediate player start.

Definition at line 114 of file hxcodec.c.

Referenced by FeederThread().

#define HXREQ_CANCEL   0x00000002

Force immediate player stop.

Definition at line 116 of file hxcodec.c.

Referenced by FeederThread().

#define HXREQ_VOLUPD   0x00000004

Volume update.

Definition at line 118 of file hxcodec.c.

Referenced by FeederThread().

#define HXREQ_BEEP   0x00000008

Sine wave test.

Definition at line 120 of file hxcodec.c.