Home
FAQ
Player
Stage
Gazebo
Contrib
Documentation
Publications
Contributors
Users

Project
Download
Bugs/Feedback
Mailing lists

Radish

Old news
Old stuff

player_audiodsp_cmd Struct Reference
[audiodsp]

#include <player.h>

List of all members.


Detailed Description

Command.

The audiodsp interface accepts commands to produce fixed-frequency tones or binary phase shift keyed(BPSK) chirps through /dev/dsp (which is assumed to be associated with a sound card to which a speaker is attached).


Public Attributes

uint8_t subtype
uint16_t frequency
uint16_t amplitude
uint32_t duration
unsigned char bitString [PLAYER_MAX_DEVICE_STRING_LEN]
uint16_t bitStringLen


Member Data Documentation

uint8_t player_audiodsp_cmd::subtype
 

The packet subtype. Set to PLAYER_AUDIODSP_PLAY_TONE to play a single frequency; bitString and bitStringLen do not need to be set. Set to PLAYER_AUDIODSP_PLAY_CHIRP to play a BPSKeyed chirp; bitString should contain the binary string to encode, and bitStringLen set to the length of the bitString. Set to PLAYER_AUDIODSP_REPLAY to replay the last sound. *

uint16_t player_audiodsp_cmd::frequency
 

Frequency to play (Hz)

uint16_t player_audiodsp_cmd::amplitude
 

Amplitude to play (dB?)

uint32_t player_audiodsp_cmd::duration
 

Duration to play (msec)

unsigned char player_audiodsp_cmd::bitString[PLAYER_MAX_DEVICE_STRING_LEN]
 

BitString to encode in sine wave

uint16_t player_audiodsp_cmd::bitStringLen
 

Length of the bit string


The documentation for this struct was generated from the following file:
Generated on Tue May 3 14:15:53 2005 for Player by doxygen 1.3.6