Microchip® Advanced Software Framework

nm_bus_wrapper_saml21.c File Reference

This module contains NMC1000 bus wrapper APIs implementation.

Copyright (c) 2016-2021 Microchip Technology Inc. and its subsidiaries.

#include <stdio.h>
#include "bsp/include/nm_bsp.h"
#include "common/include/nm_common.h"
#include "bus_wrapper/include/nm_bus_wrapper.h"
#include "asf.h"
#include "conf_winc.h"

Macros

#define NM_BUS_MAX_TRX_SZ   256
 

Functions

sint8 nm_bus_deinit (void)
 De-initialize the bus wrapper. More...
 
sint8 nm_bus_init (void *pvinit)
 
sint8 nm_bus_ioctl (uint8 u8Cmd, void *pvParameter)
 
sint8 nm_bus_reinit (void *config)
 

Variables

tstrNmBusCapabilities egstrNmBusCapabilities
 

#define NM_BUS_MAX_TRX_SZ   256

nm_bus_deinit ( void  )

De-initialize the bus wrapper.

Returns
ZERO in case of success and M2M_ERR_BUS_FAIL in case of failure

References port_config::direction, i2c_master_disable(), i2c_master_instance, port_config::input_pull, M2M_SUCCESS, master, port_get_config_defaults(), PORT_PIN_DIR_INPUT, PORT_PIN_PULL_NONE, result, and spi_disable().

Referenced by nm_bus_iface_deinit().

sint8 nm_bus_reinit ( void *  config)

References M2M_SUCCESS.

tstrNmBusCapabilities egstrNmBusCapabilities
Initial value:
=
{
}
#define NM_BUS_MAX_TRX_SZ
Definition: nm_bus_wrapper_saml21.c:42

Referenced by nm_read_block(), and nm_write_block().