Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: NNN50_CE_Test_UDP NNN50_linux_firmware NNN50_SoftAP_HelloWorld NNN50_BLEWIFISensor ... more
m2m_hif.c File Reference
This module contains M2M host interface APIs implementation. More...
Go to the source code of this file.
Functions | |
| static void | m2m_hif_cb (uint8 u8OpCode, uint16 u16DataSize, uint32 u32Addr) |
| WiFi call back function. | |
| sint8 | hif_chip_wake (void) |
| To Wakeup the chip. | |
| void | hif_set_sleep_mode (uint8 u8Pstype) |
| Set the sleep mode of the HIF layer. | |
| uint8 | hif_get_sleep_mode (void) |
| Get the sleep mode of the HIF layer. | |
| sint8 | hif_chip_sleep_sc (void) |
| To clear the chip sleep but keep the chip sleep. | |
| sint8 | hif_chip_sleep (void) |
| To make the chip sleep. | |
| sint8 | hif_init (void *arg) |
| To initialize HIF layer. | |
| sint8 | hif_deinit (void *arg) |
| To De-initialize HIF layer. | |
| sint8 | hif_send (uint8 u8Gid, uint8 u8Opcode, uint8 *pu8CtrlBuf, uint16 u16CtrlBufSize, uint8 *pu8DataBuf, uint16 u16DataSize, uint16 u16DataOffset) |
| Send packet using host interface. | |
| static sint8 | hif_isr (void) |
| Host interface interrupt service routine. | |
| sint8 | hif_handle_isr (void) |
| Handle interrupt received from NMC1500 firmware. | |
Detailed Description
This module contains M2M host interface APIs implementation.
Copyright (c) 2016-2017 Atmel Corporation. All rights reserved.
Definition in file m2m_hif.c.
Function Documentation
| NMI_API sint8 hif_chip_sleep | ( | void | ) |
| NMI_API sint8 hif_chip_sleep_sc | ( | void | ) |
| NMI_API sint8 hif_chip_wake | ( | void | ) |
| NMI_API sint8 hif_deinit | ( | void * | arg ) |
| NMI_API uint8 hif_get_sleep_mode | ( | void | ) |
| hif_handle_isr | ( | void | ) |
| NMI_API sint8 hif_init | ( | void * | arg ) |
| hif_isr | ( | void | ) | [static] |
| NMI_API sint8 hif_send | ( | uint8 | u8Gid, |
| uint8 | u8Opcode, | ||
| uint8 * | pu8CtrlBuf, | ||
| uint16 | u16CtrlBufSize, | ||
| uint8 * | pu8DataBuf, | ||
| uint16 | u16DataSize, | ||
| uint16 | u16DataOffset | ||
| ) |
Send packet using host interface.
- Parameters:
-
[in] u8Gid Group ID. [in] u8Opcode Operation ID. [in] pu8CtrlBuf Pointer to the Control buffer. [in] u16CtrlBufSize Control buffer size. [in] u16DataOffset Packet Data offset. [in] pu8DataBuf Packet buffer Allocated by the caller. [in] u16DataSize Packet buffer size (including the HIF header).
- Returns:
- The function shall return ZERO for successful operation and a negative value otherwise.
| NMI_API void hif_set_sleep_mode | ( | uint8 | u8Pstype ) |
Generated on Wed Jul 13 2022 16:32:37 by
1.7.2