Home
last modified time | relevance | path

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

/external/openthread/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.cpp1014 otError otPlatRadioSetRegion(otInstance *aInstance, uint16_t aRegionCode) in otPlatRadioSetRegion() argument
1023 error = sConfig.SetRegion(aRegionCode); in otPlatRadioSetRegion()
1028 error = GetRadioSpinel().SetRadioRegion(aRegionCode); in otPlatRadioSetRegion()
1034 otError otPlatRadioGetRegion(otInstance *aInstance, uint16_t *aRegionCode) in otPlatRadioGetRegion() argument
1043 *aRegionCode = sConfig.GetRegion(); in otPlatRadioGetRegion()
1049 error = GetRadioSpinel().GetRadioRegion(aRegionCode); in otPlatRadioGetRegion()
/external/openthread/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()
/external/openthread/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()
/external/openthread/include/openthread/
Dlink.h1094 otError otLinkSetRegion(otInstance *aInstance, uint16_t aRegionCode);
1110 otError otLinkGetRegion(otInstance *aInstance, uint16_t *aRegionCode);
/external/openthread/examples/platforms/simulation/
Dradio.c1203 otError otPlatRadioSetRegion(otInstance *aInstance, uint16_t aRegionCode) in otPlatRadioSetRegion() argument
1207 sRegionCode = aRegionCode; in otPlatRadioSetRegion()
1211 otError otPlatRadioGetRegion(otInstance *aInstance, uint16_t *aRegionCode) in otPlatRadioGetRegion() argument
1216 otEXPECT_ACTION(aRegionCode != NULL, error = OT_ERROR_INVALID_ARGS); in otPlatRadioGetRegion()
1218 *aRegionCode = sRegionCode; in otPlatRadioGetRegion()
/external/openthread/include/openthread/platform/
Dradio.h1282 otError otPlatRadioSetRegion(otInstance *aInstance, uint16_t aRegionCode);
1298 otError otPlatRadioGetRegion(otInstance *aInstance, uint16_t *aRegionCode);
/external/openthread/src/lib/spinel/
Dradio_spinel.cpp2324 otError RadioSpinel::SetRadioRegion(uint16_t aRegionCode) in SetRadioRegion() argument
2328 error = Set(SPINEL_PROP_PHY_REGION_CODE, SPINEL_DATATYPE_UINT16_S, aRegionCode); in SetRadioRegion()
2332 LogNote("Set region code \"%c%c\" successfully", static_cast<char>(aRegionCode >> 8), in SetRadioRegion()
2333 static_cast<char>(aRegionCode)); in SetRadioRegion()
2337 LogWarn("Failed to set region code \"%c%c\": %s", static_cast<char>(aRegionCode >> 8), in SetRadioRegion()
2338 static_cast<char>(aRegionCode), otThreadErrorToString(error)); in SetRadioRegion()
2344 otError RadioSpinel::GetRadioRegion(uint16_t *aRegionCode) in GetRadioRegion() argument
2348 VerifyOrExit(aRegionCode != nullptr, error = OT_ERROR_INVALID_ARGS); in GetRadioRegion()
2349 error = Get(SPINEL_PROP_PHY_REGION_CODE, SPINEL_DATATYPE_UINT16_S, aRegionCode); in GetRadioRegion()
Dradio_spinel.hpp777 otError SetRadioRegion(uint16_t aRegionCode);
788 otError GetRadioRegion(uint16_t *aRegionCode);
/external/openthread/src/core/mac/
Dmac.hpp696 Error SetRegion(uint16_t aRegionCode);
710 Error GetRegion(uint16_t &aRegionCode) const;
Dmac.cpp2236 Error Mac::SetRegion(uint16_t aRegionCode) in SetRegion() argument
2241 SuccessOrExit(error = Get<Radio>().SetRegion(aRegionCode)); in SetRegion()
2249 Error Mac::GetRegion(uint16_t &aRegionCode) const { return Get<Radio>().GetRegion(aRegionCode); } in GetRegion()