0.01.00

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
}
 Enumeration of possible reset reason codes. More...
 

Functions

void otPlatReset (otInstance *aInstance)
 This function performs a software reset on the platform, if supported. More...
 
otPlatResetReason otPlatGetResetReason (otInstance *aInstance)
 This function returns the reason for the last platform reset. More...
 
void otPlatAssertFail (const char *aFilename, int aLineNumber)
 This function provides a platform specific implementation for assert. More...
 
void otPlatWakeHost (void)
 This function performs a platform specific operation to wake the host MCU. More...
 

Detailed Description

This module includes platform abstractions for miscellaneous behaviors.

Enumeration Type Documentation

§ otPlatResetReason

Enumeration of possible reset reason codes.

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

Function Documentation

§ otPlatAssertFail()

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.

§ otPlatGetResetReason()

otPlatResetReason otPlatGetResetReason ( otInstance aInstance)

This function returns the reason for the last platform reset.

Parameters
[in]aInstanceThe OpenThread instance structure.

§ otPlatReset()

void otPlatReset ( otInstance aInstance)

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

Parameters
[in]aInstanceThe OpenThread instance structure.

§ otPlatWakeHost()

void otPlatWakeHost ( void  )

This function performs a platform specific operation to wake the host MCU.

This is used only for NCP configurations.