Mapping File for User-Defined Interpolation Routine

The ASCET interpolation routines search, interpol and getAt must be mapped to function names in the generated code. For this purpose, a mapping file (*.ini) must be created.

The mapping file is similar to the services.ini file used for arithmetic services. It has sections named like a target (e.g., [<target name>]), like a target group, i.e. [Experiment] for experimental targets (RP targets, PC target, Prototyping target) and [Production] for microcontroller targets, or [Interpolation].

To select an interpolation routine, a section named like the current target is searched first. If the interpolation routine cannot be found in such a section, the section [Experiment] or [Production] is searched, depending on whether you are using an experimental target or a microcontroller target. If the interpolation routine still cannot be found, it is searched in section [Interpolation]. With that, you can use one mapping file for all targets, and reuse identical definitions for multiple targets.

Routines for non-adaptive characteristic lines/maps are mapped Closedas follows.

Routines for adaptive characteristic lines/maps are mapped Closedas follows.

The following abbreviations are used:

ct

characteristic line/map

tv / tx / ty

short name of value type / X axis type / Y axis type (s8, u8, s16, u16, s32, u32, r32, r64)

ftv / ftx / fty

full name of value type / X axis type / Y axis type (sint8, uint8, sint16, uint16, sint32, uint32, real32, real64)

td / ftd

short/full name of the "double precision" type of a high-resolution interpolation routine

x

X axis point

y

Y axis point

v

value

d

distribution

t1 / ft1

short/full name of axis type in distribution

i1

axis point in distribution

Examples for mapping files – IntpolLinear.ini and IntpolRounded.ini – can be found in the ..\target\common\interpolation directory.

See also

Creating the Mapping for User-Defined Interpolation Routines

Creating an Option Set for an Interpolation Routine

High-Resolution Interpolation Routines

Arithmetic Services