1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
- * All rights reserved.
- *
- * This software is supplied "AS IS" without any warranties.
- * RDA assumes no responsibility or liability for the use of the software,
- * conveys no license or title under any patent, copyright, or mask work
- * right to the product. RDA reserves the right to make changes in the
- * software without notification. RDA also make no representation or
- * warranty that such application will be suitable for the specified use
- * without further testing or modification.
- */
- #ifndef _NETDEV_INTERFACE_H_
- #define _NETDEV_INTERFACE_H_
- #include <stdint.h>
- #include <stdbool.h>
- #include <stddef.h>
- #include "osi_compiler.h"
- OSI_EXTERN_C_BEGIN
- #include "drv_ether.h"
- /**
- * \brief netdev disconnect process
- */
- void netdevDisconnect(void);
- /**
- * \brief netdev connect process
- */
- void netdevConnect(void);
- /**
- * \brief netdev process on data channel active
- */
- void netdevNetUp(void);
- /**
- * \brief netdev process on data channel deactive
- */
- void netdevNetDown(uint8_t nSimID, uint8_t nCID);
- /**
- * \brief check if netdev is connected
- *
- * \return true on connected else false
- */
- bool netdevIsConnected(void);
- /**
- * \brief init and register ether to the netdev
- */
- void netdevInit(drvEther_t *ether);
- /**
- * \brief stop the netdev
- */
- void netdevExit(void);
- void netdevCheckEthConEvt(void);
- OSI_EXTERN_C_END
- #endif
|