#include <cfg/arch/avr.h>
#include <sys/atom.h>
#include <sys/event.h>
#include <sys/timer.h>
#include <sys/heap.h>
#include <dev/irqreg.h>
#include <dev/vs1001k.h>
#include <sys/bankmem.h>
#include <stddef.h>
Go to the source code of this file.
Defines | |
#define | VS_SCK_BIT 0 |
VS1001 serial control interface clock input bit. | |
#define | VS_SCK_PORT PORTB |
#define | VS_SCK_DDR DDRB |
#define | VS_SS_BIT 1 |
VS1001 serial data interface clock input bit. | |
#define | VS_SS_PORT PORTB |
#define | VS_SS_DDR DDRB |
#define | VS_SI_BIT 2 |
VS1001 serial control interface data input. | |
#define | VS_SI_PORT PORTB |
#define | VS_SI_DDR DDRB |
#define | VS_SO_BIT 3 |
VS1001 serial control interface data output. | |
#define | VS_SO_PIN PINB |
#define | VS_SO_DDR DDRB |
#define | VS_XCS_BIT 4 |
VS1001 active low chip select input. | |
#define | VS_XCS_PORT PORTB |
#define | VS_XCS_DDR DDRB |
#define | VS_BSYNC_BIT 5 |
VS1001 serial data interface bit sync. | |
#define | VS_BSYNC_PORT PORTB |
#define | VS_BSYNC_DDR DDRB |
#define | VS_RESET_BIT 7 |
VS1001 hardware reset input. | |
#define | VS_RESET_PORT PORTB |
#define | VS_RESET_DDR DDRB |
#define | VS_SIGNAL sig_INTERRUPT6 |
VS1001 data request interrupt. | |
#define | VS_DREQ_BIT 6 |
#define | VS_DREQ_PORT PORTE |
#define | VS_DREQ_PIN PINE |
#define | VS_DREQ_DDR DDRE |
Functions | |
uint8_t | VsPlayerInterrupts (uint8_t enable) |
Enable or disable player interrupts. | |
int | VsPlayerKick (void) |
Start playback. | |
int | VsPlayerStop (void) |
Stops the playback. | |
int | VsPlayerFlush (void) |
Sets up decoder internal buffer flushing. | |
int | VsPlayerInit (void) |
Initialize the VS1001 hardware interface. | |
int | VsPlayerReset (uint16_t mode) |
Software reset the decoder. | |
int | VsPlayerSetMode (uint16_t mode) |
Set mode register of the decoder. | |
uint16_t | VsPlayTime (void) |
Returns play time since last reset. | |
uint8_t | VsGetStatus (void) |
Returns status of the player. | |
int | VsGetHeaderInfo (VS_HEADERINFO *vshi) |
Query MP3 stream header information. | |
uint16_t | VsMemoryTest (void) |
Initialize decoder memory test and return result. | |
int | VsSetVolume (uint8_t left, uint8_t right) |
Set volume. | |
int | VsBeep (uint8_t fsin, uint8_t ms) |
Sine wave beep. |