54 #define PDSERV_VERSION(major,minor,patchlevel) \ 55 (((major) << 16) + ((minor) << 8) + (patchlevel)) 56 #define PDSERV_VERSION_CODE \ 58 #define PDSERV_VERSION_MAJOR 3 59 #define PDSERV_VERSION_MINOR 0 60 #define PDSERV_VERSION_PATCH 0 72 #define HAS_VERSION_CODE 152 #define pd_double_T 1 153 #define pd_single_T 2 156 #define pd_uint16_T 5 157 #define pd_sint16_T 6 158 #define pd_uint32_T 7 159 #define pd_sint32_T 8 160 #define pd_uint64_T 9 161 #define pd_sint64_T 10 162 #define pd_boolean_T 11 163 #define pd_schar_T 12 165 #define pd_uchar_T 14 166 #define pd_short_T 15 167 #define pd_ushort_T 16 171 #define pd_ulong_T 20 172 #define pd_longlong_T 21 173 #define pd_ulonglong_T 22 174 #define pd_ssize_T 23 177 #define pd_datatype_end 25 221 struct pdserv* pdserv,
235 struct pdserv* pdserv,
294 struct pdtask* pdtask,
295 unsigned int decimation,
336 const struct pdvariable *signal,
340 struct timespec* time,
349 struct pdvariable* signal,
362 struct pdtask* pdtask,
363 unsigned int decimation,
403 #define RESET_EVENT 0 404 #define EMERG_EVENT 1 405 #define ALERT_EVENT 2 407 #define ERROR_EVENT 4 409 #define NOTICE_EVENT 6 411 #define DEBUG_EVENT 8 421 struct pdserv* pdserv,
429 struct pdevent* event,
430 const char *
const *text
444 const struct pdevent *event,
456 const struct timespec *t
465 const struct pdevent *event,
467 const struct timespec *t
484 const struct pdevent *event,
485 const unsigned int * level,
499 const struct timespec *t
527 const struct pdvariable *param,
531 struct timespec* time,
553 struct pdserv* pdserv,
579 struct pdvariable *variable,
585 struct pdvariable *variable,
591 struct pdvariable *variable,
607 struct pdserv* pdserv
616 struct pdtask* pdtask,
628 struct pdtask* pdtask,
629 const struct timespec *t
int(* gettime_t)(struct timespec *)
Definition: pdserv.h:188
void pdserv_update_statistics(struct pdtask *pdtask, double exec_time, double cycle_time, unsigned int overrun)
struct pdvariable * pdserv_parameter(struct pdserv *pdserv, const char *path, unsigned int mode, int datatype, void *addr, size_t n, const size_t *dim, write_parameter_t write_cb, void *priv_data)
struct pdtask * pdserv_create_task(struct pdserv *pdserv, double tsample, const char *name)
const char * pdserv_version_str
String of pdserv version code "major.minor.patch".
void pdserv_event_reset(const struct pdevent *event, size_t element, const struct timespec *t)
void pdserv_exit(struct pdserv *)
int pdserv_prepare(struct pdserv *pdserv)
void pdserv_update(struct pdtask *pdtask, const struct timespec *t)
void pdserv_compound_add_field(int compound, const char *name, int data_type, size_t offset, size_t ndim, const size_t *dim)
struct pdvariable * pdserv_signal_cb(struct pdtask *pdtask, unsigned int decimation, const char *path, int datatype, const void *addr, size_t n, const size_t *dim, read_signal_t read_signal_cb, void *priv_data)
void pdserv_set_unit(struct pdvariable *variable, const char *unit)
void pdserv_signal_set_read_cb(struct pdvariable *signal, read_signal_t read_signal_cb, void *priv_data)
void pdserv_set_alias(struct pdvariable *variable, const char *alias)
void pdserv_set_comment(struct pdvariable *variable, const char *comment)
struct pdvariable * pdserv_signal(struct pdtask *pdtask, unsigned int decimation, const char *path, int datatype, const void *addr, size_t n, const size_t *dim)
void pdserv_event_set_all(const struct pdevent *event, const unsigned int *level, const struct timespec *t)
int pdserv_create_compound(const char *name, size_t size)
int(* write_parameter_t)(const struct pdvariable *param, void *dst, const void *src, size_t len, struct timespec *time, void *priv_data)
Definition: pdserv.h:526
void pdserv_event_set_text(struct pdevent *event, const char *const *text)
void pdserv_config_file(struct pdserv *pdserv, const char *file)
struct pdevent * pdserv_event(struct pdserv *pdserv, const char *path, size_t n)
void pdserv_event_set(const struct pdevent *event, size_t element, int priority, const struct timespec *t)
int(* read_signal_t)(const struct pdvariable *signal, void *dst, const void *src, size_t len, struct timespec *time, void *priv_data)
Definition: pdserv.h:335
struct pdserv * pdserv_create(const char *name, const char *version, gettime_t gettime_cb)