/*******************************************************************************
|
* 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;
|
}
|