工廠診斷 - 執行緒堆疊
這個模組內含控管執行緒堆疊執行作業的函式。
摘要
函式 |
|
|---|---|
otDiagIsEnabled(otInstance *aInstance)
|
bool
指出是否啟用工廠診斷模式。
|
otDiagProcessCmd(otInstance *aInstance, uint8_t aArgsLength, char *aArgs[], char *aOutput, size_t aOutputMaxLen)
|
處理工廠診斷指令列。
|
otDiagProcessCmdLine(otInstance *aInstance, const char *aString, char *aOutput, size_t aOutputMaxLen)
|
處理工廠診斷指令列。
|
函式
otDiagIsEnabled
bool otDiagIsEnabled( otInstance *aInstance )
指出是否啟用工廠診斷模式。
| 詳細說明 | |||||
|---|---|---|---|---|---|
| 參數 |
|
||||
| 傳回值 |
|
||||
otDiagProcessCmd
otError otDiagProcessCmd( otInstance *aInstance, uint8_t aArgsLength, char *aArgs[], char *aOutput, size_t aOutputMaxLen )
處理工廠診斷指令列。
這個函式的輸出內容 (寫入 aOutput 的內容) 必須以 \0 終止,且 \0 位於輸出緩衝區中。
| 詳細說明 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 參數 |
|
||||||||||
| 傳回值 |
|
||||||||||
otDiagProcessCmdLine
otError otDiagProcessCmdLine( otInstance *aInstance, const char *aString, char *aOutput, size_t aOutputMaxLen )
處理工廠診斷指令列。
這個函式的輸出內容 (寫入 aOutput 的內容) 必須以 \0 終止,且 \0 位於輸出緩衝區中。
| 詳細說明 | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| 參數 |
|
||||||||
| 傳回值 |
|
||||||||
資源
OpenThread API 參考資料主題源自原始碼,請前往 GitHub 取得。如要瞭解詳情或對說明文件做出貢獻,請參閱資源。