AN2274 Freescale Semiconductor / Motorola, AN2274 Datasheet - Page 7

no-image

AN2274

Manufacturer Part Number
AN2274
Description
Generic Tone Generation on the StarCore SC140 Core
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
fsl_tone_gen returns the following integer flag:
The main structures are defined as follows:
} TONE_GENERIC;
} TONE_COMPONENT;
where:
Freescale Semiconductor
typedef struct{
typedef struct{
Used Once Per Tone
gen_channel is a channel-dependent instance of GEN_CHANNEL containing all channel data for
generation.
Bit 0 (LSB): Indicates whether tone generation is complete.
— 0 Generation is not complete.
— 1 Generation is complete.
Bit 1: Indicates whether the content of the entire buffer is silence.
— 0 Buffer or part of the buffer contains sound.
— 1 Entire buffer is silence
tone_repeat_cycle. Number of cycle repetitions needed to generate the full tone.
samples_out
Tone Initialization
Flag
Generic Tone Generation on the StarCore™ SC140/SC1400 Cores, Rev. 1
UINT16 tone_repeat_cycle;
UINT16 tone_component_count;
TONE_COMPONENT tone_component[5];
UINT8
UINT8
UINT16 sound_duration;
UINT16 silence_duration;
UINT16 frequency_1;
UINT16 frequency_2;
INT8
INT8
Figure 4. External Interface to Software
fsl_tone_gen_init
gen_channel
tone_control
fsl_tone_gen
linear_out
flags;
repeat_component;
level_1;
level_2;
User-Friendly Tone
Configuration
Current
Status
Update
Tone Generator Implementation
Function
Input
Output
Structure
Legend
7

Related parts for AN2274