Functions
Functions
Collaboration diagram for Functions:

Functions

sint8 nm_bsp_deinit (void)
 De-iInitialize BSP. More...
 
sint8 nm_bsp_init (void)
 
void nm_bsp_interrupt_ctrl (uint8 u8Enable)
 Enable/Disable interrupts. More...
 
void nm_bsp_register_isr (tpfNmBspIsr pfIsr)
 
void nm_bsp_reset (void)
 Reset WINC1500 SoC by setting CHIP_EN and RESET_N signals low, CHIP_EN high then RESET_N high. More...
 
void nm_bsp_sleep (uint32 u32TimeMsec)
 

Detailed Description

Function Documentation

◆ nm_bsp_deinit()

nm_bsp_deinit ( void  )

De-iInitialize BSP.

De-initialization for BSP (Board Support Package)

Precondition
Initialize nm_bsp_init first
Note
Implementation of this function is host dependent.
Warning
Omission may lead to unknown behavior in case of soft reset.
See also
nm_bsp_init
Returns
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.
0 in case of success and -1 in case of failure

Definition at line 89 of file nm_bsp_same70.c.

◆ nm_bsp_init()

sint8 nm_bsp_init ( void  )

Initialization for BSP 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.

Note
Implementation of this function is host dependent.
Warning
Omission will lead to unavailability of host communication.
Returns
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.

Definition at line 71 of file nm_bsp_same70.c.

◆ nm_bsp_interrupt_ctrl()

void nm_bsp_interrupt_ctrl ( uint8  u8Enable)

Enable/Disable interrupts.

Synchronous enable/disable interrupts function

Parameters
[in]u8Enable'0' disable interrupts. '1' enable interrupts
See also
tpfNmBspIsr
Note
Implementation of this function is host dependent and called by HIF layer.
Returns
None

Definition at line 154 of file nm_bsp_same70.c.

◆ nm_bsp_register_isr()

void nm_bsp_register_isr ( tpfNmBspIsr  pfIsr)

Register ISR (Interrupt Service Routine) in the initialization of HIF (Host Interface) Layer. When the interrupt trigger the BSP layer should call the pfisr function once inside the interrupt.

Parameters
[in]pfIsrPointer to ISR handler in HIF
Warning
Make sure that ISR for IRQ pin for WINC is disabled by default in your implementation.
Note
Implementation of this function is host dependent and called by HIF layer.
See also
tpfNmBspIsr
Returns
None

Definition at line 130 of file nm_bsp_same70.c.

◆ nm_bsp_reset()

nm_bsp_reset ( void  )

Reset WINC1500 SoC by setting CHIP_EN and RESET_N signals low, CHIP_EN high then RESET_N high.

Resetting NMC1500 SoC 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 timing between signals please review the WINC data-sheet

Precondition
Initialize nm_bsp_init first
Note
Implementation of this function is host dependent and called by HIF layer.
See also
nm_bsp_init
Returns
None

Definition at line 101 of file nm_bsp_same70.c.

◆ nm_bsp_sleep()

void nm_bsp_sleep ( uint32  u32TimeMsec)

Sleep in units of milliseconds.
This function is used by HIF Layer as required in various situations.

Parameters
[in]u32TimeMsecTime unit in milliseconds
Precondition
Initialize nm_bsp_init first
Warning
Maximum value must nor exceed 4294967295 milliseconds which is equal to 4294967.295 seconds.
Note
Implementation of this function is host dependent.
See also
nm_bsp_init
Returns
None

Definition at line 117 of file nm_bsp_same70.c.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:18:00