Customized SNICInterface

Fork of NySNICInterface by Ryo Iizuka

Committer:
kishino
Date:
Fri Nov 14 00:52:31 2014 +0000
Revision:
43:d80bbb12ffe6
Parent:
42:17d89443d899
Child:
44:91038c77cdc5
It was reviewed and modified the Receive logic of socket communication(TCP and UDP).

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kishino 39:a1233ca02edf 1 /* Copyright (C) 2014 Murata Manufacturing Co.,Ltd., MIT License
kishino 41:1c1b5ad4d491 2 * muRata, SWITCH SCIENCE Wi-FI module TypeYD SNIC-UART.
kishino 25:67183ed15708 3 *
kishino 39:a1233ca02edf 4 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
kishino 39:a1233ca02edf 5 * and associated documentation files (the "Software"), to deal in the Software without restriction,
kishino 39:a1233ca02edf 6 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
kishino 39:a1233ca02edf 7 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
kishino 39:a1233ca02edf 8 * furnished to do so, subject to the following conditions:
kishino 25:67183ed15708 9 *
kishino 39:a1233ca02edf 10 * The above copyright notice and this permission notice shall be included in all copies or
kishino 39:a1233ca02edf 11 * substantial portions of the Software.
kishino 25:67183ed15708 12 *
kishino 39:a1233ca02edf 13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
kishino 39:a1233ca02edf 14 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
kishino 39:a1233ca02edf 15 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
kishino 39:a1233ca02edf 16 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
kishino 39:a1233ca02edf 17 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
kishino 39:a1233ca02edf 18 */
kishino 25:67183ed15708 19 #ifndef _MURATA_OBJECT_H_
kishino 25:67183ed15708 20 #define _MURATA_OBJECT_H_
kishino 25:67183ed15708 21 #include "mbed.h"
kishino 25:67183ed15708 22
kishino 43:d80bbb12ffe6 23 #define _DEBUG /* If this definition is enabled, debug log is output. */
kishino 43:d80bbb12ffe6 24 //#define _FUNC_TRACE
kishino 40:b6b10c22a121 25
kishino 40:b6b10c22a121 26 #ifdef _DEBUG
kishino 42:17d89443d899 27 extern Serial pc;
kishino 40:b6b10c22a121 28 #define DEBUG_PRINT(...) { pc.printf(__VA_ARGS__);}
kishino 43:d80bbb12ffe6 29
kishino 43:d80bbb12ffe6 30 #ifdef _FUNC_TRACE
kishino 43:d80bbb12ffe6 31 #define FUNC_IN() { pc.printf( "%s[%d]%s[tid:%x] IN\r\n", __FILE__, __LINE__, __FUNCTION__, Thread::gettid());}
kishino 43:d80bbb12ffe6 32 #define FUNC_OUT() { pc.printf( "%s[%d]%s[tid:%x] OUT\r\n", __FILE__, __LINE__, __FUNCTION__, Thread::gettid() );}
kishino 43:d80bbb12ffe6 33 #else
kishino 43:d80bbb12ffe6 34 #define FUNC_IN()
kishino 43:d80bbb12ffe6 35 #define FUNC_OUT()
kishino 43:d80bbb12ffe6 36 #endif
kishino 43:d80bbb12ffe6 37
kishino 40:b6b10c22a121 38 #else
kishino 40:b6b10c22a121 39 #define DEBUG_PRINT(...)
kishino 43:d80bbb12ffe6 40 #define FUNC_IN()
kishino 43:d80bbb12ffe6 41 #define FUNC_OUT()
kishino 40:b6b10c22a121 42 #endif
kishino 40:b6b10c22a121 43
kishino 25:67183ed15708 44 class C_MurataObject{
kishino 25:67183ed15708 45
kishino 26:f2e1030964e4 46 };
kishino 25:67183ed15708 47
kishino 25:67183ed15708 48 #endif