DIRECT_CAL_DISABLE
Ginmake 2.62+
Syntax
[{object}][DIRECT_CAL_DISABLE]
For Simulink builds, if direct_cal_access is enabled, this post-fix directive disables direct access for the associated object.
The controls the way in which get/set functions are generated for the object. If direct_cal_access is enabled, then by default get/set functions will be generated that access the calibration memory / variable directly. This directive forces the use of XCU_memory_xx functions instead for the associated object.
In some cases, it may be preferred for some items to be read/written via the XCU_memory_xx functions instead on a case-by-case basis, even when direct_cal_access is enabled. This directive allows this to be done without having to disable direct_cal_access for the whole build.
e.g.
1uint16_t object; // [My Thing,…][DIRECT_CAL_DISABLE]
This is a shorthand equivalent to:
1uint16_t object; // [My Thing,…][ATTRIBUTES,direct_cal_disable=1]