ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
ruuvi_interface_scheduler.h File Reference

Interface functions to scheduler. More...

#include "ruuvi_driver_enabled_modules.h"
#include "ruuvi_driver_error.h"
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef void(* ruuvi_scheduler_event_handler_t) (void *p_event_data, uint16_t event_size)
 Type definition for scheduler event handler. More...
 

Functions

rd_status_t ri_scheduler_init (void)
 Enable implementation selected by application. More...
 
rd_status_t ri_scheduler_execute (void)
 Executes all scheduled tasks. More...
 
rd_status_t ri_scheduler_event_put (const void *const p_event_data, const uint16_t event_size, const ruuvi_scheduler_event_handler_t handler)
 Schedule given task to be executed on next call to ri_scheduler_execute. More...
 
rd_status_t ri_scheduler_uninit (void)
 Uninitialize scheduler. More...
 
bool ri_scheduler_is_init (void)
 Check if scheduler is initialized. More...
 

Detailed Description

Interface functions to scheduler.

Author
Otso Jousimaa otso@.nosp@m.ojou.nosp@m.sima..nosp@m.net
Date
2020-02-13

The scheduler is in drivers rather than in library as many platforms provide their own implementation of the scheduler.

Definition in file ruuvi_interface_scheduler.h.