WINC1500 IoT Software APIs: nm_bsp_init

WINC1500 IoT Software API

WINC1500 IoT Software APIs  19.5.2
WINC Software API Reference Manual
nm_bsp_init

Functions

sint8 nm_bsp_init (void)
 

Detailed Description

Initialization for BSP (Board Support Package) such as Reset and Chip Enable Pins for WINC, delays, register ISR, enable/disable IRQ for WINC, ...etc. You must use this function in the head of your application to enable WINC and Host Driver to communicate with each other.

Function Documentation

◆ nm_bsp_init()

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.

The nm_bsp_init function is the first function that should be called at the beginning of every application to initialize the BSP and the WINC board. Otherwise, the rest of the BSP function calls will return with failure. This function should also be called after the WINC has been switched off with a successful call to "nm_bsp_deinit" in order to reinitialize the BSP before the user can use any of the WINC API functions again. After the function initialize the WINC. Hard reset must be applied to start the WINC board.

Note
Implementation of this function is host dependent.
Warning
inappropriate use of this function will lead to unavailability of host-chip communication.
See also
nm_bsp_deinit, nm_bsp_reset
Returns
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.
Generated on Thu Jan 26 2017 22:15:21 for WINC1500 IoT Software APIs by   doxygen 1.8.13