diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-09 07:12:44 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-09 07:12:44 +0100 |
commit | 1ac7751e5b9df5f09500aca9e5b34bb9cfa912b4 (patch) | |
tree | 42e3705aa8b20fc7f03025cb83ae2f928350174d /pcilib.h | |
parent | c3812d3569aa98e23953eea323d980912580e659 (diff) | |
download | ipecamera-1ac7751e5b9df5f09500aca9e5b34bb9cfa912b4.tar.gz ipecamera-1ac7751e5b9df5f09500aca9e5b34bb9cfa912b4.tar.bz2 ipecamera-1ac7751e5b9df5f09500aca9e5b34bb9cfa912b4.tar.xz ipecamera-1ac7751e5b9df5f09500aca9e5b34bb9cfa912b4.zip |
Initial support of event streaming in cli
Diffstat (limited to 'pcilib.h')
-rw-r--r-- | pcilib.h | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -86,11 +86,16 @@ typedef enum { typedef enum { PCILIB_EVENT_FLAGS_DEFAULT = 0, - PCILIB_EVENT_FLAG_RAW_DATA_ONLY = 1, - PCILIB_EVENT_FLAG_EOF = 2 + PCILIB_EVENT_FLAG_RAW_DATA_ONLY = 1, /**< Do not parse data, just read raw and pass it to rawdata callback */ + PCILIB_EVENT_FLAG_STOP_ONLY = 1, /**< Do not cleanup, just stop acquiring new frames, the cleanup should be requested afterwards */ + PCILIB_EVENT_FLAG_EOF = 2 /**< Indicates that it is the last part of the frame (not required) */ } pcilib_event_flags_t; typedef enum { + PCILIB_EVENT_INFO_FLAG_BROKEN = 1 /**< Indicates broken frames (if this flag is fales, the frame still can be broken) */ +} pcilib_event_info_flags_t; + +typedef enum { PCILIB_REGISTER_STANDARD = 0, PCILIB_REGISTER_FIFO, PCILIB_REGISTER_BITS @@ -118,18 +123,16 @@ typedef enum { #define PCILIB_EVENT3 8 #define PCILIB_EVENTS_ALL ((pcilib_event_t)-1) #define PCILIB_EVENT_INVALID ((pcilib_event_t)-1) -//#define PCILIB_EVENT_ID_INVALID 0 #define PCILIB_TIMEOUT_INFINITE ((pcilib_timeout_t)-1) #define PCILIB_TIMEOUT_IMMEDIATE 0 -#define PCILIB_TIMEOUT_TRIGGER 0 #define PCILIB_IRQ_SOURCE_DEFAULT 0 - typedef struct { pcilib_event_t type; - uint64_t seqnum; /* we will add seqnum_overflow if required */ - uint64_t offset; /* nanoseconds */ - struct timeval timestamp; /* most accurate timestamp */ + uint64_t seqnum; /**< we will add seqnum_overflow if required */ + uint64_t offset; /**< nanoseconds */ + struct timeval timestamp; /**< most accurate timestamp */ + pcilib_event_info_flags_t flags; /**< flags */ } pcilib_event_info_t; /**< |