Feature #421
Create sinewave for DAC/DMA
Beginn:
28.08.2023
Abgabedatum:
% erledigt:
0%
Geschätzter Aufwand:
CS Zielversion:
Beschreibung
The callbacks can be used to calculate decreasing volume of sinewave.
States:
   Init: calc, start, goto A-started
   A-started: calc b; goto A-playing
   A-playing: loop
   A-finished: start b; goto B-started
   B-started: calc a; goto B-playing
   B-playing: loop
   B-finished: start a; goto A-started
   Error: exception
sin 0=0; sin(PI)=0; sin(2*PI)=0
for(int i1=0; i1<0x100; i1++)
{
   value[i1]=( sin( (2*PI*i1)/0x100) ) * r ) + ( r / 2 );
}