67 lines
1.7 KiB
C
67 lines
1.7 KiB
C
/*
|
|
* File : at_device_w60x.h
|
|
* This file is part of RT-Thread RTOS
|
|
* COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2019-05-16 chenyong first version
|
|
*/
|
|
|
|
#ifndef __AT_DEVICE_W60X_H__
|
|
#define __AT_DEVICE_W60X_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <at_device.h>
|
|
|
|
/* The maximum number of sockets supported by the w60x device */
|
|
#define AT_DEVICE_W60X_SOCKETS_NUM 20
|
|
|
|
struct at_device_w60x
|
|
{
|
|
char *device_name;
|
|
char *client_name;
|
|
|
|
char *wifi_ssid;
|
|
char *wifi_password;
|
|
size_t recv_line_num;
|
|
struct at_device device;
|
|
|
|
void *user_data;
|
|
};
|
|
|
|
#ifdef AT_USING_SOCKET
|
|
|
|
/* w60x device socket initialize */
|
|
int w60x_socket_init(struct at_device *device);
|
|
|
|
/* w60x device class socket register */
|
|
int w60x_socket_class_register(struct at_device_class *class);
|
|
|
|
#endif /* AT_USING_SOCKET */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __AT_DEVICE_W60X_H__ */
|