واجهة خط الأوامر
تتضمن هذه الوحدة الوظائف التي تتحكم في تنفيذ مكدس الخيط.
ملخص
النوع | |
---|---|
otCliConsoleOutputCallback )(const char *aBuf, uint16_t aBufLength, void *aContext) | typedefint(* يتم استدعاء مؤشر الوظيفة هذا للإبلاغ عن إخراج وحدة التحكم. |
المهام | |
---|---|
otCliAppendResult ( otError aError) | void اكتب رمز الخطأ إلى وحدة تحكم CLI. |
otCliConsoleInit ( otInstance *aInstance, otCliConsoleOutputCallback aCallback, void *aContext) | void قم بتهيئة وحدة CLI CONSOLE. |
otCliConsoleInputLine (char *aBuf, uint16_t aBufLength) | void تسمى هذه الطريقة للتغذية في سطر إدخال وحدة التحكم. |
otCliOutput (const char *aString, uint16_t aLength) | void اكتب سلسلة إلى وحدة تحكم CLI. |
otCliOutputBytes (const uint8_t *aBytes, uint8_t aLength) | void اكتب عددًا من البايت في وحدة تحكم CLI كسلسلة سداسية عشرية. |
otCliOutputFormat (const char *aFmt, ...) | void اكتب سلسلة منسقة إلى وحدة تحكم CLI. |
otCliPlatLogLine ( otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aLogLine) | void وظيفة لكتابة OpenThread Log إلى وحدة تحكم CLI. |
otCliPlatLogv ( otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, va_list aArgs) | void رد الاتصال لكتابة OpenThread Log إلى وحدة تحكم CLI. |
otCliSetUserCommands (const otCliCommand *aUserCommands, uint8_t aLength, void *aContext) | void قم بتعيين جدول أوامر المستخدم. |
otCliUartInit ( otInstance *aInstance) | void قم بتهيئة وحدة CLI UART. |
النوع
otCliConsoleOutputCallback
int(* otCliConsoleOutputCallback)(const char *aBuf, uint16_t aBufLength, void *aContext)
يتم استدعاء مؤشر الوظيفة هذا للإبلاغ عن إخراج وحدة التحكم.
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
| ||||||
عائدات | عدد البايتات التي تمت معالجتها بواسطة رد الاتصال. |
المهام
otCliAppendResult
void otCliAppendResult( otError aError )
اكتب رمز الخطأ إلى وحدة تحكم CLI.
إذا كان aError
هو OT_ERROR_PENDING
فلن يتم OT_ERROR_PENDING
أي شيء.
تفاصيل | |||
---|---|---|---|
المعلمات |
|
otCliConsoleInit
void otCliConsoleInit( otInstance *aInstance, otCliConsoleOutputCallback aCallback, void *aContext )
قم بتهيئة وحدة CLI CONSOLE.
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
|
otCliConsoleInputLine
void otCliConsoleInputLine( char *aBuf, uint16_t aBufLength )
تسمى هذه الطريقة للتغذية في سطر إدخال وحدة التحكم.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otCliOutput
void otCliOutput( const char *aString, uint16_t aLength )
اكتب سلسلة إلى وحدة تحكم CLI.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otCliOutputBytes
void otCliOutputBytes( const uint8_t *aBytes, uint8_t aLength )
اكتب عددًا من البايت في وحدة تحكم CLI كسلسلة سداسية عشرية.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otCliOutputFormat
void otCliOutputFormat( const char *aFmt, ... )
اكتب سلسلة منسقة إلى وحدة تحكم CLI.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otCliPlatLogLine
void otCliPlatLogLine( otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aLogLine )
وظيفة لكتابة OpenThread Log إلى وحدة تحكم CLI.
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
|
otCliPlatLogv
void otCliPlatLogv( otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, va_list aArgs )
رد اتصال لكتابة سجل OpenThread إلى وحدة تحكم CLI.
تفاصيل | |||||||||
---|---|---|---|---|---|---|---|---|---|
المعلمات |
|
أوامر otCliSetUserCommands
void otCliSetUserCommands( const otCliCommand *aUserCommands, uint8_t aLength, void *aContext )
قم بتعيين جدول أوامر المستخدم.
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
|
otCliUartInit
void otCliUartInit( otInstance *aInstance )
قم بتهيئة وحدة CLI UART.
تفاصيل | |||
---|---|---|---|
المعلمات |
|