nRF5 SDK for Thread v0.11.0
Enumerations | Functions

This module includes platform abstractions for miscellaneous behaviors. More...

Enumerations

enum  otPlatResetReason {
  OT_PLAT_RESET_REASON_POWER_ON = 0, OT_PLAT_RESET_REASON_EXTERNAL = 1, OT_PLAT_RESET_REASON_SOFTWARE = 2, OT_PLAT_RESET_REASON_FAULT = 3,
  OT_PLAT_RESET_REASON_CRASH = 4, OT_PLAT_RESET_REASON_ASSERT = 5, OT_PLAT_RESET_REASON_OTHER = 6, OT_PLAT_RESET_REASON_UNKNOWN = 7,
  OT_PLAT_RESET_REASON_WATCHDOG = 8, OT_PLAT_RESET_REASON_COUNT
}
 

Functions

void otPlatReset (otInstance *aInstance)
 
otPlatResetReason otPlatGetResetReason (otInstance *aInstance)
 
void otPlatAssertFail (const char *aFilename, int aLineNumber)
 
void otPlatWakeHost (void)
 

Detailed Description

This module includes platform abstractions for miscellaneous behaviors.

Enumeration Type Documentation

Enumeration of possible reset reason codes.

These are in the same order as the Spinel reset reason codes.

Function Documentation

void otPlatAssertFail ( const char *  aFilename,
int  aLineNumber 
)

This function provides a platform specific implementation for assert.

Parameters
[in]aFilenameThe name of the file where the assert occurred.
[in]aLineNumberThe line number in the file where the assert occurred.
otPlatResetReason otPlatGetResetReason ( otInstance aInstance)

This function returns the reason for the last platform reset.

Parameters
[in]aInstanceThe OpenThread instance structure.
void otPlatReset ( otInstance aInstance)

This function performs a software reset on the platform, if supported.

Parameters
[in]aInstanceThe OpenThread instance structure.
void otPlatWakeHost ( void  )

This function performs a platform specific operation to wake the host MCU. This is used only for NCP configurations.


Documentation feedback | Developer Zone | Subscribe | Updated