Macros | Functions | Variables
nm_bus_wrapper_same70.c File Reference

This module contains NMC1000 bus wrapper APIs implementation. More...

#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"
Include dependency graph for nm_bus_wrapper_same70.c:

Go to the source code of this file.

Macros

#define NM_BUS_MAX_TRX_SZ   4096
 
#define SPI_ASSERT_CS()   do {p_pio->PIO_CODR = 1 << (CONF_WINC_SPI_CS_GPIO & 0x1F);}while(0)
 
#define SPI_DEASSERT_CS()   do {p_pio->PIO_SODR = 1 << (CONF_WINC_SPI_CS_GPIO & 0x1F);}while(0)
 
#define xSPI_ASSERT_CS()   {gpio_set_pin_low(CONF_WINC_SPI_CS_GPIO);}
 
#define xSPI_DEASSERT_CS()   {gpio_set_pin_high(CONF_WINC_SPI_CS_GPIO);}
 

Functions

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

Variables

tstrNmBusCapabilities egstrNmBusCapabilities
 

Detailed Description

This module contains NMC1000 bus wrapper APIs implementation.

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

Definition in file nm_bus_wrapper_same70.c.

Macro Definition Documentation

◆ NM_BUS_MAX_TRX_SZ

#define NM_BUS_MAX_TRX_SZ   4096

Definition at line 49 of file nm_bus_wrapper_same70.c.

◆ SPI_ASSERT_CS

#define SPI_ASSERT_CS ( )    do {p_pio->PIO_CODR = 1 << (CONF_WINC_SPI_CS_GPIO & 0x1F);}while(0)

Definition at line 45 of file nm_bus_wrapper_same70.c.

◆ SPI_DEASSERT_CS

#define SPI_DEASSERT_CS ( )    do {p_pio->PIO_SODR = 1 << (CONF_WINC_SPI_CS_GPIO & 0x1F);}while(0)

Definition at line 46 of file nm_bus_wrapper_same70.c.

◆ xSPI_ASSERT_CS

#define xSPI_ASSERT_CS ( )    {gpio_set_pin_low(CONF_WINC_SPI_CS_GPIO);}

Definition at line 42 of file nm_bus_wrapper_same70.c.

◆ xSPI_DEASSERT_CS

#define xSPI_DEASSERT_CS ( )    {gpio_set_pin_high(CONF_WINC_SPI_CS_GPIO);}

Definition at line 43 of file nm_bus_wrapper_same70.c.

Function Documentation

◆ nm_bus_deinit()

sint8 nm_bus_deinit ( void  )

De-initialize the bus wrapper.

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

Definition at line 326 of file nm_bus_wrapper_same70.c.

◆ nm_bus_init()

sint8 nm_bus_init ( uint8_t *  pvinit,
uint32  req_serial_number 
)

Definition at line 229 of file nm_bus_wrapper_same70.c.

◆ nm_bus_ioctl()

sint8 nm_bus_ioctl ( uint8  u8Cmd,
void *  pvParameter 
)

Definition at line 285 of file nm_bus_wrapper_same70.c.

Variable Documentation

◆ egstrNmBusCapabilities

tstrNmBusCapabilities egstrNmBusCapabilities
Initial value:
=
{
}
#define NM_BUS_MAX_TRX_SZ

Definition at line 51 of file nm_bus_wrapper_same70.c.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:59