www.ti.com
Interfaces and Modules
Figure 3-2. Module Object Creation
FIR
FIR_Config FIR;
FIR_init();
FIR_exit();
FIR_create();
Creates
firObject
firObject
Figure 3-3 illustrates an object appropriate for a finite impulse response filter implemented by a module named FIR.
Figure 3-3. Example Module Object
FIR | Creates |
FIR_create();
firObject
Int length;
Int coeff[];
Int delay[];
Filter input history buffer
3.1.5 Design-Time Object Creation
Many embedded systems are very static in nature; memory, MIPS, and I/O peripherals are statically partitioned among a fixed set of functions that operate continuously until power is removed. Static systems admit a number of performance optimizations that simply are not possible in dynamic systems. For example, there is no need for a memory manager in a static system and general data structures, such as linked lists, can be often replaced with much simpler and more efficient structures, such as fixed length arrays. These optimizations not only reduce the system'sCode size requirements; they may also have a significant effect on the execution performance of the system.
When designing a system that is very cost sensitive, must operate with limited power, or has limited MIPS, designers look for portions of the system that can be fixed at design time (i.e., made static). Even if the entire system cannot be static, often certain
Guideline 3
All modules that support object creation should support
In practice, this simply means that all functions that are only required for
3.1.6 Run-Time Object Creation and Deletion
Modules may optionally support
SPRU352G | Algorithm Component Model | 29 |