Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions

   Lists the APIs for reading the version information of the WINC firmware.

Functions

NMI_API sint8 m2m_ota_get_firmware_version (tstrM2mRev *pstrRev)
 Get the OTA Firmware version. More...
 
sint8 m2m_wifi_get_firmware_version (tstrM2mRev *pstrRev)
 Get Firmware version info. More...
 

NMI_API sint8 m2m_ota_get_firmware_version ( tstrM2mRev pstrRev)

Get the OTA Firmware version.

Synchronous API to obtain the firmware version of the WINC image that is stored in the inactive flash partition. This is the image that would run on the WINC if m2m_ota_switch_firmware or m2m_ota_rollback were called, followed by a reset of the WINC.

Synchronous API to obtain the firmware version of the WINC image that is stored in the inactive flash partition. This is the image that would run on the WINC IC if m2m_ota_switch_firmware or m2m_ota_rollback were called, followed by a reset of the WINC IC.

Returns
The function returns M2M_SUCCESS for success and a negative value otherwise.

Get OTA Firmware version info from the inactive partition, as defined in the structure tstrM2mRev.

Parameters
[out]pstrRevPointer to the structure tstrM2mRev that contains the firmware version parameters.
Returns
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.
Parameters
[out]pstrRevpointer holds address of structure "tstrM2mRev" that contains the ota fw version parameters
Returns
The function SHALL return M2M_SUCCESS for success and a negative value otherwise.
Parameters
[out]pstrRevPointer to variable of type tstrM2mRev which contains the ota fw version parameters.
Returns
The function returns M2M_SUCCESS for success and a negative value otherwise.

Referenced by m2m_ota_rollback(), m2m_ota_switch_firmware(), and m2m_wifi_init_start().

sint8 m2m_wifi_get_firmware_version ( tstrM2mRev pstrRev)

Get Firmware version info.

Synchronous API to obtain the firmware version currently running on the WINC.

Synchronous API to obtain the firmware version currently running on the WINC IC.

Get the Firmware version info from the active partition, as defined in the structure tstrM2mRev.

Parameters
[out]pstrRevPointer to the structure tstrM2mRev that contains the firmware version parameters.
Precondition
Must be called after initialization through the following function m2m_wifi_init.
See Also
m2m_wifi_init
Returns
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.
Parameters
[out]pstrRevpointer holds address of structure "tstrM2mRev" that contains the firmware version parameters
Returns
The function SHALL return M2M_SUCCESS for success and a negative value otherwise.
Get the Firmware version info from the active partition, as defined in the structure @ref tstrM2mRev.
Parameters
[out]pstrRevPointer to a variable of type tstrM2mRev, which contains the firmware version parameters.
Returns
The function returns M2M_SUCCESS for success and a negative value otherwise.
Precondition
Must be called after initialization through the following function m2m_wifi_init.
See Also
m2m_wifi_init

Referenced by m2m_wifi_init_start().