mirror of
https://github.com/espressif/openthread.git
synced 2026-08-13 22:27:47 +00:00
[api] fix typos (#3431)
This commit is contained in:
@@ -128,7 +128,7 @@ otError otChannelManagerSetDelay(otInstance *aInstance, uint16_t aDelay);
|
|||||||
* @retval OT_ERROR_NONE Channel selection finished successfully.
|
* @retval OT_ERROR_NONE Channel selection finished successfully.
|
||||||
* @retval OT_ERROR_NOT_FOUND Supported channel mask is empty, therefore could not select a channel.
|
* @retval OT_ERROR_NOT_FOUND Supported channel mask is empty, therefore could not select a channel.
|
||||||
* @retval OT_ERROR_INVALID_STATE Thread is not enabled or not enough data to select a new channel.
|
* @retval OT_ERROR_INVALID_STATE Thread is not enabled or not enough data to select a new channel.
|
||||||
* @retval OT_ERROR_DISABLED_FEATURE `ChannelMonintor` feature is disabled by build-time configuration options.
|
* @retval OT_ERROR_DISABLED_FEATURE `ChannelMonitor` feature is disabled by build-time configuration options.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
otError otChannelManagerRequestChannelSelect(otInstance *aInstance, bool aSkipQualityCheck);
|
otError otChannelManagerRequestChannelSelect(otInstance *aInstance, bool aSkipQualityCheck);
|
||||||
|
|||||||
@@ -329,7 +329,7 @@ typedef struct otCoapHeader
|
|||||||
* @param[in] aResult A result of the CoAP transaction.
|
* @param[in] aResult A result of the CoAP transaction.
|
||||||
*
|
*
|
||||||
* @retval OT_ERROR_NONE A response was received successfully.
|
* @retval OT_ERROR_NONE A response was received successfully.
|
||||||
* @retval OT_ERROR_ABORT A CoAP transaction was reseted by peer.
|
* @retval OT_ERROR_ABORT A CoAP transaction was reset by peer.
|
||||||
* @retval OT_ERROR_RESPONSE_TIMEOUT No response or acknowledgment received during timeout period.
|
* @retval OT_ERROR_RESPONSE_TIMEOUT No response or acknowledgment received during timeout period.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ bool otCoapSecureIsConnected(otInstance *aInstance);
|
|||||||
* @retval FALSE If DTLS session is not active.
|
* @retval FALSE If DTLS session is not active.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
bool otCoapSecureIsConncetionActive(otInstance *aInstance);
|
bool otCoapSecureIsConnectionActive(otInstance *aInstance);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method sends a CoAP request over secure DTLS connection.
|
* This method sends a CoAP request over secure DTLS connection.
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ void otCryptoAesCcm(const uint8_t *aKey,
|
|||||||
* @retval OT_ERROR_NONE ECDSA sign has been created successfully.
|
* @retval OT_ERROR_NONE ECDSA sign has been created successfully.
|
||||||
* @retval OT_ERROR_NO_BUFS Output buffer is too small.
|
* @retval OT_ERROR_NO_BUFS Output buffer is too small.
|
||||||
* @retval OT_ERROR_INVALID_ARGS Private key is not valid EC Private Key.
|
* @retval OT_ERROR_INVALID_ARGS Private key is not valid EC Private Key.
|
||||||
* @rerval OT_ERROR_FAILED Error during signing.
|
* @retval OT_ERROR_FAILED Error during signing.
|
||||||
*/
|
*/
|
||||||
otError otCryptoEcdsaSign(uint8_t * aOutput,
|
otError otCryptoEcdsaSign(uint8_t * aOutput,
|
||||||
uint16_t * aOutputLength,
|
uint16_t * aOutputLength,
|
||||||
|
|||||||
@@ -245,10 +245,10 @@ otError otLinkRawEnergyScan(otInstance * aInstance,
|
|||||||
otLinkRawEnergyScanDone aCallback);
|
otLinkRawEnergyScanDone aCallback);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable/Disable source match for AutoPend.
|
* Enable/Disable source match for frame pending.
|
||||||
*
|
*
|
||||||
* @param[in] aInstance A pointer to an OpenThread instance.
|
* @param[in] aInstance A pointer to an OpenThread instance.
|
||||||
* @param[in] aEnable Enable/disable source match for automatical pending.
|
* @param[in] aEnable Enable/disable source match for frame pending.
|
||||||
*
|
*
|
||||||
* @retval OT_ERROR_NONE If successful.
|
* @retval OT_ERROR_NONE If successful.
|
||||||
* @retval OT_ERROR_INVALID_STATE If the raw link-layer isn't enabled.
|
* @retval OT_ERROR_INVALID_STATE If the raw link-layer isn't enabled.
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ typedef struct otMleCounters
|
|||||||
uint16_t mRouterRole; ///< Number of times device entered OT_DEVICE_ROLE_ROUTER role.
|
uint16_t mRouterRole; ///< Number of times device entered OT_DEVICE_ROLE_ROUTER role.
|
||||||
uint16_t mLeaderRole; ///< Number of times device entered OT_DEVICE_ROLE_LEADER role.
|
uint16_t mLeaderRole; ///< Number of times device entered OT_DEVICE_ROLE_LEADER role.
|
||||||
uint16_t mAttachAttempts; ///< Number of attach attempts while device was detached.
|
uint16_t mAttachAttempts; ///< Number of attach attempts while device was detached.
|
||||||
uint16_t mParitionIdChanges; ///< Number of changes to partition ID.
|
uint16_t mPartitionIdChanges; ///< Number of changes to partition ID.
|
||||||
uint16_t mBetterPartitionAttachAttempts; ///< Number of attempts to attach to a better partition.
|
uint16_t mBetterPartitionAttachAttempts; ///< Number of attempts to attach to a better partition.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ otError CoapSecure::Process(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
else if (strcmp(argv[0], "stop") == 0)
|
else if (strcmp(argv[0], "stop") == 0)
|
||||||
{
|
{
|
||||||
if (otCoapSecureIsConncetionActive(mInterpreter.mInstance))
|
if (otCoapSecureIsConnectionActive(mInterpreter.mInstance))
|
||||||
{
|
{
|
||||||
error = otCoapSecureDisconnect(mInterpreter.mInstance);
|
error = otCoapSecureDisconnect(mInterpreter.mInstance);
|
||||||
mShutdownFlag = true;
|
mShutdownFlag = true;
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ bool otCoapSecureIsConnected(otInstance *aInstance)
|
|||||||
return instance.GetApplicationCoapSecure().IsConnected();
|
return instance.GetApplicationCoapSecure().IsConnected();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool otCoapSecureIsConncetionActive(otInstance *aInstance)
|
bool otCoapSecureIsConnectionActive(otInstance *aInstance)
|
||||||
{
|
{
|
||||||
Instance &instance = *static_cast<Instance *>(aInstance);
|
Instance &instance = *static_cast<Instance *>(aInstance);
|
||||||
|
|
||||||
|
|||||||
@@ -976,7 +976,7 @@ void Mle::SetLeaderData(uint32_t aPartitionId, uint8_t aWeighting, uint8_t aLead
|
|||||||
{
|
{
|
||||||
GetNetif().GetMle().HandlePartitionChange();
|
GetNetif().GetMle().HandlePartitionChange();
|
||||||
GetNotifier().Signal(OT_CHANGED_THREAD_PARTITION_ID);
|
GetNotifier().Signal(OT_CHANGED_THREAD_PARTITION_ID);
|
||||||
mCounters.mParitionIdChanges++;
|
mCounters.mPartitionIdChanges++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user