somo_14d.h File Reference

Somo-14D audio player interface. More...

#include "pic_utils.h"
Include dependency graph for somo_14d.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define SOMO_14D_PLAY_PAUSE_CMD   0xfffe
#define SOMO_14D_STOP_CMD   0xffff
#define SOMO_14D_VOLUME_CMD   0xfff0

Functions

uns8 somo_14d_is_busy ()
void somo_14d_play_pause ()
void somo_14d_reset ()
void somo_14d_set_file_id (uns16 file_id)
void somo_14d_set_volume (uns8 level)
void somo_14d_setup_io ()
void somo_14d_standby ()
void somo_14d_stop ()
void somo_14d_wake ()

Detailed Description

Library for accessing the functionality of the 4D systems .ad4 audio player

Put the following into your config.h

define somo_14d_clk_port PORTA define somo_14d_clk_pin 1

define somo_14d_data_port PORTA define somo_14d_data_pin 2

don't define these if you don't want to use them

define somo_14d_reset_port PORTA define somo_14d_reset_pin 3

define somo_14d_busy_port PORTA define somo_14d_busy_pin 4

Definition in file somo_14d.h.


Define Documentation

#define SOMO_14D_PLAY_PAUSE_CMD   0xfffe

Definition at line 69 of file somo_14d.h.

Referenced by somo_14d_play_pause().

#define SOMO_14D_STOP_CMD   0xffff

Definition at line 70 of file somo_14d.h.

Referenced by somo_14d_stop().

#define SOMO_14D_VOLUME_CMD   0xfff0

Definition at line 71 of file somo_14d.h.

Referenced by somo_14d_set_volume().


Function Documentation

uns8 somo_14d_is_busy (  ) 

Definition at line 123 of file somo_14d.c.

References test_pin.

Referenced by audio_queue_clear().

Here is the caller graph for this function:

void somo_14d_play_pause (  ) 

Definition at line 113 of file somo_14d.c.

References SOMO_14D_PLAY_PAUSE_CMD, and somo_14d_send_data().

Here is the call graph for this function:

void somo_14d_reset (  ) 

Definition at line 57 of file somo_14d.c.

References clear_pin, and set_pin.

void somo_14d_set_file_id ( uns16  file_id  ) 

Definition at line 103 of file somo_14d.c.

References somo_14d_send_data().

Referenced by audio_queue_add(), and audio_queue_process().

Here is the call graph for this function:

Here is the caller graph for this function:

void somo_14d_set_volume ( uns8  level  ) 

Definition at line 108 of file somo_14d.c.

References somo_14d_send_data(), and SOMO_14D_VOLUME_CMD.

Here is the call graph for this function:

void somo_14d_setup_io (  ) 

Definition at line 41 of file somo_14d.c.

References make_input, make_output, and set_pin.

void somo_14d_standby (  ) 

Definition at line 65 of file somo_14d.c.

References clear_pin.

void somo_14d_stop (  ) 

Definition at line 117 of file somo_14d.c.

References somo_14d_send_data(), and SOMO_14D_STOP_CMD.

Referenced by audio_queue_clear().

Here is the call graph for this function:

Here is the caller graph for this function:

void somo_14d_wake (  ) 

Definition at line 73 of file somo_14d.c.

References set_pin.


Generated on Wed Dec 8 13:47:49 2010 for Pic Pack by  doxygen 1.6.1