This module contains NMC1000 bus APIs implementation.
Copyright (c) 2016-2018 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 (void *) |
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.
References M2M_SUCCESS, nm_bus_deinit(), and ret.
Referenced by nm_drv_deinit(), nm_drv_init_hold(), and nm_drv_init_start().
sint8 nm_bus_iface_init | ( | void * | ) |
References M2M_SUCCESS, nm_bus_init(), and ret.
sint8 nm_bus_iface_reconfigure | ( | void * | ptr | ) |
References M2M_ERR_BUS_FAIL, M2M_SUCCESS, nm_uart_reconfigure(), and ret.
sint8 nm_bus_reset | ( | void | ) |
reset bus interface
Reset bus interface.
References M2M_SUCCESS, nm_spi_reset(), and ret.
Referenced by chip_wake().
References egstrNmBusCapabilities, M2M_SUCCESS, MAX_TRX_CFG_SZ, off(), p_nm_read_block(), and tstrNmBusCapabilities::u16MaxTrxSz.
Referenced by enter_wifi_firmware_download(), hif_isr(), hif_receive(), nm_get_firmware_full_info(), nm_get_ota_firmware_info(), nmi_get_mac_address(), nmi_get_otp_mac_address(), serial_bridge_process_read_block(), and spi_flash_read_internal().
References nm_i2c_read_reg(), nm_spi_read_reg(), and nm_uart_read_reg().
Referenced by enter_wifi_firmware_download(), is_efuse_bank_loaded(), load_efuse_to_regs(), nmi_set_sys_clk_src_to_xo(), nmi_update_pll(), read_from_efuse(), serial_bridge_process_read_reg_with_ret(), spi_flash_enter_low_power_mode(), spi_flash_leave_low_power_mode(), spi_flash_rdid(), spi_flash_read_status_reg(), wait_for_bootrom(), wait_for_firmware_start(), and write_to_efuse().
References nm_i2c_read_reg_with_ret(), nm_spi_read_reg_with_ret(), and nm_uart_read_reg_with_ret().
Referenced by chip_apply_conf(), chip_deinit(), chip_idle(), chip_reset_and_cpu_halt(), chip_sleep(), chip_wake(), cpu_halt(), cpu_start(), enable_interrupts(), get_gpio_val(), hif_isr(), hif_send(), hif_set_rx_done(), nm_get_firmware_full_info(), nm_get_firmware_info(), nm_get_hif_info(), nm_get_ota_firmware_info(), nmi_get_chipid(), nmi_get_mac_address(), nmi_get_otp_mac_address(), nmi_get_rfrevid(), pullup_ctrl(), set_gpio_dir(), set_gpio_val(), spi_flash_enable(), spi_flash_load_to_cortus_mem(), spi_flash_page_program(), spi_flash_rdid(), spi_flash_read_status_reg(), spi_flash_sector_erase(), spi_flash_write_disable(), spi_flash_write_enable(), and wait_for_firmware_start().
References egstrNmBusCapabilities, M2M_SUCCESS, MAX_TRX_CFG_SZ, off(), p_nm_write_block(), and tstrNmBusCapabilities::u16MaxTrxSz.
Referenced by enter_wifi_firmware_download(), hif_send(), serial_bridge_process_write_block(), and spi_flash_pp().
References nm_i2c_write_reg(), nm_spi_write_reg(), and nm_uart_write_reg().
Referenced by chip_apply_conf(), chip_deinit(), chip_idle(), chip_reset(), chip_reset_and_cpu_halt(), chip_sleep(), chip_wake(), cpu_halt(), cpu_start(), enable_interrupts(), enable_rf_blocks(), enter_wifi_firmware_download(), hif_isr(), hif_send(), hif_set_rx_done(), load_efuse_to_regs(), nm_drv_init_download_mode(), nmi_set_sys_clk_src_to_xo(), nmi_update_pll(), pullup_ctrl(), restore_pmu_settings_after_global_reset(), serial_bridge_process_write_reg(), set_gpio_dir(), set_gpio_val(), spi_flash_enable(), spi_flash_enter_low_power_mode(), spi_flash_leave_low_power_mode(), spi_flash_load_to_cortus_mem(), spi_flash_page_program(), spi_flash_rdid(), spi_flash_read_status_reg(), spi_flash_sector_erase(), spi_flash_write_disable(), spi_flash_write_enable(), wait_for_bootrom(), wait_for_firmware_start(), and write_to_efuse().