at_testCmd,at_queryCmd,at_setupCmd,at_exeCmd

at_wifiCmd.h

/*
 * File	: at_wifiCmd.h
 * This file is part of Espressif's AT+ command set program.
 * Copyright (C) 2013 - 2016, Espressif Systems
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of version 3 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * 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, see <http://www.gnu.org/licenses/>.
 */
#ifndef __AT_WIFICMD_H
#define __AT_WIFICMD_H

void at_testCmdCwmode(uint8_t id);
void at_queryCmdCwmode(uint8_t id);
void at_setupCmdCwmode(uint8_t id, char *pPara);

//void at_testCmdCwjap(uint8_t id);
void at_queryCmdCwjap(uint8_t id);
void at_setupCmdCwjap(uint8_t id, char *pPara);

void at_setupCmdCwlap(uint8_t id, char *pPara);
void at_exeCmdCwlap(uint8_t id);

void at_testCmdCwqap(uint8_t id);
void at_exeCmdCwqap(uint8_t id);

void at_queryCmdCwsap(uint8_t id);
void at_setupCmdCwsap(uint8_t id, char *pPara);

void at_exeCmdCwlif(uint8_t id);

void at_queryCmdCwdhcp(uint8_t id);
void at_setupCmdCwdhcp(uint8_t id, char *pPara);

void at_queryCmdCipstamac(uint8_t id);
void at_setupCmdCipstamac(uint8_t id, char *pPara);

void at_queryCmdCipapmac(uint8_t id);
void at_setupCmdCipapmac(uint8_t id, char *pPara);

void at_queryCmdCipsta(uint8_t id);
void at_setupCmdCipsta(uint8_t id, char *pPara);

void at_queryCmdCipap(uint8_t id);
void at_setupCmdCipap(uint8_t id, char *pPara);

#endif

 

at.h

/*
 * File	: at.h
 * This file is part of Espressif's AT+ command set program.
 * Copyright (C) 2013 - 2016, Espressif Systems
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of version 3 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * 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, see <http://www.gnu.org/licenses/>.
 */
#ifndef __AT_H
#define __AT_H

#include "c_types.h"

//#define at_busyTaskPrio        1
//#define at_busyTaskQueueLen    4

//#define ali

#define at_recvTaskPrio        0
#define at_recvTaskQueueLen    64

#define at_procTaskPrio        1
#define at_procTaskQueueLen    1

#define at_backOk        uart0_sendStr("\r\nOK\r\n")
#define at_backError     uart0_sendStr("\r\nERROR\r\n")
#define at_backTeError   "+CTE ERROR: %d\r\n"

typedef enum{
  at_statIdle,
  at_statRecving,
  at_statProcess,
  at_statIpSending,
  at_statIpSended,
  at_statIpTraning
}at_stateType;

typedef enum{
  m_init,
  m_wact,
  m_gotip,
  m_linked,
  m_unlink,
  m_wdact
}at_mdStateType;

typedef struct
{
	char *at_cmdName;
	int8_t at_cmdLen;
  void (*at_testCmd)(uint8_t id);
  void (*at_queryCmd)(uint8_t id);
  void (*at_setupCmd)(uint8_t id, char *pPara);
  void (*at_exeCmd)(uint8_t id);
}at_funcationType;

typedef struct
{
  uint32_t baud;
  uint32_t saved;
}at_uartType;

void at_init(void);
void at_cmdProcess(uint8_t *pAtRcvData);

#endif

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值