44 #ifdef ENABLE_UNO_BOARD 45 #include "m2m_uno_hif.h" 52 #define M2M_HIF_MAX_PACKET_SIZE (1600 - 4) 56 #define M2M_HIF_HDR_OFFSET (sizeof(tstrHifHdr) + 4) void(* tpfHifCallBack)(uint8 u8OpCode, uint16 u16DataSize, uint32 u32Addr)
used to point to Wi-Fi call back function depend on Arduino project or other projects.
NMI_API sint8 hif_deinit(void *arg)
To Deinitialize HIF layer.
This module contains common APIs declarations.
signed char sint8
Range of values between -128 to 127.
Structure to hold HIF header.
NMI_API sint8 hif_chip_sleep(void)
To make the chip sleep.
sint8 hif_check_compatibility(uint16 u16HifInfo)
To check the compatibility of an image with the current driver.
unsigned short uint16
Range of values between 0 to 65535.
NMI_API uint8 hif_get_sleep_mode(void)
Get the sleep mode of the HIF layer.
sint8 hif_check_code(uint8 u8Gid, uint8 u8OpCode)
To check that a particular hif message is supported with the current driver/firmware pair...
NMI_API sint8 hif_handle_isr(void)
Handle interrupt received from NMC1500 firmware.
NMI_API sint8 hif_receive(uint32 u32Addr, uint8 *pu8Buf, uint16 u16Sz, uint8 isDone)
sint8 hif_enable_access(void)
To enable access to HIF layer, based on HIF level of Firmware. This function reads HIF level directly...
NMI_API void hif_yield(void)
Yields control from interrupt event handler.
NMI_API void hif_set_sleep_mode(uint8 u8Pstype)
Set the sleep mode of the HIF layer.
NMI_API sint8 hif_register_cb(uint8 u8Grp, tpfHifCallBack fn)
NMI_API sint8 hif_chip_wake(void)
To Wakeup the chip.
unsigned long uint32
Range of values between 0 to 4294967295.
NMI_API sint8 hif_send(uint8 u8Gid, uint8 u8Opcode, uint8 *pu8CtrlBuf, uint16 u16CtrlBufSize, uint8 *pu8DataBuf, uint16 u16DataSize, uint16 u16DataOffset)
Send packet using host interface.
unsigned char uint8
Range of values between 0 to 255.
NMI_API sint8 hif_init(void *arg)
To initialize HIF layer.