| Electronic Components Datasheet Search |
|
TMS320C6000 Datasheet(PDF) 56 Page - Texas Instruments |
|
|
|||||||||||||||||||||||||||||
TMS320C6000 Datasheet(HTML) 56 Page - Texas Instruments |
|
56 / 126 page ![]() Reviewing the Source Code 4-4 4.2 Reviewing the Source Code Double-click on the volume.c file in the Project View to see the source code in the right half of the Code Composer Studio window. Notice the following parts of this example: t After the main function prints a message, it enters an infinite loop. Within this loop, it calls the dataIO and processing functions. t The processing function multiplies each value in the input buffer by the gain and puts the resulting values into the output buffer. It also calls the assembly load routine, which consumes instruction cycles based on the processingLoad value passed to the routine. t The dataIO function in this example does not perform any actions other than to return. Rather than using C code to perform I/O, you can use a Probe Point within Code Composer Studio to read data from a file on the host into the inp_buffer location. #include <stdio.h> #include "volume.h" /* Global declarations */ int inp_buffer[BUFSIZE]; /* processing data buffers */ int out_buffer[BUFSIZE]; int gain = MINGAIN; /* volume control variable */ unsigned int processingLoad = BASELOAD; /* processing load */ /* Functions */ extern void load(unsigned int loadValue); static int processing(int *input, int *output); static void dataIO(void); /* ======== main ======== */ void main() { int *input = &inp_buffer[0]; int *output = &out_buffer[0]; puts("volume example started\n"); |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |