Go to the documentation of this file.
5 #ifndef ClpeClientApi_class
6 #define ClpeClientApi_class
11 #define HOST_MASTER "192.168.7.7" // Xavier network address
12 #define HOST_SLAVE "192.168.8.7"
13 #define PORT 30000 // Xavier network port
15 #define SUCCESSED 0 // successed with no error
17 #define ERROR_GETSET_COMMAND -1 // error - invalid command
18 #define ERROR_GETSET_FPS -2 // error - invalid fps value
19 #define ERROR_GETSET_COMMUNICATION -3 // error - communication fail
20 #define ERROR_GETSET_CHECKSUM -4 // error - data checksum
21 #define ERROR_GETSET_TIMESYNC -5 // error - time sync failed
22 #define ERROR_GETSET_START -6 // error - start cam
23 #define ERROR_GETSET_STOP -7 // error - stop cam
24 #define ERROR_INVALID_MCU_ID -8 // error - invalid MCU ID
25 #define ERROR_RESYNC_TIME -9 // error - time sync failed
27 #define ERROR_CONNECT_DRIVER -1 // error - can not probe driver
28 #define ERROR_CONNECT_NETWORK -2 // error - can not find network
29 #define ERROR_CONNECT_ADDRESS -3 // error - can not set address
30 #define ERROR_CONNECT_PING -4 // error - can not ping
31 #define ERROR_CONNECT_CREATE -5 // error - can not create socket
32 #define ERROR_CONNECT_CONNECT -6 // error - can not connect socket
34 #define ERROR_CHECK_CHRONY -1 // error - check chrony sync
36 #define ERROR_CHECK_CONNECT -1 // error - check connection
38 #define ERROR_START_STREAM -1 // error - start stream
39 #define ERROR_STOP_STREAM -1 // error - stop stream
69 int Clpe_GetFrameAllCam(
int *p_camera_id,
unsigned char **p_buffer,
unsigned int *p_size,
struct timeval *pt_camera_timeStamp);
70 int Clpe_GetFrameOneCam(
int camera_id,
unsigned char **p_buffer,
unsigned int *p_size,
struct timeval *pt_camera_timeStamp);
73 bool Clpe_Send(
unsigned char *s,
int mcu_id);
74 bool Clpe_Recv(
unsigned char *s,
int mcu_id);
77 int Clpe_StartCam(
char use_cam_0,
char use_cam_1,
char use_cam_2,
char use_cam_3,
int mcu_id);
int Clpe_GetXavierVersion(unsigned char *version_master)
int Clpe_SetXavierPowerOff()
int Clpe_GetCamStatus(int *status)
int(* T_CB_APP)(unsigned int inst, unsigned char *buffer, unsigned int size, struct timeval *frame_us)
int Clpe_CheckConnect(string password, int settingValue)
int Clpe_GetFrameOneCam(int camera_id, unsigned char **p_buffer, unsigned int *p_size, struct timeval *pt_camera_timeStamp)
int Clpe_GetMicomVersion(unsigned char *version_master)
int Clpe_GetFrameAllCam(int *p_camera_id, unsigned char **p_buffer, unsigned int *p_size, struct timeval *pt_camera_timeStamp)
int Clpe_StartCam(char use_cam_0, char use_cam_1, char use_cam_2, char use_cam_3, int mcu_id)
int Clpe_GetSDKVersion(unsigned char *version)
int Clpe_CheckTimeSyncStatus()
bool Clpe_Recv(unsigned char *s, int mcu_id)
int Clpe_StartStream(T_CB_APP cb_app, int use_cam_0, int use_cam_1, int use_cam_2, int use_cam_3, int display_on)
bool Clpe_Send(unsigned char *s, int mcu_id)
clpe_sdk
Author(s): Can-lab Corporation
autogenerated on Wed Oct 12 2022 02:17:28