명령줄 인터페이스
이 모듈에는 스레드 스택의 실행을 제어하는 함수가 포함되어 있습니다.
요약
Typedef |
|
---|---|
otCliOutputCallback)(void *aContext, const char *aFormat, va_list aArguments)
|
typedefint(*
이 함수 포인터는 콘솔 출력을 알리기 위해 호출됩니다. |
함수 |
|
---|---|
otCliAppendResult(otError aError)
|
void
CLI 콘솔에 오류 코드를 작성합니다.
|
otCliInit(otInstance *aInstance, otCliOutputCallback aCallback, void *aContext)
|
void
CLI 모듈을 초기화합니다.
|
otCliInputLine(char *aBuf)
|
void
이 메서드는 콘솔 입력 줄에 공급되도록 호출됩니다.
|
otCliOutputBytes(const uint8_t *aBytes, uint8_t aLength)
|
void
16진수 문자열로 CLI 콘솔에 바이트 수를 씁니다.
|
otCliOutputFormat(const char *aFmt, ...)
|
void
형식이 지정된 문자열을 CLI 콘솔에 씁니다.
|
otCliPlatLogv(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, va_list aArgs)
|
void
CLI 콘솔에 OpenThread Log을 작성하기 위한 콜백입니다.
|
otCliSetUserCommands(const otCliCommand *aUserCommands, uint8_t aLength, void *aContext)
|
void
사용자 명령어 테이블 설정
|
Typedef
otCliOutputCallback
int(* otCliOutputCallback)(void *aContext, const char *aFormat, va_list aArguments)
이 함수 포인터는 콘솔 출력을 알리기 위해 호출됩니다.
세부정보 | |||||||
---|---|---|---|---|---|---|---|
매개변수 |
|
||||||
반환 |
콜백이 작성한 바이트 수입니다.
|
함수
otCliAppendResult
void otCliAppendResult( otError aError )
CLI 콘솔에 오류 코드를 작성합니다.
aError
이 OT_ERROR_PENDING
이면 아무것도 출력되지 않습니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
otCliInit
void otCliInit( otInstance *aInstance, otCliOutputCallback aCallback, void *aContext )
CLI 모듈을 초기화합니다.
세부정보 | |||||||
---|---|---|---|---|---|---|---|
매개변수 |
|
otCliInputLine
void otCliInputLine( char *aBuf )
이 메서드는 콘솔 입력 줄에 공급되도록 호출됩니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
otCliOutputBytes
void otCliOutputBytes( const uint8_t *aBytes, uint8_t aLength )
16진수 문자열로 CLI 콘솔에 바이트 수를 씁니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
otCliOutputFormat 코드
void otCliOutputFormat( const char *aFmt, ... )
형식이 지정된 문자열을 CLI 콘솔에 씁니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
otCliPlatLogv
void otCliPlatLogv( otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, va_list aArgs )
CLI 콘솔에 OpenThread Log을 작성하기 위한 콜백입니다.
세부정보 | |||||||||
---|---|---|---|---|---|---|---|---|---|
매개변수 |
|
otCliSetUserCommands
void otCliSetUserCommands( const otCliCommand *aUserCommands, uint8_t aLength, void *aContext )
사용자 명령어 테이블 설정
세부정보 | |||||||
---|---|---|---|---|---|---|---|
매개변수 |
|
리소스
OpenThread API 참조 주제는 GitHub에서 제공되는 소스 코드에서 시작됩니다. 자세한 내용을 알아보거나 문서에 기여하려면 리소스를 참조하세요.