![]() |
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... | |
This module includes platform abstractions for miscellaneous behaviors.
| enum otPlatResetReason |
Enumeration of possible reset reason codes.
These are in the same order as the Spinel reset reason codes.
| void otPlatAssertFail | ( | const char * | aFilename, |
| int | aLineNumber | ||
| ) |
This function provides a platform specific implementation for assert.
| [in] | aFilename | The name of the file where the assert occurred. |
| [in] | aLineNumber | The line number in the file where the assert occurred. |
| otPlatResetReason otPlatGetResetReason | ( | otInstance * | aInstance | ) |
This function returns the reason for the last platform reset.
| [in] | aInstance | The OpenThread instance structure. |
| void otPlatReset | ( | otInstance * | aInstance | ) |
This function performs a software reset on the platform, if supported.
| [in] | aInstance | The 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.