Microchip® Advanced Software Framework

winc3400/wifi_drv/driver/source/nmbus.h File Reference

This module contains WINC3400 bus APIs implementation.

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

#include "common/include/nm_common.h"
#include "bus_wrapper/include/nm_bus_wrapper.h"

Functions

sint8 nm_bus_iface_deinit (void)
 Deinitialize bus interface. More...
 
sint8 nm_bus_iface_init (uint8 *pvInitVal, uint32 req_serial_number)
 
sint8 nm_bus_iface_reconfigure (void *ptr)
 
sint8 nm_bus_reset (void)
 reset bus interface More...
 
sint8 nm_read_block (uint32 u32Addr, uint8 *puBuf, uint32 u32Sz)
 
uint32 nm_read_reg (uint32 u32Addr)
 
sint8 nm_read_reg_with_ret (uint32 u32Addr, uint32 *pu32RetVal)
 
sint8 nm_write_block (uint32 u32Addr, uint8 *puBuf, uint32 u32Sz)
 
sint8 nm_write_reg (uint32 u32Addr, uint32 u32Val)
 

sint8 nm_bus_iface_deinit ( void  )

Deinitialize bus interface.

Returns
M2M_SUCCESS in case of success and M2M_ERR_BUS_FAIL in case of failure
M2M_SUCCESS in case of success and M2M_ERR_BUS_FAIL in case of failure
M2M_SUCCESS in case of success and M2M_ERR_BUS_FAIL in case of failure
Author
Samer Sarhan
Date
07 April 2014
Version
1.0
Returns
M2M_SUCCESS in case of success and M2M_ERR_BUS_FAIL in case of failure
sint8 nm_bus_iface_init ( uint8 pvInitVal,
uint32  req_serial_number 
)
sint8 nm_bus_iface_reconfigure ( void *  ptr)
sint8 nm_bus_reset ( void  )

reset bus interface

Reset bus interface.

Returns
M2M_SUCCESS in case of success and M2M_ERR_BUS_FAIL in case of failure
Version
1.0
Returns
M2M_SUCCESS in case of success and M2M_ERR_BUS_FAIL in case of failure
Version
1.0
Returns
M2M_SUCCESS in case of success and M2M_ERR_BUS_FAIL in case of failure
Version
1.0
sint8 nm_read_block ( uint32  u32Addr,
uint8 puBuf,
uint32  u32Sz 
)
uint32 nm_read_reg ( uint32  u32Addr)
sint8 nm_read_reg_with_ret ( uint32  u32Addr,
uint32 pu32RetVal 
)
sint8 nm_write_block ( uint32  u32Addr,
uint8 puBuf,
uint32  u32Sz 
)
sint8 nm_write_reg ( uint32  u32Addr,
uint32  u32Val 
)