at_cmd_tcpip.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /* Copyright (C) 2016 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef __AT_CMD_TCPIP_H__
  13. #define __AT_CMD_TCPIP_H__
  14. #include "at_command.h"
  15. typedef struct
  16. {
  17. uint8_t nMuxIndex;
  18. atDispatch_t *dispatch;
  19. } stAT_Trans_Paras;
  20. typedef struct
  21. {
  22. uint8_t *buff; // buffer, shared by all mode
  23. uint32_t buffLen; // existed buffer data byte count
  24. uint32_t buffSize; // buffer size
  25. osiMutex_t *mutex;
  26. } BYPASS_BUFFER_T;
  27. typedef struct
  28. {
  29. uint32_t uMuxIndex;
  30. uint32_t pos;
  31. uint32_t size;
  32. uint8_t *data;
  33. } tcpipAsyncCtx_t;
  34. void AT_TCPIP_CmdFunc_CIPMUX(atCommand_t *pParam);
  35. void AT_TCPIP_CmdFunc_CIPSGTXT(atCommand_t *pParam);
  36. void AT_TCPIP_CmdFunc_CIPSTART(atCommand_t *pParam);
  37. void AT_TCPIP_CmdFunc_CIPCLOSE(atCommand_t *pstPara);
  38. void AT_TCPIP_CmdFunc_CIPSTATUS(atCommand_t *pstPara);
  39. void AT_TCPIP_CmdFunc_CIFSR(atCommand_t *pstPara);
  40. void AT_TCPIP_CmdFunc_CIPSHUT(atCommand_t *pstPara);
  41. void AT_TCPIP_CmdFunc_CIICR(atCommand_t *pParam);
  42. void AT_TCPIP_CmdFunc_CIPSEND(atCommand_t *pParam);
  43. void AT_TCPIP_CmdFunc_CIPQSEND(atCommand_t *pParam);
  44. void AT_TCPIP_CmdFunc_CSTT(atCommand_t *pParam);
  45. void AT_TCPIP_CmdFunc_CIPATS(atCommand_t *pParam);
  46. void AT_TCPIP_CmdFunc_CDNSCFG(atCommand_t *pParam);
  47. void AT_TCPIP_CmdFunc_CIPSPRT(atCommand_t *pParam);
  48. void AT_TCPIP_CmdFunc_CIPHEAD(atCommand_t *pParam);
  49. void AT_TCPIP_CmdFunc_CDNSGIP(atCommand_t *pParam);
  50. void AT_TCPIP_CmdFunc_PING(atCommand_t *pParam);
  51. void AT_TCPIP_CmdFunc_PINGSTOP(atCommand_t *pParam);
  52. void AT_TCPIP_CmdFunc_CIPTKA(atCommand_t *pParam);
  53. void AT_TCPIP_CmdFunc_CIPRDTIMER(atCommand_t *pParam);
  54. void AT_TCPIP_CmdFunc_CIPRAIMODE(atCommand_t *pParam);
  55. void AT_TCPIP_CmdFunc_SSLSTART(atCommand_t *pParam);
  56. void AT_TCPIP_CmdFunc_SSLSEND(atCommand_t *pParam);
  57. void AT_TCPIP_CmdFunc_SSLCLOSE(atCommand_t *pParam);
  58. void AT_TLS_CmdFunc_SSLSETCRT(atCommand_t *pParam);
  59. void AT_TLS_CmdFunc_CFG(atCommand_t *pParam);
  60. void AT_TLS_CmdFunc_SSLOPEN(atCommand_t *pParam);
  61. void AT_TLS_CmdFunc_SSLSEND(atCommand_t *pParam); //atCommand_t *cmd;
  62. void AT_TLS_CmdFunc_SSLREAD(atCommand_t *pParam); //atCommand_t *cmd
  63. void AT_TLS_CmdFunc_SSLCLOSE(atCommand_t *pParam);
  64. void AT_TCPIP_CmdFunc_SETROUTE(atCommand_t *cmd);
  65. void AT_TCPIP_CmdFunc_UNSETROUTE(atCommand_t *cmd);
  66. #endif