라디오 구성
이 모듈에는 라디오 구성을 위한 플랫폼 추상화가 포함되어 있습니다.
요약
함수 |
|
---|---|
otPlatRadioGetBusSpeed(otInstance *aInstance)
|
uint32_t
호스트와 라디오 칩 간의 버스 속도(비트/초)를 가져옵니다.
|
otPlatRadioGetCaps(otInstance *aInstance)
|
라디오 기능을 사용합니다.
|
otPlatRadioGetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t *aThreshold)
|
IEEE 802.15.4~2015의 섹션 10.1.4에 따라 안테나 커넥터에서 측정된 dBm의 무선 CCA ED 임계값을 가져옵니다.
|
otPlatRadioGetFemLnaGain(otInstance *aInstance, int8_t *aGain)
|
외부 FEM의 Rx LNA 게인을 dBm으로 가져옵니다.
|
otPlatRadioGetIeeeEui64(otInstance *aInstance, uint8_t *aIeeeEui64)
|
void
이 인터페이스에 대해 공장에서 할당한 IEEE EUI-64를 가져옵니다.
|
otPlatRadioGetNow(otInstance *aInstance)
|
uint64_t
라디오 칩의 현재 예상 시간 (마이크로초)을 가져옵니다.
|
otPlatRadioGetPromiscuous(otInstance *aInstance)
|
bool
무차별 모드의 상태를 가져옵니다.
|
otPlatRadioGetReceiveSensitivity(otInstance *aInstance)
|
int8_t
라디오 수신 민감도 값을 가져옵니다.
|
otPlatRadioGetTransmitPower(otInstance *aInstance, int8_t *aPower)
|
dBm 단위로 라디오의 전송 전력을 가져옵니다.
|
otPlatRadioGetVersionString(otInstance *aInstance)
|
const char *
라디오 버전 문자열을 가져옵니다.
|
otPlatRadioSetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t aThreshold)
|
IEEE 802.15.4~2015 섹션 10.1.4에 따라 안테나 커넥터에서 측정된 무선의 CCA ED 기준(dBm)을 설정합니다.
|
otPlatRadioSetExtendedAddress(otInstance *aInstance, const otExtAddress *aExtAddress)
|
void
주소 필터링을 위한 확장 주소를 설정합니다.
|
otPlatRadioSetFemLnaGain(otInstance *aInstance, int8_t aGain)
|
외부 FEM의 Rx LNA 게인을 dBm으로 설정합니다.
|
otPlatRadioSetMacFrameCounter(otInstance *aInstance, uint32_t aMacFrameCounter)
|
void
이 메서드는 현재 MAC 프레임 카운터 값을 설정합니다.
|
otPlatRadioSetMacKey(otInstance *aInstance, uint8_t aKeyIdMode, uint8_t aKeyId, const otMacKeyMaterial *aPrevKey, const otMacKeyMaterial *aCurrKey, const otMacKeyMaterial *aNextKey, otRadioKeyType aKeyType)
|
void
MAC 키 및 키 색인을 업데이트합니다.
|
otPlatRadioSetPanId(otInstance *aInstance, otPanId aPanId)
|
void
주소 필터링에 사용되는 PAN ID를 설정합니다.
|
otPlatRadioSetPromiscuous(otInstance *aInstance, bool aEnable)
|
void
무차별 모드 사용 설정 또는 사용 중지
|
otPlatRadioSetShortAddress(otInstance *aInstance, otShortAddress aShortAddress)
|
void
주소 필터링에 단축 주소를 설정합니다.
|
otPlatRadioSetTransmitPower(otInstance *aInstance, int8_t aPower)
|
라디오의 전송 전력을 dBm으로 설정합니다.
|
함수
otPlatRadioGetBusSpeed
uint32_t otPlatRadioGetBusSpeed( otInstance *aInstance )
호스트와 라디오 칩 간의 버스 속도(비트/초)를 가져옵니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
호스트와 무선 칩 간의 버스 속도(비트/초)입니다. MAC 레이어와 라디오 레이어가 같은 칩에 있으면 0을 반환합니다.
|
otPlatRadioGetCaps
otRadioCaps otPlatRadioGetCaps( otInstance *aInstance )
라디오 기능을 사용합니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
무선 기능 비트 벡터입니다 (
OT_RADIO_CAP_* 정의 참조). |
otPlatRadioGetCcaEnergyDetectThreshold
otError otPlatRadioGetCcaEnergyDetectThreshold( otInstance *aInstance, int8_t *aThreshold )
IEEE 802.15.4~2015의 섹션 10.1.4에 따라 안테나 커넥터에서 측정된 dBm의 무선 CCA ED 임계값을 가져옵니다.
세부정보 | |||||||
---|---|---|---|---|---|---|---|
매개변수 |
|
||||||
반환 값 |
|
otPlatRadioGetFemLna게인
otError otPlatRadioGetFemLnaGain( otInstance *aInstance, int8_t *aGain )
외부 FEM의 Rx LNA 게인을 dBm으로 가져옵니다.
세부정보 | |||||||
---|---|---|---|---|---|---|---|
매개변수 |
|
||||||
반환 값 |
|
otPlatRadioGetIeeeEui64
void otPlatRadioGetIeeeEui64( otInstance *aInstance, uint8_t *aIeeeEui64 )
이 인터페이스에 대해 공장에서 할당한 IEEE EUI-64를 가져옵니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
otPlatRadioGetNow
uint64_t otPlatRadioGetNow( otInstance *aInstance )
라디오 칩의 현재 예상 시간 (마이크로초)을 가져옵니다.
이 마이크로초 타이머는 자유 실행 타이머여야 합니다. 타이머는 무선이 절전 모드인 경우에도 마이크로초 단위로 정확하게 진행해야 합니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
현재 시간(단위: 마이크로초) UINT64_MAX(플랫폼이 지원되지 않거나 라디오 시간이 준비되지 않은 경우).
|
otPlatRadioGetPromiscuous
bool otPlatRadioGetPromiscuous( otInstance *aInstance )
무차별 모드의 상태를 가져옵니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
||||
반환 값 |
|
otPlatRadioGetReceiveSensitivity
int8_t otPlatRadioGetReceiveSensitivity( otInstance *aInstance )
라디오 수신 민감도 값을 가져옵니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
라디오 수신 민감도 값은 dBm입니다.
|
otPlatRadioGetTransmitPower
otError otPlatRadioGetTransmitPower( otInstance *aInstance, int8_t *aPower )
dBm 단위로 라디오의 전송 전력을 가져옵니다.
세부정보 | |||||||
---|---|---|---|---|---|---|---|
매개변수 |
|
||||||
반환 값 |
|
otPlatRadioGetVersionString
const char * otPlatRadioGetVersionString( otInstance *aInstance )
라디오 버전 문자열을 가져옵니다.
이는 선택적 라디오 드라이버 플랫폼 기능입니다. 플랫폼 라디오 드라이버에서 제공하지 않는 경우 OpenThread는 대신 OpenThread 버전을 사용합니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
OpenThread 라디오 버전에 대한 포인터입니다.
|
otGetVersionString()).
otPlatRadioSetCcaEnergyDetectThreshold
otError otPlatRadioSetCcaEnergyDetectThreshold( otInstance *aInstance, int8_t aThreshold )
IEEE 802.15.4~2015 섹션 10.1.4에 따라 안테나 커넥터에서 측정된 무선의 CCA ED 기준(dBm)을 설정합니다.
세부정보 | |||||||
---|---|---|---|---|---|---|---|
매개변수 |
|
||||||
반환 값 |
|
otPlatRadioSetExtendedAddress
void otPlatRadioSetExtendedAddress( otInstance *aInstance, const otExtAddress *aExtAddress )
주소 필터링을 위한 확장 주소를 설정합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
otPlatRadioSetFemLna게인
otError otPlatRadioSetFemLnaGain( otInstance *aInstance, int8_t aGain )
외부 FEM의 Rx LNA 게인을 dBm으로 설정합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
||||
반환 값 |
|
otPlatRadioSetMacFrameCounter
void otPlatRadioSetMacFrameCounter( otInstance *aInstance, uint32_t aMacFrameCounter )
이 메서드는 현재 MAC 프레임 카운터 값을 설정합니다.
이 함수는 라디오가 OT_RADIO_CAPS_TRANSMIT_SEC
기능을 제공할 때 사용됩니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
otPlatRadioSetMacKey
void otPlatRadioSetMacKey( otInstance *aInstance, uint8_t aKeyIdMode, uint8_t aKeyId, const otMacKeyMaterial *aPrevKey, const otMacKeyMaterial *aCurrKey, const otMacKeyMaterial *aNextKey, otRadioKeyType aKeyType )
MAC 키 및 키 색인을 업데이트합니다.
이 함수는 라디오가 OT_RADIO_CAPS_TRANSMIT_SEC 기능을 제공할 때 사용됩니다.
세부정보 | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
매개변수 |
|
otPlatRadioSetPanId
void otPlatRadioSetPanId( otInstance *aInstance, otPanId aPanId )
주소 필터링에 사용되는 PAN ID를 설정합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
otPlatRadioSetPromiscuous
void otPlatRadioSetPromiscuous( otInstance *aInstance, bool aEnable )
무차별 모드 사용 설정 또는 사용 중지
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
otPlatRadioSetShortAddress
void otPlatRadioSetShortAddress( otInstance *aInstance, otShortAddress aShortAddress )
주소 필터링에 단축 주소를 설정합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
otPlatRadioSetTransmitPower
otError otPlatRadioSetTransmitPower( otInstance *aInstance, int8_t aPower )
라디오의 전송 전력을 dBm으로 설정합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
||||
반환 값 |
|
리소스
OpenThread API 참조 주제는 GitHub에서 제공되는 소스 코드에서 시작됩니다. 자세한 내용을 알아보거나 문서에 기여하려면 리소스를 참조하세요.