You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

127 lines
2.4 KiB

#ifndef __R_GOOSE_DATA_STRUCTURES_HEADER__
#define __R_GOOSE_DATA_STRUCTURES_HEADER__
#incldue <stdint.h>
typedef enum E_MeasurementUnits{
MU_COUNTS = 0,
MU_METERS = 1,
MU_DEG,
MU_RAD,
MU_CELSIUS,
MU_SECONDS,
MU_PIXELS
} measurementUnits;
typedef struct S_WGS84_Location{
float lat;
float lon;
float alt;
} locationWGS84, locationAnchore, * p_locationWGS84, * p_locationAnchore;
typedef struct S_XYZ_Location{
float x;
float y;
float z;
} locationXYZ, locationRelative, * p_locationXYZ, * p_locationRelative;
typedef struct S_Orientation{
float phi;
float sigma;
float tau;
} orientation;
typedef struct S_Position{
locationXYZ d;
locationAnchore at;
orientation world;
} position;
typedef enum E_RGooseNodeClasses{
NC_NODEF = 0,
NC_ACCESS = 1,
NC_IMAGER,
NC_STORAGE,
NC_ANALYTIC,
NC_UI_IO
} rgooseNodeClass, * p_RgooseNodeClass;
#ifdef __linux__
typedef unsigned long long timeStamp;
#else
typedef unsigned __int64 timeStamp;
#endif
typedef char[32] UOID, * PUOID;
typedef struct S_Event_Source{
uint32_t db_id;
position pos;
rgooseNodeClass cls;
uint8_t sub;
timeStamp utc;
UOID uid;
} eventSource;
typedef enum E_Capabilities{
FC_ALARM_INIT = 0,
FC_ALARM_RCPT = 1,
FC_IMAGE_ASC = 2,
FC_VIDEO_ASC = 3,
FC_AUDIO_ASC = 4,
FC_FINGER_ASC = 5,
FC_CODE_ASC = 6,
FC_RFID_ASC = 7,
FC_MOVE_PAN = 8,
FC_MOVE_TILT = 9,
FC_MOVE_ZOOM = 10,
FC_HAVE_PRESET = 11,
FC_CAN_APROVE = 12,
FC_CAN_CLEANUP = 13,
FC_RESET = 14,
FC_RECORD_DATA = 15,
FC_LIGHT_ON = 16,
FC_SUGGEST = 17
} nodeCaps;
typedef enum E_CapabilityFlags{
FCF_ALARM_INIT = 1,
FCF_ALARM_RCPT = 2,
FCF_IMAGE_ASC = 4,
FCF_VIDEO_ASC = 8,
FCF_AUDIO_ASC = 16,
FCF_FINGER_ASC = 32,
FCF_CODE_ASC = 64,
FCF_RFID_ASC = 128,
FCF_MOVE_PAN = 256,
FCF_MOVE_TILT = 512,
FCF_MOVE_ZOOM = 1024,
FCF_HAVE_PRESET = 2048,
FCF_CAN_APROVE = 4096,
FCF_CAN_CLEANUP = 8192,
FCF_RESET = 16384,
FCF_RECORD_DATA = 32768,
FCF_LIGHT_ON = 65536,
FCF_SUGGEST = 131072
} nodeCapFlag;
typedef enum E_AccessLevels{
AL_NONE = 0,
AL_TREAT = 1,
AL_SUSPISIOUSE,
AL_IDENT,
AL_GUEST,
AL_OPERATOR,
AL_OPERATOR_PLUS,
AL_ADMINISTRATOR,
AL_GOD
} rgooseAccesLevel, * p_RgooseAccesLevel;
typedef struct S_Persone{
uint32_t db_id;
rgooseAccesLevel access;
UOID uid;
} rgoosePersone, *pRgoosePersone;
#endif