lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.generator.c.CTimerGenerator Class Reference

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.

Detailed Description

Generates C code to declare and initialize timers.

Author
Edward A. Lee
{Soroush Bateni

Member Function Documentation

◆ generateInitializer()

String org.lflang.generator.c.CTimerGenerator.generateInitializer ( TimerInstance timer,
CEnclaveInstance enc,
boolean useParamRefs )
static

Generate code to initialize the given timer.

Parameters
timerThe timer to initialize for.
encThe enclave instance.
useParamRefsIf 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.

The documentation for this class was generated from the following file:
  • /Users/runner/work/lingua-franca/lingua-franca/core/src/main/java/org/lflang/generator/c/CTimerGenerator.java