Purpose (10 points) The purpose of this library is creating a project that dejection switch between four modes of work. The first mode is to go through the input to output. The certify mode is to generate a shadow wave while ignoring the input. The third mode is to output a square wave while ignoring the input. The fourth mode of work is to generate a triangle wave. The project should be equal to switch between these modes of operation without re-building the mandate. Method (10 points) First, launch CCS; champion back a copy of research lab 1, named the copy lab 2.Then sidetrack the lab. To accomplish the four opposite modes, four different die hards were written individually and called within the main function. The first 1 was to defer input/output dampen as arguments and communicate 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 kinda of sine 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 uncoiled by using the code switch, included the function mental image in the header file. Code score (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.co m
If you want to get a full ess! ay, visit our page: cheap essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.