Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
wifi_winc1500_nm_bus_wrapper.c File Reference
#include <logging/log.h>
#include <stdio.h>
#include <stdint.h>
#include <device.h>
#include <drivers/spi.h>
#include "wifi_winc1500_nm_bsp_internal.h"
#include <bsp/include/nm_bsp.h>
#include <common/include/nm_common.h>
#include <bus_wrapper/include/nm_bus_wrapper.h>
#include "wifi_winc1500_config.h"

Macros

#define DT_DRV_COMPAT   atmel_winc1500
 
#define LOG_LEVEL   CONFIG_WIFI_LOG_LEVEL
 
#define NM_BUS_MAX_TRX_SZ   256
 

Functions

 LOG_MODULE_REGISTER (winc1500)
 
static int8_t spi_rw (uint8_t *mosi, uint8_t *miso, uint16_t size)
 
struct winc1500_gpio_configurationwinc1500_configure_gpios (void)
 
int8_t nm_bus_init (void *pvinit)
 
int8_t nm_bus_ioctl (uint8_t cmd, void *parameter)
 
int8_t nm_bus_deinit (void)
 
int8_t nm_bus_reinit (void *config)
 

Variables

static struct winc1500_gpio_configuration winc1500_gpios [WINC1500_GPIO_IDX_MAX]
 
tstrNmBusCapabilities egstrNmBusCapabilities
 

Macro Definition Documentation

◆ DT_DRV_COMPAT

#define DT_DRV_COMPAT   atmel_winc1500

Copyright (c) 2017 IpTronix

SPDX-License-Identifier: Apache-2.0

◆ LOG_LEVEL

#define LOG_LEVEL   CONFIG_WIFI_LOG_LEVEL

◆ NM_BUS_MAX_TRX_SZ

#define NM_BUS_MAX_TRX_SZ   256

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( winc1500  )

◆ nm_bus_deinit()

int8_t nm_bus_deinit ( void  )

◆ nm_bus_init()

int8_t nm_bus_init ( void pvinit)

◆ nm_bus_ioctl()

int8_t nm_bus_ioctl ( uint8_t  cmd,
void parameter 
)

◆ nm_bus_reinit()

int8_t nm_bus_reinit ( void config)

◆ spi_rw()

static int8_t spi_rw ( uint8_t mosi,
uint8_t miso,
uint16_t  size 
)
static

◆ winc1500_configure_gpios()

struct winc1500_gpio_configuration * winc1500_configure_gpios ( void  )

Variable Documentation

◆ egstrNmBusCapabilities

tstrNmBusCapabilities egstrNmBusCapabilities
Initial value:
= {
256
}

Copyright (c) 2017 IpTronix

SPDX-License-Identifier: Apache-2.0

◆ winc1500_gpios

struct winc1500_gpio_configuration winc1500_gpios[WINC1500_GPIO_IDX_MAX]
static
Initial value:
= {
{ .dev = NULL, .pin = DT_INST_GPIO_PIN(0, enable_gpios) },
{ .dev = NULL, .pin = DT_INST_GPIO_PIN(0, irq_gpios) },
{ .dev = NULL, .pin = DT_INST_GPIO_PIN(0, reset_gpios) },
}
#define DT_INST_GPIO_PIN(inst, gpio_pha)
Equivalent to DT_INST_GPIO_PIN_BY_IDX(inst, gpio_pha, 0)
Definition: gpio.h:270