serdisp_gpevents.h File Reference

Definitions and functions for general purpose items and event handling. More...

#include "serdisplib/serdisp_connect.h"
#include "serdisplib/serdisp_control.h"
#include <sys/time.h>
#include <stdint.h>
#include "../../config.h"
#include <pthread.h>
Include dependency graph for serdisp_gpevents.h:
This graph shows which files directly or indirectly include this file:

Functions

Event-loop functions
int SDEVLP_start (struct serdisp_s *dd)
 
int SDEVLP_stop (struct serdisp_s *dd)
 
int SDEVLP_getstatus (struct serdisp_s *dd)
 
int SDEVLP_add_listener (struct serdisp_s *dd, byte gpid, fp_eventlistener_t eventlistener)
 add an event listener for a GPI More...
 
int SDEVLP_del_listener (struct serdisp_s *dd, byte gpid, fp_eventlistener_t eventlistener)
 delete an event listener defined for a GPI More...
 
int SDEVLP_purge_listeners (struct serdisp_s *dd, byte gpid)
 purge all event listeners defined for a GPI More...
 
int SDEVLP_count_listeners (struct serdisp_s *dd, byte gpid)
 count number of event listeners defined for a GPI More...
 
GPO specific functions
byte SDGPO_getamount (struct serdisp_s *dd)
 
byte SDGPO_gettype (struct serdisp_s *dd, byte gpid)
 
byte SDGPO_search (struct serdisp_s *dd, const char *gpname)
 
SDGPO_t * SDGPO_getdescriptor (struct serdisp_s *dd, byte gpid)
 
int SDGPO_invert (struct serdisp_s *dd, byte gpid)
 
int SDGPO_setvalue (struct serdisp_s *dd, byte gpid, int32_t value)
 
int SDGPO_setpackage (struct serdisp_s *dd, byte gpid, byte *data, int32_t length)
 
GPI specific functions
byte SDGPI_getamount (struct serdisp_s *dd)
 
byte SDGPI_gettype (struct serdisp_s *dd, byte gpid)
 
byte SDGPI_search (struct serdisp_s *dd, const char *gpname)
 
SDGPI_t * SDGPI_getdescriptor (struct serdisp_s *dd, byte gpid)
 
int SDGPI_isenabled (struct serdisp_s *dd, byte gpid)
 
int SDGPI_enable (struct serdisp_s *dd, byte gpid, int enable)
 
int SDGPI_getstreamfd (struct serdisp_s *dd, byte gpid)
 
Host byte order vs. network byte order conversion functions
void SDGPT_event_header_hton (struct SDGP_event_s *event)
 converts an event header from host byte order to network byte order More...
 
void SDGPT_event_header_ntoh (struct SDGP_event_s *event)
 converts an event header from network byte order to host byte order More...
 
void SDGPT_event_payload_hton (void *payload, int bytes, byte word_length)
 converts an event payload from host byte order to network byte order More...
 
void SDGPT_event_payload_ntoh (void *payload, int bytes, byte word_length)
 converts an event payload from network byte order to host byte order More...
 

Detailed Description

Date
(C) 2006-2013
Author
wolfgang astleitner (mrwas.nosp@m.tl@u.nosp@m.sers..nosp@m.sour.nosp@m.cefor.nosp@m.ge.n.nosp@m.et)