ssm  0.0.2
Runtime Library for the Sparse Synchronous Model
Platform

Discussion

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...
 

Function Documentation

◆ ssm_platform_entry()

int ssm_platform_entry ( void  )

Platform-defined entry point.

Should be called by main function to start running SSM code.

Returns
0 on success, negative errno otherwise.

◆ ssm_insert_input()

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.

Parameters
svthe scheduled variable to be updated.
valthe value sv should be updated with.
Returns
0 on success, negative errno otherwise.