PebbleOS
Loading...
Searching...
No Matches
Functions
Animation service

System resources used by the applib animation module. More...

Functions

void animation_service_timer_schedule (uint32_t ms)
 Schedule the calling task's animation timer.
 
void animation_service_timer_event_received (void)
 Acknowledge the event posted by the calling task's animation timer.
 
void animation_service_cleanup (PebbleTask task)
 Free the animation resources of a task.
 

Detailed Description

System resources used by the applib animation module.

Keeps one timer per task (KernelMain and App) that drives the applib animation scheduler. When the timer fires, a callback event running animation_private_timer_callback() with the task's animation state is posted to that task. Only one such event is kept pending per task.

Function Documentation

◆ animation_service_cleanup()

void animation_service_cleanup ( PebbleTask  task)

Free the animation resources of a task.

Called by the process manager on KernelMain when a process exits.

Parameters
taskTask whose timer is deleted.

◆ animation_service_timer_event_received()

void animation_service_timer_event_received ( void  )

Acknowledge the event posted by the calling task's animation timer.

Allows the next timer expiry to post a new event. Syscall.

◆ animation_service_timer_schedule()

void animation_service_timer_schedule ( uint32_t  ms)

Schedule the calling task's animation timer.

Syscall; only valid from the KernelMain and App tasks.

Parameters
msDelay until the timer fires, in milliseconds.