This module contains NMC1000 bus APIs implementation.
Copyright (c) 2016-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | MAX_TRX_CFG_SZ 8 |
Functions | |
sint8 | nm_bus_iface_deinit (void) |
Deinitialize bus interface. More... | |
sint8 | nm_bus_iface_init (void *pvInitVal) |
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) |
static sint8 | p_nm_read_block (uint32 u32Addr, uint8 *puBuf, uint16 u16Sz) |
static sint8 | p_nm_write_block (uint32 u32Addr, uint8 *puBuf, uint16 u16Sz) |
#define MAX_TRX_CFG_SZ 8 |
Referenced by nm_read_block(), and nm_write_block().
nm_bus_iface_deinit | ( | void | ) |
Deinitialize bus interface.
References M2M_SUCCESS, and nm_bus_deinit().
Referenced by nm_drv_deinit(), nm_drv_init_hold(), and nm_drv_init_start().
sint8 nm_bus_iface_init | ( | void * | pvInitVal | ) |
References M2M_SUCCESS, and nm_bus_init().
Referenced by nm_drv_init_download_mode(), and nm_drv_init_hold().
sint8 nm_bus_iface_reconfigure | ( | void * | ptr | ) |
References M2M_SUCCESS, and nm_uart_reconfigure().
nm_bus_reset | ( | void | ) |
reset bus interface
References M2M_SUCCESS, and nm_spi_reset().
Referenced by chip_wake().
References egstrNmBusCapabilities, M2M_SUCCESS, MAX_TRX_CFG_SZ, p_nm_read_block(), and tstrNmBusCapabilities::u16MaxTrxSz.
Referenced by hif_isr(), hif_receive(), nm_get_firmware_full_info(), nm_get_ota_firmware_info(), nmi_get_mac_address(), nmi_get_otp_mac_address(), and spi_flash_read_internal().
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_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_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(), and spi_flash_write_enable().
References egstrNmBusCapabilities, M2M_SUCCESS, MAX_TRX_CFG_SZ, p_nm_write_block(), and tstrNmBusCapabilities::u16MaxTrxSz.
Referenced by hif_send(), 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_sleep(), chip_wake(), cpu_halt(), cpu_start(), enable_interrupts(), hif_isr(), hif_send(), hif_set_rx_done(), nm_drv_init_download_mode(), nmi_set_sys_clk_src_to_xo(), nmi_update_pll(), pullup_ctrl(), restore_pmu_settings_after_global_reset(), 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(), and wait_for_firmware_start().
References nm_i2c_read_block(), nm_spi_read_block(), and nm_uart_read_block().
Referenced by nm_read_block().
References nm_i2c_write_block(), nm_spi_write_block(), and nm_uart_write_block().
Referenced by nm_write_block().