41893283a99925057a92b0f077f5b9692e0f70a0
[mardrone] / mardrone / ARDrone_SDK_Version_1_8_20110726 / ARDroneLib / Soft / Lib / ardrone_tool / Com / config_wifi.h
1 #ifndef _CONFIG_WIFI_H_
2 #define _CONFIG_WIFI_H_
3
4 #ifndef _CONFIG_COM_H_
5 #error "You cannot include config_wifi.h. Please include config_com.h instead."
6 #endif
7
8
9 #include <VP_Com/vp_com.h>
10
11 // Each tools must implement this functions
12 extern vp_com_t*             wifi_com(void);
13 extern vp_com_config_t*      wifi_config(void);
14 extern vp_com_connection_t*  wifi_connection(void);
15
16 void wifi_config_socket(vp_com_socket_t* socket, VP_COM_SOCKET_TYPE type, int32_t port, const char* serverhost);
17
18 #ifdef USE_NAVDATA_IP
19   #define COM_NAVDATA()             wifi_com()
20   #define COM_CONFIG_NAVDATA()      wifi_config()
21   #define COM_CONNECTION_NAVDATA()  wifi_connection()
22   #define COM_CONFIG_SOCKET_NAVDATA(socket, type, opt, serverhost)  wifi_config_socket(socket, type, opt, serverhost)
23 #endif // USE_NAVDATA_IP
24
25 #ifdef USE_AT_IP
26   #define COM_AT()                  wifi_com()
27   #define COM_CONFIG_AT()           wifi_config()
28   #define COM_CONNECTION_AT()       wifi_connection()
29   #define COM_CONFIG_SOCKET_AT(socket, type, opt, serverhost)  wifi_config_socket(socket, type, opt, serverhost)
30 #endif // USE_NAVDATA_IP
31
32 #ifdef USE_VIDEO_IP
33   #define COM_VIDEO()               wifi_com()
34   #define COM_CONFIG_VIDEO()        wifi_config()
35   #define COM_CONNECTION_VIDEO()    wifi_connection()
36   #define COM_CONFIG_SOCKET_VIDEO(socket, type, opt, serverhost)  wifi_config_socket(socket, type, opt, serverhost)
37
38   #define COM_RAW_CAPTURE()               wifi_com()
39   #define COM_CONFIG_RAW_CAPTURE()        wifi_config()
40   #define COM_CONNECTION_RAW_CAPTURE()    wifi_connection()
41   #define COM_CONFIG_SOCKET_RAW_CAPTURE(socket, type, opt, serverhost)  wifi_config_socket(socket, type, opt, serverhost)
42 #endif // USE_VIDEO_IP
43
44 #define COM_AUTH()               wifi_com()
45 #define COM_CONFIG_AUTH()        wifi_config()
46 #define COM_CONNECTION_AUTH()    wifi_connection()
47 #define COM_CONFIG_SOCKET_AUTH(socket, type, opt, serverhost)  wifi_config_socket(socket, type, opt, serverhost)
48
49 #define COM_CONTROL()                  wifi_com()
50 #define COM_CONFIG_CONTROL()           wifi_config()
51 #define COM_CONNECTION_CONTROL()       wifi_connection()
52 #define COM_CONFIG_SOCKET_CONTROL(socket, type, opt, serverhost)  wifi_config_socket(socket, type, opt, serverhost)
53
54 #define COM_REMOTE_CONSOLE()               wifi_com()
55 #define COM_CONFIG_REMOTE_CONSOLE()        wifi_config()
56 #define COM_CONNECTION_REMOTE_CONSOLE()    wifi_connection()
57 #define COM_CONFIG_SOCKET_REMOTE_CONSOLE(socket, type, opt, serverhost)  wifi_config_socket(socket, type, opt, serverhost)
58
59 #endif // _CONFIG_WIFI_H_