59 #if !(defined CONF_WILC_USE_1000_REV_B || defined CONF_WILC_USE_3000_REV_A) 60 #error "Please define either CONF_WILC_USE_1000_REV_B or CONF_WILC_USE_3000_REV_A before compiling the host driver" 67 #define M2M_HIF_MAX_PACKET_SIZE (1600 - 4) 71 #define M2M_HIF_HDR_OFFSET (sizeof(tstrHifHdr) + 4) 97 unsigned char u8Opcode;
98 unsigned short u16Length;
99 unsigned char __PAD32__[4];
161 uint8 *pu8DataBuf,
uint16 u16DataSize,
uint16 u16DataOffset);
185 sint8 hif_send_optimized(uint8 u8Gid, uint8 u8Opcode, uint8* buffer,
uint16 u16DataSize);
NMI_API sint8 hif_deinit(void *arg)
To Deinitialize HIF layer.
This module contains common APIs declarations.
uint32 u32RcvBuffSize
Definition: m2m_hif.h:91
NMI_API sint8 hif_chip_sleep_sc(void)
To clear the chip count only but keep the chip awake.
NMI_API sint8 hif_chip_sleep(void)
To make the chip sleep.
void(* tpfHifCallBack)(uint8 u8OpCode, uint16 u16DataSize, uint8 *pu8Buff)
used to point to Wi-Fi call back function depend on Arduino project or other projects.
Definition: m2m_hif.h:118
NMI_API sint8 hif_handle_isr(void)
Handle interrupt received from NMC1500 firmware.
unsigned char u8Opcode
Definition: m2m_hif.h:80
NMI_API uint8 hif_get_sleep_mode(void)
Get the sleep mode of the HIF layer.
uint8 * pu8RcvBuff
Definition: m2m_hif.h:90
unsigned short u16Length
Definition: m2m_hif.h:81
#define NMI_API
Definition: nm_bsp.h:51
signed char sint8
Range of values between -128 to 127.
Definition: nm_bsp.h:123
NMI_API void hif_set_sleep_mode(uint8 u8Pstype)
Set the sleep mode of the HIF layer.
NMI_API sint8 hif_chip_wake(void)
To Wakeup the chip.
NMI_API sint8 hif_set_receive_buffer(void *pvBuffer, uint16 u16BufferLen)
Handle interrupt received from NMC1500 firmware.
Structure to hold HIF Init Param.
Definition: m2m_hif.h:88
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 u8Gid
Definition: m2m_hif.h:79
Structure to hold HIF header.
Definition: m2m_hif.h:77
unsigned short uint16
Range of values between 0 to 65535.
Definition: ahdlc.cpp:46