Home
last modified time | relevance | path

Searched refs:aRegionCode (Results 1 – 13 of 13) sorted by relevance

/openthread-latest/src/posix/platform/
Dconfiguration.cpp57 otError Configuration::SetRegion(uint16_t aRegionCode) in SetRegion() argument
62 if (GetDomain(aRegionCode, domain) != OT_ERROR_NONE) in SetRegion()
74 mRegionCode = aRegionCode; in SetRegion()
79 … LogInfo("Successfully set region \"%c%c\"", (aRegionCode >> 8) & 0xff, (aRegionCode & 0xff)); in SetRegion()
83 … LogCrit("Failed to set region \"%c%c\": %s", (aRegionCode >> 8) & 0xff, (aRegionCode & 0xff), in SetRegion()
90 otError Configuration::GetDomain(uint16_t aRegionCode, Power::Domain &aDomain) in GetDomain() argument
107 if ((strlen(str) == 2) && (StringToRegionCode(str) == aRegionCode)) in GetDomain()
Dconfiguration.hpp80 otError SetRegion(uint16_t aRegionCode);
131 otError GetDomain(uint16_t aRegionCode, Power::Domain &aDomain);
Dradio.cpp996 otError otPlatRadioSetRegion(otInstance *aInstance, uint16_t aRegionCode) in otPlatRadioSetRegion() argument
1005 error = sConfig.SetRegion(aRegionCode); in otPlatRadioSetRegion()
1010 error = GetRadioSpinel().SetRadioRegion(aRegionCode); in otPlatRadioSetRegion()
1016 otError otPlatRadioGetRegion(otInstance *aInstance, uint16_t *aRegionCode) in otPlatRadioGetRegion() argument
1025 *aRegionCode = sConfig.GetRegion(); in otPlatRadioGetRegion()
1031 error = GetRadioSpinel().GetRadioRegion(aRegionCode); in otPlatRadioGetRegion()
/openthread-latest/src/core/radio/
Dradio_platform.cpp333 extern "C" OT_TOOL_WEAK otError otPlatRadioSetRegion(otInstance *aInstance, uint16_t aRegionCode) in otPlatRadioSetRegion() argument
336 OT_UNUSED_VARIABLE(aRegionCode); in otPlatRadioSetRegion()
341 extern "C" OT_TOOL_WEAK otError otPlatRadioGetRegion(otInstance *aInstance, uint16_t *aRegionCode) in otPlatRadioGetRegion() argument
344 OT_UNUSED_VARIABLE(aRegionCode); in otPlatRadioGetRegion()
Dradio.hpp761 …Error SetRegion(uint16_t aRegionCode) { return otPlatRadioSetRegion(GetInstancePtr(), aRegionCode)… in SetRegion() argument
775 …Error GetRegion(uint16_t &aRegionCode) const { return otPlatRadioGetRegion(GetInstancePtr(), &aReg… in GetRegion()
/openthread-latest/src/core/api/
Dlink_api.cpp492 otError otLinkSetRegion(otInstance *aInstance, uint16_t aRegionCode) in otLinkSetRegion() argument
494 return AsCoreType(aInstance).Get<Mac::Mac>().SetRegion(aRegionCode); in otLinkSetRegion()
497 otError otLinkGetRegion(otInstance *aInstance, uint16_t *aRegionCode) in otLinkGetRegion() argument
501 if (aRegionCode == nullptr) in otLinkGetRegion()
507 error = AsCoreType(aInstance).Get<Mac::Mac>().GetRegion(*aRegionCode); in otLinkGetRegion()
/openthread-latest/include/openthread/
Dlink.h1094 otError otLinkSetRegion(otInstance *aInstance, uint16_t aRegionCode);
1110 otError otLinkGetRegion(otInstance *aInstance, uint16_t *aRegionCode);
/openthread-latest/examples/platforms/simulation/
Dradio.c1202 otError otPlatRadioSetRegion(otInstance *aInstance, uint16_t aRegionCode) in otPlatRadioSetRegion() argument
1206 sRegionCode = aRegionCode; in otPlatRadioSetRegion()
1210 otError otPlatRadioGetRegion(otInstance *aInstance, uint16_t *aRegionCode) in otPlatRadioGetRegion() argument
1215 otEXPECT_ACTION(aRegionCode != NULL, error = OT_ERROR_INVALID_ARGS); in otPlatRadioGetRegion()
1217 *aRegionCode = sRegionCode; in otPlatRadioGetRegion()
/openthread-latest/include/openthread/platform/
Dradio.h1267 otError otPlatRadioSetRegion(otInstance *aInstance, uint16_t aRegionCode);
1283 otError otPlatRadioGetRegion(otInstance *aInstance, uint16_t *aRegionCode);
/openthread-latest/src/lib/spinel/
Dradio_spinel.cpp2321 otError RadioSpinel::SetRadioRegion(uint16_t aRegionCode) in SetRadioRegion() argument
2325 error = Set(SPINEL_PROP_PHY_REGION_CODE, SPINEL_DATATYPE_UINT16_S, aRegionCode); in SetRadioRegion()
2329 LogNote("Set region code \"%c%c\" successfully", static_cast<char>(aRegionCode >> 8), in SetRadioRegion()
2330 static_cast<char>(aRegionCode)); in SetRadioRegion()
2334 LogWarn("Failed to set region code \"%c%c\": %s", static_cast<char>(aRegionCode >> 8), in SetRadioRegion()
2335 static_cast<char>(aRegionCode), otThreadErrorToString(error)); in SetRadioRegion()
2341 otError RadioSpinel::GetRadioRegion(uint16_t *aRegionCode) in GetRadioRegion() argument
2345 VerifyOrExit(aRegionCode != nullptr, error = OT_ERROR_INVALID_ARGS); in GetRadioRegion()
2346 error = Get(SPINEL_PROP_PHY_REGION_CODE, SPINEL_DATATYPE_UINT16_S, aRegionCode); in GetRadioRegion()
Dradio_spinel.hpp755 otError SetRadioRegion(uint16_t aRegionCode);
766 otError GetRadioRegion(uint16_t *aRegionCode);
/openthread-latest/src/core/mac/
Dmac.hpp696 Error SetRegion(uint16_t aRegionCode);
710 Error GetRegion(uint16_t &aRegionCode) const;
Dmac.cpp2243 Error Mac::SetRegion(uint16_t aRegionCode) in SetRegion() argument
2248 SuccessOrExit(error = Get<Radio>().SetRegion(aRegionCode)); in SetRegion()
2256 Error Mac::GetRegion(uint16_t &aRegionCode) const { return Get<Radio>().GetRegion(aRegionCode); } in GetRegion()