Google은 흑인 공동체를 위한 인종적 평등을 추구하기 위해 노력하고 있습니다. 자세히 알아보기
컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.

링크

이 모듈에는 링크 레이어 구성을 제어하는 함수가 포함되어 있습니다.

요약

열거

otMacFilterAddressMode{
  OT_MAC_FILTER_ADDRESS_MODE_DISABLED,
  OT_MAC_FILTER_ADDRESS_MODE_ALLOWLIST,
  OT_MAC_FILTER_ADDRESS_MODE_DENYLIST
}
enum
Mac 필터의 주소 모드를 정의합니다.

Typedef

otActiveScanResult typedef
이 구조는 수신된 IEEE 802.15.4 비콘을 나타냅니다.
otEnergyScanResult typedef
이 구조는 에너지 스캔 결과를 나타냅니다.
otHandleActiveScanResult)(otActiveScanResult *aResult, void *aContext) typedef
void(*
이 함수 포인터는 IEEE 802.15.4 활성 스캔 중에 IEEE 802.15.4 비콘이 수신되거나 스캔이 완료될 때 호출됩니다.
otHandleEnergyScanResult)(otEnergyScanResult *aResult, void *aContext) typedef
void(*
이 함수 포인터는 채널 결과가 준비되거나 스캔이 완료되면 IEEE 802.15.4 에너지 스캔 중에 호출됩니다.
otLinkPcapCallback)(const otRadioFrame *aFrame, bool aIsTx, void *aContext) typedef
void(*
이 함수 포인터는 IEEE 802.15.4 프레임이 수신될 때 호출됩니다.
otMacCounters typedef
struct otMacCounters
이 구조는 MAC 레이어 카운터를 나타냅니다.
otMacFilterAddressMode typedef
Mac 필터의 주소 모드를 정의합니다.
otMacFilterEntry typedef
이 구조는 Mac 필터 항목을 나타냅니다.
otMacFilterIterator typedef
uint8_t
Mac 필터 항목을 반복하는 데 사용됩니다.
otThreadLinkInfo typedef
이 구조는 대화목록 라디오에서 수신한 메시지에 대한 링크별 정보를 나타냅니다.

기능

otLinkActiveScan(otInstance *aInstance, uint32_t aScanChannels, uint16_t aScanDuration, otHandleActiveScanResult aCallback, void *aCallbackContext)
이 함수는 IEEE 802.15.4 Active Scan을 시작합니다.
otLinkConvertLinkQualityToRss(otInstance *aInstance, uint8_t aLinkQuality)
int8_t
이 메서드는 링크 품질을 일반적인 수신 신호 강도로 변환합니다.
otLinkConvertRssToLinkQuality(otInstance *aInstance, int8_t aRss)
uint8_t
이 메서드는 수신된 신호 강도를 링크 품질로 변환합니다.
otLinkCslGetChannel(otInstance *aInstance)
uint8_t
이 함수는 CSL 채널을 가져옵니다.
otLinkCslGetPeriod(otInstance *aInstance)
uint16_t
이 함수는 CSL 기간을 가져옵니다.
otLinkCslGetTimeout(otInstance *aInstance)
uint32_t
이 함수는 CSL 제한 시간을 가져옵니다.
otLinkCslSetChannel(otInstance *aInstance, uint8_t aChannel)
CSL 채널을 설정합니다.
otLinkCslSetPeriod(otInstance *aInstance, uint16_t aPeriod)
CSL 기간을 10개 기호 단위로 설정합니다.
otLinkCslSetTimeout(otInstance *aInstance, uint32_t aTimeout)
CSL 제한 시간을 초 단위로 설정합니다.
otLinkEnergyScan(otInstance *aInstance, uint32_t aScanChannels, uint16_t aScanDuration, otHandleEnergyScanResult aCallback, void *aCallbackContext)
이 함수는 IEEE 802.15.4 Energy Scan을 시작합니다.
otLinkFilterAddAddress(otInstance *aInstance, const otExtAddress *aExtAddress)
이 메서드는 MAC 필터에 확장된 주소를 추가합니다.
otLinkFilterAddRssIn(otInstance *aInstance, const otExtAddress *aExtAddress, int8_t aRss)
이 메서드는 MAC 필터에서 특정 Extended Address의 메시지에 대해 고정된 수신 신호 강도 (dBm) 항목을 추가합니다.
otLinkFilterClearAddresses(otInstance *aInstance)
void
이 메서드는 MAC 필터에서 모든 확장 주소를 삭제합니다.
otLinkFilterClearAllRssIn(otInstance *aInstance)
void
이 메서드는 MAC 필터에서 수신한 모든 신호 강도 항목 (기본 RSS-in 포함)을 삭제합니다.
otLinkFilterClearDefaultRssIn(otInstance *aInstance)
void
이 메서드는 MAC 필터에서 이전에 설정한 기본 수신 신호 강도 (dBm)를 삭제합니다.
otLinkFilterGetAddressMode(otInstance *aInstance)
이 함수는 MAC 필터의 주소 모드를 가져옵니다.
otLinkFilterGetNextAddress(otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry)
이 메서드는 사용 중인 주소 필터 항목을 가져옵니다.
otLinkFilterGetNextRssIn(otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry)
이 메서드는 사용 중인 RssIn 필터 항목을 가져옵니다.
otLinkFilterRemoveAddress(otInstance *aInstance, const otExtAddress *aExtAddress)
void
이 메서드는 MAC 필터에서 확장 주소를 삭제합니다.
otLinkFilterRemoveRssIn(otInstance *aInstance, const otExtAddress *aExtAddress)
void
이 메서드는 지정된 확장 주소의 수신 신호 강도 고정에 관한 MAC 필터 항목을 삭제합니다.
otLinkFilterSetAddressMode(otInstance *aInstance, otMacFilterAddressMode aMode)
void
이 함수는 MAC 필터의 주소 모드를 설정합니다.
otLinkFilterSetDefaultRssIn(otInstance *aInstance, int8_t aRss)
void
이 메서드는 MAC 필터의 기본 수신 신호 강도 (dBm)를 설정합니다.
otLinkGetCcaFailureRate(otInstance *aInstance)
uint16_t
이 함수는 현재 CCA (Clear Channel Assessment) 실패율을 반환합니다.
otLinkGetChannel(otInstance *aInstance)
uint8_t
IEEE 802.15.4 채널을 다운로드하세요.
otLinkGetCounters(otInstance *aInstance)
const otMacCounters *
MAC 레이어 카운터를 가져옵니다.
otLinkGetExtendedAddress(otInstance *aInstance)
const otExtAddress *
IEEE 802.15.4 확장 주소를 가져옵니다.
otLinkGetFactoryAssignedIeeeEui64(otInstance *aInstance, otExtAddress *aEui64)
void
공장에서 할당한 IEEE EUI-64를 가져옵니다.
otLinkGetMaxFrameRetriesDirect(otInstance *aInstance)
uint8_t
이 메서드는 직접 전송 중에 최대 프레임 재시도 횟수를 반환합니다.
otLinkGetMaxFrameRetriesIndirect(otInstance *aInstance)
uint8_t
이 메서드는 간접 전송 중에 최대 프레임 재시도 횟수를 반환합니다.
otLinkGetPanId(otInstance *aInstance)
IEEE 802.15.4 PAN ID를 확인합니다.
otLinkGetPollPeriod(otInstance *aInstance)
uint32_t
졸린 최종 기기의 데이터 설문조사 기간을 가져옵니다.
otLinkGetShortAddress(otInstance *aInstance)
IEEE 802.15.4 짧은 주소를 사용하세요.
otLinkGetSupportedChannelMask(otInstance *aInstance)
uint32_t
MAC 레이어의 지원되는 채널 마스크를 가져옵니다.
otLinkGetTxDirectRetrySuccessHistogram(otInstance *aInstance, uint8_t *aNumberOfEntries)
const uint32_t *
이 메서드는 성공할 때까지 단일 다이렉트 패킷의 히스토그램 히스토그램을 가져옵니다.
otLinkGetTxIndirectRetrySuccessHistogram(otInstance *aInstance, uint8_t *aNumberOfEntries)
const uint32_t *
이 메서드는 성공할 때까지 단일 간접 패킷의 재시도 히스토그램을 가져옵니다.
otLinkIsActiveScanInProgress(otInstance *aInstance)
bool
이 함수는 IEEE 802.15.4 Active Scan이 진행 중인지 여부를 나타냅니다.
otLinkIsEnabled(otInstance *aInstance)
bool
이 함수는 링크 레이어의 사용 설정 여부를 나타냅니다.
otLinkIsEnergyScanInProgress(otInstance *aInstance)
bool
이 함수는 IEEE 802.15.4 에너지 스캔이 현재 진행 중인지 여부를 나타냅니다.
otLinkIsInTransmitState(otInstance *aInstance)
bool
이 함수는 IEEE 802.15.4 MAC이 전송 상태에 있는지 여부를 나타냅니다.
otLinkIsPromiscuous(otInstance *aInstance)
bool
이 함수는 링크 레이어에서 무차별 모드가 사용 설정되었는지 여부를 나타냅니다.
otLinkIsRadioFilterEnabled(otInstance *aInstance)
bool
이 함수는 IEEE 802.15.4 무선 필터가 사용 설정되어 있는지 여부를 나타냅니다.
otLinkResetCounters(otInstance *aInstance)
void
MAC 레이어 카운터를 재설정합니다.
otLinkResetTxRetrySuccessHistogram(otInstance *aInstance)
void
이 방법은 직접 및 간접 전송에 관한 히스토그램 통계를 지웁니다.
otLinkSendDataRequest(otInstance *aInstance)
이 함수는 전송을 위해 IEEE 802.15.4 데이터 요청 메시지를 큐에 추가합니다.
otLinkSendEmptyData(otInstance *aInstance)
이 함수는 기기에 빈 IEEE 802.15.4 데이터 프레임을 전송하도록 지시합니다.
otLinkSetChannel(otInstance *aInstance, uint8_t aChannel)
IEEE 802.15.4 채널을 설정합니다.
otLinkSetEnabled(otInstance *aInstance, bool aEnable)
이 함수는 링크 레이어를 사용 설정하거나 중지합니다.
otLinkSetExtendedAddress(otInstance *aInstance, const otExtAddress *aExtAddress)
IEEE 802.15.4 확장 주소를 설정합니다.
otLinkSetMaxFrameRetriesDirect(otInstance *aInstance, uint8_t aMaxFrameRetriesDirect)
void
이 메서드는 직접 전송 중에 프레임 재시도의 최대 횟수를 설정합니다.
otLinkSetMaxFrameRetriesIndirect(otInstance *aInstance, uint8_t aMaxFrameRetriesIndirect)
void
이 메서드는 간접 전송 중에 최대 프레임 재시도 횟수를 설정합니다.
otLinkSetPanId(otInstance *aInstance, otPanId aPanId)
IEEE 802.15.4 PAN ID를 설정하세요.
otLinkSetPcapCallback(otInstance *aInstance, otLinkPcapCallback aPcapCallback, void *aCallbackContext)
void
이 함수는 콜백을 등록하여 수신된 원시 IEEE 802.15.4 프레임을 제공합니다.
otLinkSetPollPeriod(otInstance *aInstance, uint32_t aPollPeriod)
최종 최종 기기의 사용자 지정/외부 데이터 설문조사 기간을 설정/삭제합니다.
otLinkSetPromiscuous(otInstance *aInstance, bool aPromiscuous)
이 함수는 링크 레이어 무차별 모드를 사용 설정하거나 사용 중지합니다.
otLinkSetRadioFilterEnabled(otInstance *aInstance, bool aFilterEnabled)
void
이 함수는 IEEE 802.15.4 무선 필터 모드를 사용 설정/사용 중지합니다.
otLinkSetSupportedChannelMask(otInstance *aInstance, uint32_t aChannelMask)
MAC 레이어의 지원되는 채널 마스크를 설정합니다.

구조체

otActiveScanResult

이 구조는 수신된 IEEE 802.15.4 비콘을 나타냅니다.

otEnergyScanResult

이 구조는 에너지 스캔 결과를 나타냅니다.

OTC 카운터

이 구조는 MAC 레이어 카운터를 나타냅니다.

Mac 필터 항목

이 구조는 Mac 필터 항목을 나타냅니다.

otThreadLink정보

이 구조는 대화목록 라디오에서 수신한 메시지에 대한 링크별 정보를 나타냅니다.

열거형

Typedef

기능

매크로

자료

OpenThread API 참조 주제는 GitHub에서 제공되는 소스 코드에서 시작됩니다. 자세한 내용을 알아보거나 문서에 참여하려면 리소스를 참고하세요.