This module contains WINC3400 M2M driver APIs implementation.
Copyright (c) 2017-2019 Microchip Technology Inc. and its subsidiaries.
#include "common/include/nm_common.h"
#include "driver/source/nmbus.h"
#include "bsp/include/nm_bsp.h"
#include "driver/source/nmdrv.h"
#include "driver/source/nmasic.h"
#include "driver/include/m2m_types.h"
Functions | |
sint8 | nm_cpu_start (void) |
Start CPU from the WINC module. More... | |
sint8 | nm_drv_deinit (void *arg) |
sint8 | nm_drv_init (void *arg, uint32 req_serial_number) |
sint8 | nm_drv_init_download_mode (uint32 req_serial_number) |
sint8 | nm_drv_init_hold (uint32 req_serial_number) |
sint8 | nm_drv_init_start (void *arg) |
sint8 | nm_get_firmware_full_info (tstrM2mRev *pstrRev) |
Get Firmware version info. More... | |
sint8 | nm_get_hif_info (uint16 *pu16FwHifInfo, uint16 *pu16OtaHifInfo) |
Get Hif info of images in both partitions (Firmware and Ota). More... | |
sint8 | nm_get_ota_firmware_info (tstrM2mRev *pstrRev) |
Get Firmware version info. More... | |
tenuNmState | nm_get_state (void) |
Get the current state of the WINC module. More... | |
Variables | |
static tenuNmState | genuNmState = NM_STATE_DEINIT |
nm_cpu_start | ( | void | ) |
Start CPU from the WINC module.
References cpu_start(), and ret.
Referenced by enter_wifi_firmware_download().
sint8 nm_drv_deinit | ( | void * | arg | ) |
Referenced by m2m_wifi_deinit(), and m2m_wifi_init_start().
References M2M_SUCCESS, nm_drv_init_hold(), nm_drv_init_start(), and ret.
References genuNmState, M2M_ERR, M2M_INFO, M2M_SUCCESS, nm_bus_iface_init(), nm_spi_init(), NM_STATE_INIT, nm_write_reg(), nmi_get_chipid(), NULL, and ret.
Referenced by m2m_wifi_download_mode().
References chip_idle(), chip_reset(), chip_wake(), genuNmState, M2M_ERR, M2M_INFO, M2M_SUCCESS, nm_bsp_sleep(), nm_bus_iface_deinit(), nm_bus_iface_init(), nm_spi_init(), NM_STATE_INIT, nmi_get_chipid(), NULL, and ret.
Referenced by m2m_wifi_init_hold(), and nm_drv_init().
sint8 nm_drv_init_start | ( | void * | arg | ) |
Referenced by m2m_wifi_init_start(), and nm_drv_init().
nm_get_firmware_full_info | ( | tstrM2mRev * | pstrRev | ) |
Get Firmware version info.
[out] | M2mRev | Pointer holds address of structure tstrM2mRev that contains the firmware version parameters |
[out] | pstrRev | Pointer holds address of structure tstrM2mRev that contains the version parameters of image in the active partition. |
[out] | M2mRev | pointer holds address of structure "tstrM2mRev" that contains the firmware version parameters |
Referenced by m2m_wifi_get_firmware_version(), and m2m_wifi_init_start().
Get Hif info of images in both partitions (Firmware and Ota).
[out] | pu16FwHifInfo | Pointer holding Hif info of image in the active partition. |
[out] | pu16OtaHifInfo | Pointer holding Hif info of image in the inactive partition. |
References M2M_SUCCESS, nm_read_reg_with_ret(), NMI_REV_REG, NULL, and ret.
Referenced by hif_enable_access(), m2m_wifi_check_ota_rb(), nm_get_firmware_full_info(), and nm_get_ota_firmware_info().
nm_get_ota_firmware_info | ( | tstrM2mRev * | pstrRev | ) |
Get Firmware version info.
[out] | M2mRev | Pointer holds address of structure tstrM2mRev that contains the firmware version parameters |
[out] | pstrRev | Pointer holds address of structure tstrM2mRev that contains the version parameters of image in the inactive partition. |
[out] | M2mRev | pointer holds address of structure "tstrM2mRev" that contains the firmware version parameters |
Referenced by m2m_ota_get_firmware_version().
nm_get_state | ( | void | ) |
Get the current state of the WINC module.
References genuNmState.
Referenced by find_flash_section(), m2m_flash_erase_sector(), m2m_flash_read(), m2m_flash_switch_firmware(), m2m_flash_write(), and m2m_wifi_get_state().
|
static |
Referenced by nm_drv_deinit(), nm_drv_init_download_mode(), nm_drv_init_hold(), nm_drv_init_start(), and nm_get_state().