CAM C Code Functions Window

This window displays the available C Code functions for a particular CAM.

Function Display

Only functions relevant to the current CAM Options, as set in the Set CAM Parameters window, will be displayed. In the example shown above, the CAM is set up to be low pass filter. Had it been setup to be a high pass filter, a different set of functions would be available.

Functions are grouped in sets, as shown by the Corner Frequency, Gain & Q set and the LowPass Capacitors set in the window above. These sets are defined by the CAM and group related functions.

The screenshot above shows function descriptions, function names in bold, parameter arguments, and highlights the ANSI C data types. The display style is configurable from the C Code Function Display Options window.

Code Generation

If a function is checked it will be included in the generated C Code. An ID representing the CAM instance will be created. This ID will be passed as the first parameter to the generated function to indicate which CAM instance to act on. If a function is not checked in this window it is still possible the function will be generated if there is another CAM instance of the same CAM type which has checked the function. However, even though the function is generated, it is not possible to use the function within the C Code for CAMs that did not check the function, as the necessary ID’s and supporting code would not be generated.