Microchip® Advanced Software Framework

nmuart.h File Reference

This module contains WINC3400 UART protocol bus APIs implementation.

Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.

Functions

sint8 nm_uart_read_block (uint32 u32Addr, uint8 *puBuf, uint16 u16Sz)
 
uint32 nm_uart_read_reg (uint32 u32Addr)
 
sint8 nm_uart_read_reg_with_ret (uint32 u32Addr, uint32 *pu32RetVal)
 
sint8 nm_uart_reboot_cmd (void)
 Sends a command to the MCU to force the reboot of the WINC. More...
 
sint8 nm_uart_reconfigure (void *ptr)
 
sint8 nm_uart_sync_cmd (void)
 Check COM Port. More...
 
sint8 nm_uart_write_block (uint32 u32Addr, uint8 *puBuf, uint16 u16Sz)
 
sint8 nm_uart_write_reg (uint32 u32Addr, uint32 u32Val)
 

sint8 nm_uart_read_block ( uint32  u32Addr,
uint8 puBuf,
uint16  u16Sz 
)

Referenced by p_nm_read_block().

uint32 nm_uart_read_reg ( uint32  u32Addr)

Referenced by nm_read_reg().

sint8 nm_uart_read_reg_with_ret ( uint32  u32Addr,
uint32 pu32RetVal 
)

Referenced by nm_read_reg_with_ret().

nm_uart_reboot_cmd ( void  )

Sends a command to the MCU to force the reboot of the WINC.

Returns
M2M_SUCCESS in case of success and M2M_ERR_BUS_FAIL in case of failure
sint8 nm_uart_reconfigure ( void *  ptr)
nm_uart_sync_cmd ( void  )

Check COM Port.

Returns
M2M_SUCCESS in case of success and M2M_ERR_BUS_FAIL in case of failure
sint8 nm_uart_write_block ( uint32  u32Addr,
uint8 puBuf,
uint16  u16Sz 
)

Referenced by p_nm_write_block().

sint8 nm_uart_write_reg ( uint32  u32Addr,
uint32  u32Val 
)

Referenced by nm_write_reg().