Chameleon-AVR Nurve Networks, Chameleon-AVR Datasheet - Page 195

MCU, MPU & DSP Development Tools AVR8 & PROPELLER DEV SYSTEM (SBC)

Chameleon-AVR

Manufacturer Part Number
Chameleon-AVR
Description
MCU, MPU & DSP Development Tools AVR8 & PROPELLER DEV SYSTEM (SBC)
Manufacturer
Nurve Networks
Datasheet

Specifications of Chameleon-AVR

Processor To Be Evaluated
AVR 328P
Data Bus Width
8 bit
Interface Type
USB, VGA, PS/2, I2C, ISP, SPI
Operating Supply Voltage
3.3 V, 5 V
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
With that in mind, if you want to use the sound driver then you need the following files added to your project:
23.1 Header File Contents Overview
The “Sound” module header CHAM_AVR_SOUND_DRV_V010.h has nothing in it except the prototypes for the handful of
functions. Rather, it makes more sense to show you the SPI header messages relating to the sound driver:
The above messages are located in CHAM_AVR_TWI_SPI_DRV_V010.H as well as in the main SPI driver running on
the Propeller CHAM_DEFAULT2_DRV_V112.spin or CHAM_DEFAULT1_DRV_V112.spin. The above messages only
expose rudimentary abilities of the sound driver, but they are enough to start and stop sounds, play music, sound fx, etc.
23.2 API Listing Reference
The API listing for the “Sound” module CHAM_SOUND_DRV_V010.c is listed in Table 23.1 categorized by functionality.
Function Name
Playing a Sound
int Sound_Play(int channel, int frequency, int duration);
Stopping Sounds
int Sound_Stop(int channel);
int Sound_StopAll(void);
Updating a Sound
int Sound_Update(int channel, int frequency, int volume);
23.3 API Functional Declarations
The following lists each function, a description, comments, and example usage of the function.
_________________________________________________________________________________________________
Function Prototype:
Description:
CHAM_AVR_SOUND_DRV_V010.c
CHAM_AVR_SOUND_DRV_V010.h
int Sound_Play(int channel, int frequency, int duration);
Sound_Play(...) instructs the driver to play a single tone on one of the sound channels. The parameters
Table 23.1 – “Sound” module API functions listing.
- Main C file source for “Sound” module.
- Header file for “Sound” module.
Description
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon AVR 8-Bit”
Plays a sound on one of the 4 channels.
Stops a sound and silences the channel.
Stops all sound channels and silences them.
Updates a currently playing sound.
195

Related parts for Chameleon-AVR