Delta / NNN50_WIFI_API

Dependents:   NNN50_CE_Test_UDP NNN50_linux_firmware NNN50_SoftAP_HelloWorld NNN50_BLEWIFISensor ... more

Embed: (wiki syntax)

« Back to documentation index

nm_bsp.h File Reference

nm_bsp.h File Reference

WINC BSP API Declarations. More...

Go to the source code of this file.

Typedefs

typedef void(* tpfNmBspIsr )(void)
 Pointer to function.
Used as a data type of ISR function registered by nm_bsp_register_isr.
typedef unsigned char uint8
 Range of values between 0 to 255.
typedef unsigned short uint16
 Range of values between 0 to 65535.
typedef unsigned long uint32
 Range of values between 0 to 4294967295.
typedef signed char sint8
 Range of values between -128 to 127.
typedef signed short sint16
 Range of values between -32768 to 32767.
typedef signed long sint32
 Range of values between -2147483648 to 2147483647.

Functions

sint8 nm_bsp_init (void)
 This function is used to initialize the Board Support Package (BSP) in order to prepare the WINC before it start working.
sint8 nm_bsp_deinit (void)
 This function is used to de-initialize the BSP and turn off the WINC board.
void nm_bsp_reset (void)
 Applies a hardware reset to the WINC board. The "nm_bsp_reset" is used to apply a hard reset to the WINC board by setting CHIP_EN and RESET_N signals low, then after specific delay the function will put CHIP_EN high then RESET_N high, for the detailed timing between signals please review the WINC data-sheet. After a successful call, the WINC board firmware will kick off to load and kick off the WINC firmware. This function should be called to reset the WINC firmware after the BSP is initialized and before the start of any communication with WINC board. Calling this function at any other time will result in losing the state and connections saved in the WINC board and starting again from the initial state. The host driver will need to be de-initialized before calling nm_bsp_reset and initialized again after it using the " m2m_wifi_(de)init".
void nm_bsp_sleep (uint32 u32TimeMsec)
 Used to put the host to sleep for the specified duration. Forcing the host to sleep for extended period may lead to host not being able to respond to WINC board events.It's important to be considerate while choosing the sleep period.
void nm_bsp_register_isr (tpfNmBspIsr pfIsr)
 Register the host interface interrupt service routine. WINC board utilize SPI interface to communicate with the host. This function register the SPI interrupt the notify the host whenever there is an outstanding message from the WINC board. The function should be called during the initialization of the host interface. It an internal driver function and shouldn't be called by the application.
void nm_bsp_interrupt_ctrl (uint8 u8Enable)
 Enable/Disable interrupts This function can be used to enable/disable the WINC to host interrupt as the depending on how the driver is implemented. It an internal driver function and shouldn't be called by the application.

Detailed Description

WINC BSP API Declarations.

Copyright (c) 2015 Atmel Corporation. All rights reserved.

Definition in file nm_bsp.h.