netmain.h 1.0 KB

123456789101112131415161718192021222324252627
  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 _NET_API_H_
  13. #define _NET_API_H_
  14. #if QUEC_USBNET_DEBUG
  15. #define OSI_LOCAL_LOG_LEVEL OSI_LOG_LEVEL_INFO
  16. #endif
  17. void net_init();
  18. osiThread_t *netGetTaskID(void);
  19. //void PPP_netif_create(uint8_t nCid, uint8_t nSimId, int channelId);
  20. //void PPP_netif_destory(uint8_t nCid, uint8_t nSim);
  21. void TCPIP_netif_create(uint8_t nCid, uint8_t nSimId);
  22. void TCPIP_netif_destory(uint8_t nCid, uint8_t nSimId);
  23. struct netif *getGprsGobleNetIf(uint8_t nSim, uint8_t nCid);
  24. #endif