ssm
0.0.2
Runtime Library for the Sparse Synchronous Model
|
Functions | |
int | ssm_platform_entry (void) |
Platform-defined entry point. More... | |
int | ssm_insert_input (ssm_sv_t *sv, ssm_value_t val) |
Insert an input event into the input queue. More... | |
int ssm_platform_entry | ( | void | ) |
Platform-defined entry point.
Should be called by main function to start running SSM code.
int ssm_insert_input | ( | ssm_sv_t * | sv, |
ssm_value_t | val | ||
) |
Insert an input event into the input queue.
The input event is timestamped with the current (platform-defined) timestamp. The given value val will later be written to the scheduled variable sv once the tick function has caught up with current time.
Note that this function is not re-entrant and should be called with some kind of lock held to avoid clobbering the input queue.
sv | the scheduled variable to be updated. |
val | the value sv should be updated with. |