1 #ifndef _CONFIG_WIFI_H_
2 #define _CONFIG_WIFI_H_
5 #error "You cannot include config_wifi.h. Please include config_com.h instead."
9 #include <VP_Com/vp_com.h>
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);
16 void wifi_config_socket(vp_com_socket_t* socket, VP_COM_SOCKET_TYPE type, int32_t port, const char* serverhost);
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
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
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)
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
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)
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)
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)
59 #endif // _CONFIG_WIFI_H_