명령 줄 인터페이스
이 모듈에는 스레드 스택의 실행을 제어하는 함수가 포함되어 있습니다.
요약
Typedef | |
---|---|
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 16 진 문자열로 CLI 콘솔에 바이트 수를 씁니다. |
otCliOutputFormat (const char *aFmt, ...) | void CLI 콘솔에 형식화 된 문자열을 씁니다. |
otCliPlatLogLine ( otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aLogLine) | void OpenThread 로그를 CLI 콘솔에 쓰는 기능. |
otCliPlatLogv ( otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, va_list aArgs) | void OpenThread 로그를 CLI 콘솔에 쓰기위한 콜백. |
otCliSetUserCommands (const otCliCommand *aUserCommands, uint8_t aLength, void *aContext) | void 사용자 명령 테이블을 설정합니다. |
otCliUartInit ( otInstance *aInstance) | void CLI UART 모듈을 초기화합니다. |
Typedef
otCliConsoleOutputCallback
int(* otCliConsoleOutputCallback)(const char *aBuf, uint16_t aBufLength, void *aContext)
이 함수 포인터는 콘솔 출력에 대해 알리기 위해 호출됩니다.
세부 | |||||||
---|---|---|---|---|---|---|---|
매개 변수 |
| ||||||
보고 | 콜백에서 처리 한 바이트 수입니다. |
기능
otCliAppendResult
void otCliAppendResult( otError aError )
CLI 콘솔에 오류 코드를 작성합니다.
aError
가 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 )
16 진 문자열로 CLI 콘솔에 바이트 수를 씁니다.
세부 | |||||
---|---|---|---|---|---|
매개 변수 |
|
otCliOutputFormat
void otCliOutputFormat( const char *aFmt, ... )
CLI 콘솔에 형식화 된 문자열을 씁니다.
세부 | |||||
---|---|---|---|---|---|
매개 변수 |
|
otCliPlatLogLine
void otCliPlatLogLine( otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aLogLine )
OpenThread 로그를 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 모듈을 초기화합니다.
세부 | |||
---|---|---|---|
매개 변수 |
|