Purpose (10 points) The purpose of this library is creating a project that can switch between four modes of work. The first mode is to fleet the input to output. The certify mode is to generate a wickedness wave while ignoring the input. The third mode is to output a square wave while ignoring the input. The fourth mode of public presentation is to generate a triangle wave. The project should be workmanlike to switch between these modes of operation without re-building the mandate. Method (10 points) First, launch CCS; hire back a copy of laboratory 1, named the copy lab 2.Then sidetrack the lab. To accomplish the four antithetic modes, four different uses were written individually and called within the main function. The first oneness was to defer input/output airplane pilot as arguments and bring back the jimmy by reference. The minute mode takes amplitude, frequency, and output buffer as arguments, and generates the sinning wave; same code as die week.
Third mode uses the same argument as second mode, and it generates a square wave kind of of sin wave. The nett mode uses nearly the same argument as second mode, but it generates a triangle wave instead of sine wave. The switch function was made come true(a) by using the code switch, included the function mental image in the header file. Code report (30 points) Part1 Passthrough We have already done the main function in lab 1.The code is void Passthrough(short *pOut, short *pIn) { int i; for (i=0;iIf you want to get a full essay, order it on our website: BestEssayCheap.com
If you want to get a full essay, v! isit our page: cheap essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.