chen
2025-05-16 4cdc4b3d488e15b1d6572bdcd61a2ce92d0c8c9b
keil/include/components/internet/src/Internet.c
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,128 @@
/*******************************************************************************
 * File Name         : Internet.c
 * Description       :
 * Created on        : 2018å¹´5月26日
 * Author            : æœé”®
 *******************************************************************************/
/*******************************************************************************
 *                              Include Files                                  *
 *******************************************************************************/
#include "Internet.h"
#include "AIR780EDriver.h"
#include "AIR780EFSM.h"
/*******************************************************************************
 *                                  Macro                                      *
 *******************************************************************************/
/*******************************************************************************
 *                             Type Definition                                 *
 *******************************************************************************/
/*******************************************************************************
 *                             Local Variable                                  *
 *******************************************************************************/
/*******************************************************************************
 *                        Local Function Declaration                           *
 *******************************************************************************/
/*******************************************************************************
 *                             Local Function                                  *
 *******************************************************************************/
/*******************************************************************************
 *                             Global Function                                 *
 *******************************************************************************/
/*******************************************************************************
 * Function Name     : Internet_Poll
 * Description       :
 * Input             :
 * Output            :
 * Return            :
 * Author            : æœé”®
 * Modified Date:    : 2018å¹´5月26日
 *******************************************************************************/
HIDO_INT32 Internet_Poll(void)
{
    HIDO_FSMEventExecute(HIDO_FSM(AIR780E), AIR780E_EVENT_POLL, HIDO_NULL);
    return HIDO_OK;
}
/*******************************************************************************
 * Function Name     : Internet_Poll
 * Description       :
 * Input             :
 * Output            :
 * Return            :
 * Author            : æœé”®
 * Modified Date:    : 2018å¹´5月26日
 *******************************************************************************/
HIDO_INT32 Internet_DebugOn(void)
{
    AIR780EDriver_DebugOn();
    return HIDO_OK;
}
/*******************************************************************************
 * Function Name     : SIM8xxDriver_DebugOff
 * Description       :
 * Input             :
 * Output            :
 * Return            :
 * Author            : æœé”®
 * Modified Date:    : 2018å¹´5月22日
 *******************************************************************************/
HIDO_INT32 Internet_DebugOff(void)
{
    AIR780EDriver_DebugOff();
    return HIDO_OK;
}
/*******************************************************************************
 * Function Name     : Internet_Poll
 * Description       :
 * Input             :
 * Output            :
 * Return            :
 * Author            : æœé”®
 * Modified Date:    : 2018å¹´5月26日
 *******************************************************************************/
HIDO_BOOL Internet_IsIPReady(void)
{
    return AIR780E_IsIPReady();
}
/*******************************************************************************
 * Function Name     : Internet_Poll
 * Description       :
 * Input             :
 * Output            :
 * Return            :
 * Author            : æœé”®
 * Modified Date:    : 2018å¹´5月26日
 *******************************************************************************/
HIDO_INT32 Internet_Init(void)
{
    if (AIR780EDriver_Init() != HIDO_OK)
    {
        return HIDO_ERR;
    }
#if 0
    if (TTS_Init() != HIDO_OK)
    {
        return HIDO_ERR;
    }
    if (TONE_Init() != HIDO_OK)
    {
        return HIDO_ERR;
    }
#endif
    return HIDO_OK;
}