This module contains WINC3400 SPI protocol bus APIs implementation.
Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
#include "common/include/nm_common.h"
Functions | |
sint8 | nm_spi_deinit (void) |
DeInitialize the SPI. More... | |
sint8 | nm_spi_init (void) |
Initialize the SPI. More... | |
sint8 | nm_spi_read_block (uint32 u32Addr, uint8 *puBuf, uint16 u16Sz) |
uint32 | nm_spi_read_reg (uint32 u32Addr) |
sint8 | nm_spi_read_reg_with_ret (uint32 u32Addr, uint32 *pu32RetVal) |
sint8 | nm_spi_reset (void) |
Reset the SPI. More... | |
sint8 | nm_spi_write_block (uint32 u32Addr, uint8 *puBuf, uint16 u16Sz) |
sint8 | nm_spi_write_reg (uint32 u32Addr, uint32 u32Val) |
nm_spi_deinit | ( | void | ) |
DeInitialize the SPI.
Referenced by nm_drv_deinit(), and nm_drv_init_start().
nm_spi_init | ( | void | ) |
Initialize the SPI.
Referenced by nm_drv_init_download_mode(), and nm_drv_init_hold().
Referenced by p_nm_read_block().
Referenced by nm_read_reg().
Referenced by nm_read_reg_with_ret().
nm_spi_reset | ( | void | ) |
Reset the SPI.
reset the SPI
Referenced by nm_bus_reset().
Referenced by p_nm_write_block().
Referenced by nm_write_reg().