CMSIS Conditions for MATLAB Functions to Support ARM Cortex-M Processors
Each MATLAB® function that can be used with the Support Package for ARM® Cortex®-M processors requires specific conditions to allow code replacement by using the CMSIS Library. You use this code replacement when generating C code from a model or from MATLAB code.
If you do not meet the specific requirements, then the generated C code runs on the ARM Cortex-M processors. However, this generated code does not use CMSIS library support.
The CMSIS library supports these MATLAB functions only when you set specific properties, as indicated in this table:
MATLAB Function | Supported Function Signatures | Input Requirements | Parameter Requirements | Equivalent CMSIS Functions |
---|---|---|---|---|
fft | Y = fft(X) Y = fft(X, n) Y = fft(X, n, dim) |
| Transform Length
Dimension to operate along
|
Wrapper functions, each with an |
ifft | X = ifft(Y) X = ifft(Y, n) X = ifft(Y, n, dim) X = ifft(__, symflag) |
| Transform Length Dimension to operate along
Symmetric type |
Wrapper functions, each with an |
fft2 | Y = fft2(X) Y = fft2(X, m, n) |
| Number of transform rows
Number of transform rows
|
Wrapper functions, each with an |
ifft2 | X = ifft2(Y) X = ifft2(Y, m, n) X = ifft2(__, symflag) |
| Number of transform rows
Number of transform rows
Symmetric type
|
Wrapper functions, each with an |
fftn | Y = fftn(X) Y = fftn(X, sz) |
| Length of transform dimension
|
Wrapper functions, each with an |
ifftn | X = ifftn(Y) X = ifftn(Y, sz) X = ifftn(__, symflag) |
| Length of transform dimension
|
Wrapper functions, each with an |