![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
Generates C code to declare and initialize timers. More...
Static Public Member Functions | |
| static String | generateInitializer (TimerInstance timer, CEnclaveInstance enc, boolean useParamRefs) |
| Generate code to initialize the given timer. | |
Generates C code to declare and initialize timers.
|
static |
Generate code to initialize the given timer.
| timer | The timer to initialize for. |
| enc | The enclave instance. |
| useParamRefs | If true and the timer offset/period is a parameter reference, generate a reference to the self struct field so runtime overrides take effect. Set to false for targets (e.g., Python) whose self struct stores parameters as non-native types. |