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.
 
 
 
 
 
 

41 lines
1.1 KiB

#ifndef __ARGUS_REMOTE_NETWORK_CONNECTOR_DATA__
#define __ARGUS_REMOTE_NETWORK_CONNECTOR_DATA__
#include "../../components/base/basicFunctionality.h"
#define ARGUS_START_SERVER_FLAG 0x55
#define ARGUS_START_CLIENT_FLAG 0x88
#define ARGUS_HEADER_SIZE 5
//Proto uses CRC16
#define ARGUS_CHECKSUM_SIZE 2
#define ARGUS_DATA_MSG_REGISTER 0x20
#define ARGUS_RPC_STAGE_INIT 0x00
#define ARGUS_RPC_STAGE_CONNECT 0x01
#define ARGUS_RPC_STAGE_WAIT_RECONNECT 0x02
#define ARGUS_RPC_STAGE_UPDATE_INFO 0x03
#define ARGUS_RPC_STAGE_IDLE 0xFF
typedef struct S_ARGUS_DATA_HEADER{
uint8_t START_FLAG;
uint32_t SIZE;
}ARGUS_DATA_HEADER;
typedef struct S_ARGUS_DATA_VIDEO_SEGMENT{
char data_dir[10];
char name[40];
uint8_t fps;
uint64_t dts_ms;
uint32_t data_size;
uint32_t chunk_size;
uint32_t chunk_id;
//Must Provide Info about targets << target -> frame >>
}ARGUS_DATA_VIDEO_SEGMENT;
size_t argus_rpc_finishupPackage( uint8_t *data, uint32_t size );
#endif