Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of cc3000_hostdriver_mbedsocket by
cc3000_netapp.h
00001 /***************************************************************************** 00002 * 00003 * C++ interface/implementation created by Martin Kojtal (0xc0170). Thanks to 00004 * Jim Carver and Frank Vannieuwkerke for their inital cc3000 mbed port and 00005 * provided help. 00006 * 00007 * This version of "host driver" uses CC3000 Host Driver Implementation. Thus 00008 * read the following copyright: 00009 * 00010 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ 00011 * 00012 * Redistribution and use in source and binary forms, with or without 00013 * modification, are permitted provided that the following conditions 00014 * are met: 00015 * 00016 * Redistributions of source code must retain the above copyright 00017 * notice, this list of conditions and the following disclaimer. 00018 * 00019 * Redistributions in binary form must reproduce the above copyright 00020 * notice, this list of conditions and the following disclaimer in the 00021 * documentation and/or other materials provided with the 00022 * distribution. 00023 * 00024 * Neither the name of Texas Instruments Incorporated nor the names of 00025 * its contributors may be used to endorse or promote products derived 00026 * from this software without specific prior written permission. 00027 * 00028 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00029 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00030 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 00031 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 00032 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00033 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00034 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00035 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00036 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00037 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00038 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00039 * 00040 *****************************************************************************/ 00041 #ifndef CC3000_NETAPP_H 00042 #define CC3000_NETAPP_H 00043 00044 #define MIN_TIMER_VAL_SECONDS 20 00045 #define MIN_TIMER_SET(t) if ((0 != t) && (t < MIN_TIMER_VAL_SECONDS)) \ 00046 { \ 00047 t = MIN_TIMER_VAL_SECONDS; \ 00048 } 00049 00050 00051 #define NETAPP_DHCP_PARAMS_LEN (20) 00052 #define NETAPP_SET_TIMER_PARAMS_LEN (20) 00053 #define NETAPP_SET_DEBUG_LEVEL_PARAMS_LEN (4) 00054 #define NETAPP_PING_SEND_PARAMS_LEN (16) 00055 00056 00057 typedef struct _netapp_dhcp_ret_args_t 00058 { 00059 uint8_t aucIP[4]; 00060 uint8_t aucSubnetMask[4]; 00061 uint8_t aucDefaultGateway[4]; 00062 uint8_t aucDHCPServer[4]; 00063 uint8_t aucDNSServer[4]; 00064 }tNetappDhcpParams; 00065 00066 typedef struct _netapp_ipconfig_ret_args_t 00067 { 00068 uint8_t aucIP[4]; 00069 uint8_t aucSubnetMask[4]; 00070 uint8_t aucDefaultGateway[4]; 00071 uint8_t aucDHCPServer[4]; 00072 uint8_t aucDNSServer[4]; 00073 uint8_t uaMacAddr[6]; 00074 uint8_t uaSSID[32]; 00075 }tNetappIpconfigRetArgs; 00076 00077 00078 /*Ping send report parameters*/ 00079 typedef struct _netapp_pingreport_args 00080 { 00081 uint32_t packets_sent; 00082 uint32_t packets_received; 00083 uint32_t min_round_time; 00084 uint32_t max_round_time; 00085 uint32_t avg_round_time; 00086 } netapp_pingreport_args_t; 00087 00088 #endif
Generated on Fri Jul 15 2022 17:19:25 by
1.7.2
