This module includes functions that manage configuration parameters for the Thread Child, Router, and Leader roles. More...
Data Structures | |
struct | otOperationalDataset |
struct | otCommissioningDataset |
struct | otLinkModeConfig |
Typedefs | |
typedef struct otOperationalDataset | otOperationalDataset |
typedef struct otCommissioningDataset | otCommissioningDataset |
typedef enum otMeshcopTlvType | otMeshcopTlvType |
typedef struct otLinkModeConfig | otLinkModeConfig |
Functions | |
OTAPI uint8_t OTCALL | otThreadGetMaxAllowedChildren (otInstance *aInstance) |
OTAPI ThreadError OTCALL | otThreadSetMaxAllowedChildren (otInstance *aInstance, uint8_t aMaxChildren) |
OTAPI uint32_t OTCALL | otThreadGetChildTimeout (otInstance *aInstance) |
OTAPI void OTCALL | otThreadSetChildTimeout (otInstance *aInstance, uint32_t aTimeout) |
OTAPI const uint8_t *OTCALL | otThreadGetExtendedPanId (otInstance *aInstance) |
OTAPI void OTCALL | otThreadSetExtendedPanId (otInstance *aInstance, const uint8_t *aExtendedPanId) |
OTAPI ThreadError OTCALL | otThreadGetLeaderRloc (otInstance *aInstance, otIp6Address *aLeaderRloc) |
OTAPI otLinkModeConfig OTCALL | otThreadGetLinkMode (otInstance *aInstance) |
OTAPI ThreadError OTCALL | otThreadSetLinkMode (otInstance *aInstance, otLinkModeConfig aConfig) |
OTAPI const uint8_t *OTCALL | otThreadGetMasterKey (otInstance *aInstance, uint8_t *aKeyLength) |
OTAPI ThreadError OTCALL | otThreadSetMasterKey (otInstance *aInstance, const uint8_t *aKey, uint8_t aKeyLength) |
OTAPI const otIp6Address *OTCALL | otThreadGetMeshLocalEid (otInstance *aInstance) |
OTAPI const uint8_t *OTCALL | otThreadGetMeshLocalPrefix (otInstance *aInstance) |
OTAPI ThreadError OTCALL | otThreadSetMeshLocalPrefix (otInstance *aInstance, const uint8_t *aMeshLocalPrefix) |
OTAPI const char *OTCALL | otThreadGetNetworkName (otInstance *aInstance) |
OTAPI ThreadError OTCALL | otThreadSetNetworkName (otInstance *aInstance, const char *aNetworkName) |
OTAPI bool OTCALL | otThreadIsRouterRoleEnabled (otInstance *aInstance) |
OTAPI void OTCALL | otThreadSetRouterRoleEnabled (otInstance *aInstance, bool aEnabled) |
ThreadError | otThreadSetPreferredRouterId (otInstance *aInstance, uint8_t aRouterId) |
This module includes functions that manage configuration parameters for the Thread Child, Router, and Leader roles.
typedef struct otCommissioningDataset otCommissioningDataset |
This structure represents a Commissioning Dataset.
typedef struct otLinkModeConfig otLinkModeConfig |
This structure represents an MLE Link Mode configuration.
typedef enum otMeshcopTlvType otMeshcopTlvType |
This enumeration represents meshcop TLV types.
typedef struct otOperationalDataset otOperationalDataset |
This structure represents an Active or Pending Operational Dataset.
anonymous enum |
This enumeration represents flags that indicate what configuration or state has changed within OpenThread.
enum otMeshcopTlvType |
This enumeration represents meshcop TLV types.
OTAPI uint32_t OTCALL otThreadGetChildTimeout | ( | otInstance * | aInstance | ) |
Get the Thread Child Timeout used when operating in the Child role.
[in] | aInstance | A pointer to an OpenThread instance. |
OTAPI const uint8_t* OTCALL otThreadGetExtendedPanId | ( | otInstance * | aInstance | ) |
Get the IEEE 802.15.4 Extended PAN ID.
[in] | aInstance | A pointer to an OpenThread instance. |
OTAPI ThreadError OTCALL otThreadGetLeaderRloc | ( | otInstance * | aInstance, |
otIp6Address * | aLeaderRloc | ||
) |
This function returns a pointer to the Leader's RLOC.
[in] | aInstance | A pointer to an OpenThread instance. |
[out] | aLeaderRloc | A pointer to where the Leader's RLOC will be written. |
kThreadError_None | The Leader's RLOC was successfully written to aLeaderRloc . |
kThreadError_InvalidArgs | aLeaderRloc was NULL. |
kThreadError_Detached | Not currently attached to a Thread Partition. |
OTAPI otLinkModeConfig OTCALL otThreadGetLinkMode | ( | otInstance * | aInstance | ) |
Get the MLE Link Mode configuration.
[in] | aInstance | A pointer to an OpenThread instance. |
OTAPI const uint8_t* OTCALL otThreadGetMasterKey | ( | otInstance * | aInstance, |
uint8_t * | aKeyLength | ||
) |
Get the thrMasterKey.
[in] | aInstance | A pointer to an OpenThread instance. |
[out] | aKeyLength | A pointer to an unsigned 8-bit value that the function will set to the number of bytes that represent the thrMasterKey. Caller may set to NULL. |
OTAPI uint8_t OTCALL otThreadGetMaxAllowedChildren | ( | otInstance * | aInstance | ) |
Get the maximum number of children currently allowed.
[in] | aInstance | A pointer to an OpenThread instance. |
OTAPI const otIp6Address* OTCALL otThreadGetMeshLocalEid | ( | otInstance * | aInstance | ) |
This function returns a pointer to the Mesh Local EID.
[in] | aInstance | A pointer to an OpenThread instance. |
OTAPI const uint8_t* OTCALL otThreadGetMeshLocalPrefix | ( | otInstance * | aInstance | ) |
This function returns a pointer to the Mesh Local Prefix.
[in] | aInstance | A pointer to an OpenThread instance. |
OTAPI const char* OTCALL otThreadGetNetworkName | ( | otInstance * | aInstance | ) |
Get the Thread Network Name.
[in] | aInstance | A pointer to an OpenThread instance. |
OTAPI bool OTCALL otThreadIsRouterRoleEnabled | ( | otInstance * | aInstance | ) |
This function indicates whether or not the Router Role is enabled.
[in] | aInstance | A pointer to an OpenThread instance. |
TRUE | If the Router Role is enabled. |
FALSE | If the Router Role is not enabled. |
OTAPI void OTCALL otThreadSetChildTimeout | ( | otInstance * | aInstance, |
uint32_t | aTimeout | ||
) |
Set the Thread Child Timeout used when operating in the Child role.
[in] | aInstance | A pointer to an OpenThread instance. |
OTAPI void OTCALL otThreadSetExtendedPanId | ( | otInstance * | aInstance, |
const uint8_t * | aExtendedPanId | ||
) |
Set the IEEE 802.15.4 Extended PAN ID.
[in] | aInstance | A pointer to an OpenThread instance. |
[in] | aExtendedPanId | A pointer to the IEEE 802.15.4 Extended PAN ID. |
OTAPI ThreadError OTCALL otThreadSetLinkMode | ( | otInstance * | aInstance, |
otLinkModeConfig | aConfig | ||
) |
Set the MLE Link Mode configuration.
[in] | aInstance | A pointer to an OpenThread instance. |
[in] | aConfig | A pointer to the Link Mode configuration. |
kThreadErrorNone | Successfully set the MLE Link Mode configuration. |
OTAPI ThreadError OTCALL otThreadSetMasterKey | ( | otInstance * | aInstance, |
const uint8_t * | aKey, | ||
uint8_t | aKeyLength | ||
) |
Set the thrMasterKey.
[in] | aInstance | A pointer to an OpenThread instance. |
[in] | aKey | A pointer to a buffer containing the thrMasterKey. |
[in] | aKeyLength | Number of bytes representing the thrMasterKey stored at aKey. Valid range is [0, 16]. |
kThreadErrorNone | Successfully set the thrMasterKey. |
kThreadErrorInvalidArgs | If aKeyLength is larger than 16. |
OTAPI ThreadError OTCALL otThreadSetMaxAllowedChildren | ( | otInstance * | aInstance, |
uint8_t | aMaxChildren | ||
) |
Set the maximum number of children currently allowed.
This parameter can only be set when Thread protocol operation has been stopped.
[in] | aInstance | A pointer to an OpenThread instance. |
[in] | aMaxChildren | The maximum allowed children. |
kThreadErrorNone | Successfully set the max. |
kThreadError_InvalidArgs | If aMaxChildren is not in the range [1, OPENTHREAD_CONFIG_MAX_CHILDREN]. |
kThreadError_InvalidState | If Thread isn't stopped. |
OTAPI ThreadError OTCALL otThreadSetMeshLocalPrefix | ( | otInstance * | aInstance, |
const uint8_t * | aMeshLocalPrefix | ||
) |
This function sets the Mesh Local Prefix.
[in] | aInstance | A pointer to an OpenThread instance. |
[in] | aMeshLocalPrefix | A pointer to the Mesh Local Prefix. |
kThreadError_None | Successfully set the Mesh Local Prefix. |
OTAPI ThreadError OTCALL otThreadSetNetworkName | ( | otInstance * | aInstance, |
const char * | aNetworkName | ||
) |
Set the Thread Network Name.
[in] | aInstance | A pointer to an OpenThread instance. |
[in] | aNetworkName | A pointer to the Thread Network Name. |
kThreadErrorNone | Successfully set the Thread Network Name. |
ThreadError otThreadSetPreferredRouterId | ( | otInstance * | aInstance, |
uint8_t | aRouterId | ||
) |
Set the preferred Router Id.
Upon becoming a router/leader the node attempts to use this Router Id. If the preferred Router Id is not set or if it can not be used, a randomly generated router id is picked. This property can be set only when the device role is either detached or disabled.
[in] | aInstance | A pointer to an OpenThread instance. |
[in] | aRouterId | The preferred Router Id. |
kThreadError_None | Successfully set the preferred Router Id. |
kThreadError_InvalidState | Could not set (role is not detached or disabled) |
OTAPI void OTCALL otThreadSetRouterRoleEnabled | ( | otInstance * | aInstance, |
bool | aEnabled | ||
) |
This function sets whether or not the Router Role is enabled.
[in] | aInstance | A pointer to an OpenThread instance. |
[in] | aEnabled | TRUE if the Router Role is enabled, FALSE otherwise. |