Crate openthread_sys

Source

Structs§

__BindgenBitfieldUnit
__va_list_tag
otActiveScanResult
This structure represents a received IEEE 802.15.4 Beacon.
otBackboneRouterConfig
This structure represents Backbone Router configuration.
otBleRadioPacket
This structure represents an BLE packet.
otBorderRouterConfig
This structure represents a Border Router configuration.
otBufferInfo
This structure represents the message buffer information.
otCacheEntryInfo
This structure represents an EID cache entry.
otCacheEntryIterator
This type represents an iterator used for iterating through the EID cache table entries.
otChildInfo
This structure holds diagnostic information for a Thread Child
otCliCommand
This structure represents a CLI command.
otCoapOption
This structure represents a CoAP option.
otCoapOptionIterator
This structure acts as an iterator for CoAP options
otCoapResource
This structure represents a CoAP resource.
otCoapTxParameters
This structure represents the CoAP transmission parameters.
otCommissioningDataset
This structure represents a Commissioning Dataset.
otDnsQuery
This structure implements DNS Query parameters.
otEnergyScanResult
This structure represents an energy scan result.
otExtAddress
@struct otExtAddress
otExtendedPanId
This structure represents an Extended PAN ID.
otExternalRouteConfig
This structure represents an External Route configuration.
otIcmp6Handler
This structure implements ICMPv6 message handler.
otIcmp6Header
@struct otIcmp6Header
otInstance
otIp6Address
@struct otIp6Address
otIp6Prefix
This structure represents an IPv6 prefix.
otIpCounters
This structure represents the IP level counters.
otJoinerInfo
This structure represents a Joiner Info.
otLeaderData
This structure represents the Thread Leader Data.
otLinkModeConfig
This structure represents an MLE Link Mode configuration.
otMacCounters
This structure represents the MAC layer counters.
otMacFilterEntry
This structure represents a Mac Filter entry.
otMacKey
@struct otMacKey
otMasterKey
@struct otMasterKey
otMeshLocalPrefix
This structure represents a Mesh Local Prefix.
otMessage
This structure points to an OpenThread message buffer.
otMessageInfo
This structure represents the local and peer IPv6 socket addresses.
otMessageQueue
This structure represents an OpenThread message queue.
otMessageSettings
This structure represents a message settings.
otMleCounters
This structure represents the Thread MLE counters.
otNcpLegacyHandlers
Defines a struct containing all the legacy handlers (function pointers).
otNeighborInfo
This structure holds diagnostic information for a neighboring Thread node
otNeighborTableEntryInfo
This type represent a neighbor table entry info (child or router) and is used as a parameter in the neighbor table callback otNeighborTableCallback.
otNetifAddress
This structure represents an IPv6 network interface unicast address.
otNetifMulticastAddress
This structure represents an IPv6 network interface multicast address.
otNetworkDiagChildEntry
This structure represents a Network Diagnostic Child Table Entry.
otNetworkDiagConnectivity
This structure represents a Network Diagnostic Connectivity value.
otNetworkDiagMacCounters
This structure represents a Network Diagnostic Mac Counters value.
otNetworkDiagRoute
This structure represents a Network Diagnostic Route TLV value.
otNetworkDiagRouteData
This structure represents a Network Diagnostic Route data.
otNetworkDiagTlv
This structure represents a Network Diagnostic TLV.
otNetworkDiagTlv__bindgen_ty_1__bindgen_ty_1
otNetworkDiagTlv__bindgen_ty_1__bindgen_ty_2
otNetworkDiagTlv__bindgen_ty_1__bindgen_ty_3
otNetworkDiagTlv__bindgen_ty_1__bindgen_ty_4
otNetworkName
This structure represents a Network Name.
otOperationalDataset
This structure represents an Active or Pending Operational Dataset.
otOperationalDatasetComponents
This structure represents presence of different components in Active or Pending Operational Dataset.
otPlatBleDeviceAddr
This structure represents BLE Device Address.
otPlatBleGapConnParams
This structure represents BLE connection parameters.
otPlatBleGattCharacteristic
This structure represents GATT Characteristic.
otPlatBleGattDescriptor
This structure represents GATT Descriptor.
otPlatBleGattService
Registration descriptor for a GATT service.
otPlatBleUuid
This structure represents BLE UUID.
otPskc
This structure represents PSKc.
otRadioCoexMetrics
This structure represents radio coexistence metrics.
otRadioFrame
This structure represents an IEEE 802.15.4 radio frame.
otRadioFrame__bindgen_ty_1__bindgen_ty_1
Structure representing radio frame transmit information.
otRadioFrame__bindgen_ty_1__bindgen_ty_2
Structure representing radio frame receive information.
otRadioIeInfo
This structure represents the IEEE 802.15.4 Header IE (Information Element) related information of a radio frame.
otRouterInfo
This structure holds diagnostic information for a Thread Router
otSecurityPolicy
This structure represent Security Policy.
otServerConfig
This structure represents a Server configuration.
otServiceConfig
This structure represents a Service configuration.
otSntpQuery
This structure implements SNTP Query parameters.
otSockAddr
This structure represents an IPv6 socket address.
otSteeringData
This structure represents the steering data.
otThreadParentResponseInfo
This structure represents the MLE Parent Response data.
otUdpReceiver
This structure represents a UDP receiver.
otUdpSocket
This structure represents a UDP socket.

Constants§

OT_BLE_ADDRESS_LENGTH
The size of the Bluetooth Device Address [bytes].
OT_BLE_ADV_DATA_MAX_LENGTH
Maximum length of advertising data [bytes].
OT_BLE_ADV_INTERVAL_MAX
Maximum allowed interval for advertising packet in OT_BLE_ADV_INTERVAL_UNIT units (10.24s).
OT_BLE_ADV_INTERVAL_MIN
Minimum allowed interval for advertising packet in OT_BLE_ADV_INTERVAL_UNIT units (20ms).
OT_BLE_ADV_INTERVAL_UNIT
Unit used to calculate interval duration (0.625ms).
OT_BLE_ATT_MTU_MAX
Maximum value of ATT_MTU [bytes].
OT_BLE_CHARACTERISTIC_MAX_LENGTH
Maximum size of BLE Characteristic [bytes].
OT_BLE_CONN_INTERVAL_MAX
Maximum allowed connection interval in OT_BLE_CONN_INTERVAL_UNIT units (4s). See v4.2 [Vol 2, Part E] page 946
OT_BLE_CONN_INTERVAL_MIN
Minimum allowed connection interval in OT_BLE_CONN_INTERVAL_UNIT units (7.5ms). See v4.2 [Vol 2, Part E] page 946
OT_BLE_CONN_INTERVAL_UNIT
Unit used to calculate connection interval (1.25ms)
OT_BLE_CONN_SLAVE_LATENCY_MAX
Maximum allowed slave latency in units of connection events. See v4.2 [Vol 2, Part E] page 946
OT_BLE_CONN_SUPERVISOR_TIMEOUT_MAX
Maximum allowed connection timeout (32s). See v4.2 [Vol 2, Part E] page 946
OT_BLE_CONN_SUPERVISOR_TIMEOUT_MIN
Minimum allowed connection timeout in units of 10ms (100ms). See v4.2 [Vol 2, Part E] page 946
OT_BLE_CONN_SUPERVISOR_UNIT
Unit used to calculate connection supervisor timeout (10ms).
OT_BLE_DEV_NAME_MAX_LENGTH
Maximum length of the device name characteristic [bytes].
OT_BLE_HCI_REMOTE_USER_TERMINATED
BLE HCI code for remote user terminated connection.
OT_BLE_INVALID_HANDLE
Value of invalid/unknown handle.
OT_BLE_SCAN_INTERVAL_MAX
Maximum allowed scan interval (10.24s).
OT_BLE_SCAN_INTERVAL_MIN
Minimum allowed scan interval (2.5ms).
OT_BLE_SCAN_INTERVAL_UNIT
Unit used to calculate scan interval duration (0.625ms).
OT_BLE_SCAN_RESPONSE_MAX_LENGTH
Maximum length of scan response data [bytes].
OT_BLE_SCAN_WINDOW_MAX
Maximum allowed scan window in OT_BLE_TIMESLOT_UNIT units (10.24s).
OT_BLE_SCAN_WINDOW_MIN
Minimum allowed scan window in OT_BLE_TIMESLOT_UNIT units (2.5ms).
OT_BLE_SCAN_WINDOW_UNIT
Unit used to calculate scan window duration (0.625ms).
OT_BLE_TIMESLOT_UNIT
Time slot duration on PHY layer in microseconds (0.625ms).
OT_BLE_UUID_CCCD
Uuid of Client Configuration Characteristic Descriptor.
OT_BLE_UUID_LENGTH
Length of full BLE UUID in bytes.
OT_CHANGED_CHANNEL_MANAGER_NEW_CHANNEL
< Channel Manager new pending Thread channel changed
OT_CHANGED_COMMISSIONER_STATE
< Commissioner state changed
OT_CHANGED_IP6_ADDRESS_ADDED
< IPv6 address was added
OT_CHANGED_IP6_ADDRESS_REMOVED
< IPv6 address was removed
OT_CHANGED_IP6_MULTICAST_SUBSCRIBED
< Subscribed to a IPv6 multicast address
OT_CHANGED_IP6_MULTICAST_UNSUBSCRIBED
< Unsubscribed from a IPv6 multicast address
OT_CHANGED_JOINER_STATE
< Joiner state changed
OT_CHANGED_MASTER_KEY
< Master key changed
OT_CHANGED_PSKC
< PSKc changed
OT_CHANGED_SECURITY_POLICY
< Security Policy changed
OT_CHANGED_SUPPORTED_CHANNEL_MASK
< Supported channel mask changed
OT_CHANGED_THREAD_BACKBONE_ROUTER_LOCAL
< Local Backbone Router configuration changed
OT_CHANGED_THREAD_BACKBONE_ROUTER_STATE
< Backbone Router state changed
OT_CHANGED_THREAD_CHANNEL
< Thread network channel changed
OT_CHANGED_THREAD_CHILD_ADDED
< Child was added
OT_CHANGED_THREAD_CHILD_REMOVED
< Child was removed
OT_CHANGED_THREAD_EXT_PANID
< Thread network extended PAN ID changed
OT_CHANGED_THREAD_KEY_SEQUENCE_COUNTER
< Thread Key Sequence changed
OT_CHANGED_THREAD_LL_ADDR
< The link-local address changed
OT_CHANGED_THREAD_ML_ADDR
< The mesh-local address changed
OT_CHANGED_THREAD_NETDATA
< Thread Network Data changed
OT_CHANGED_THREAD_NETIF_STATE
< Thread network interface state changed
OT_CHANGED_THREAD_NETWORK_NAME
< Thread network name changed
OT_CHANGED_THREAD_PANID
< Thread network PAN Id changed
OT_CHANGED_THREAD_PARTITION_ID
< Partition ID changed
OT_CHANGED_THREAD_RLOC_ADDED
< RLOC was added
OT_CHANGED_THREAD_RLOC_REMOVED
< RLOC was removed
OT_CHANGED_THREAD_ROLE
< Role (disabled, detached, child, router, leader) changed
OT_CHANNEL_1_MASK
OT_CHANNEL_2_MASK
OT_CHANNEL_3_MASK
OT_CHANNEL_4_MASK
OT_CHANNEL_5_MASK
OT_CHANNEL_6_MASK
OT_CHANNEL_7_MASK
OT_CHANNEL_8_MASK
OT_CHANNEL_9_MASK
OT_CHANNEL_10_MASK
OT_CHANNEL_11_MASK
OT_CHANNEL_12_MASK
OT_CHANNEL_13_MASK
OT_CHANNEL_14_MASK
OT_CHANNEL_15_MASK
OT_CHANNEL_16_MASK
OT_CHANNEL_17_MASK
OT_CHANNEL_18_MASK
OT_CHANNEL_19_MASK
OT_CHANNEL_20_MASK
OT_CHANNEL_21_MASK
OT_CHANNEL_22_MASK
OT_CHANNEL_23_MASK
OT_CHANNEL_24_MASK
OT_CHANNEL_25_MASK
OT_CHANNEL_26_MASK
OT_CHILD_IP6_ADDRESS_ITERATOR_INIT
OT_COAP_MAX_RETRANSMIT
OT_COAP_MAX_TOKEN_LENGTH
OT_COAP_MIN_ACK_TIMEOUT
OT_COMMISSIONING_PASSPHRASE_MAX_SIZE
OT_COMMISSIONING_PASSPHRASE_MIN_SIZE
OT_CRYPTO_HMAC_SHA_HASH_SIZE
OT_DEFAULT_COAP_PORT
OT_DEFAULT_COAP_SECURE_PORT
OT_DNS_DEFAULT_SERVER_IP
OT_DNS_DEFAULT_SERVER_PORT
OT_DNS_MAX_HOSTNAME_LENGTH
OT_EXT_ADDRESS_SIZE
OT_EXT_PAN_ID_SIZE
OT_ICMP6_HEADER_DATA_SIZE
OT_IP6_ADDRESS_SIZE
OT_IP6_IID_SIZE
OT_IP6_PREFIX_BITSIZE
OT_IP6_PREFIX_SIZE
OT_LOG_LEVEL_CRIT
OT_LOG_LEVEL_DEBG
OT_LOG_LEVEL_INFO
OT_LOG_LEVEL_NONE
OT_LOG_LEVEL_NOTE
OT_LOG_LEVEL_WARN
OT_MAC_FILTER_FIXED_RSS_DISABLED
OT_MAC_FILTER_ITERATOR_INIT
OT_MAC_KEY_SIZE
OT_MASTER_KEY_SIZE
OT_MESH_LOCAL_PREFIX_SIZE
OT_NCP_LEGACY_ULA_PREFIX_LENGTH
OT_NEIGHBOR_INFO_ITERATOR_INIT
OT_NETWORK_BASE_TLV_MAX_LENGTH
OT_NETWORK_DATA_ITERATOR_INIT
OT_NETWORK_DIAGNOSTIC_CHILD_TABLE_ENTRY_SIZE
OT_NETWORK_DIAGNOSTIC_ITERATOR_INIT
OT_NETWORK_DIAGNOSTIC_TLV_BATTERY_LEVEL
< Battery Level TLV
OT_NETWORK_DIAGNOSTIC_TLV_CHANNEL_PAGES
< Channel Pages TLV
OT_NETWORK_DIAGNOSTIC_TLV_CHILD_TABLE
< Child Table TLV
OT_NETWORK_DIAGNOSTIC_TLV_CONNECTIVITY
< Connectivity TLV
OT_NETWORK_DIAGNOSTIC_TLV_EXT_ADDRESS
< MAC Extended Address TLV
OT_NETWORK_DIAGNOSTIC_TLV_IP6_ADDR_LIST
< IPv6 Address List TLV
OT_NETWORK_DIAGNOSTIC_TLV_LEADER_DATA
< Leader Data TLV
OT_NETWORK_DIAGNOSTIC_TLV_MAC_COUNTERS
< MAC Counters TLV
OT_NETWORK_DIAGNOSTIC_TLV_MAX_CHILD_TIMEOUT
< Max Child Timeout TLV
OT_NETWORK_DIAGNOSTIC_TLV_MODE
< Mode TLV
OT_NETWORK_DIAGNOSTIC_TLV_NETWORK_DATA
< Network Data TLV
OT_NETWORK_DIAGNOSTIC_TLV_ROUTE
< Route64 TLV
OT_NETWORK_DIAGNOSTIC_TLV_SHORT_ADDRESS
< Address16 TLV
OT_NETWORK_DIAGNOSTIC_TLV_SUPPLY_VOLTAGE
< Supply Voltage TLV
OT_NETWORK_DIAGNOSTIC_TLV_TIMEOUT
< Timeout TLV (the maximum polling time period for SEDs)
OT_NETWORK_DIAGNOSTIC_TLV_TYPE_LIST
< Type List TLV
OT_NETWORK_DIAGNOSTIC_TYPELIST_MAX_ENTRIES
OT_NETWORK_MAX_ROUTER_ID
OT_NETWORK_NAME_MAX_SIZE
OT_PANID_BROADCAST
OT_PROVISIONING_URL_MAX_SIZE
OT_PSKC_MAX_SIZE
OT_PSKD_MAX_SIZE
OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MASK
< 2.4 GHz IEEE 802.15.4-2006
OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MAX
< 2.4 GHz IEEE 802.15.4-2006
OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MIN
< 2.4 GHz IEEE 802.15.4-2006
OT_RADIO_915MHZ_OQPSK_CHANNEL_MASK
< 915 MHz IEEE 802.15.4-2006
OT_RADIO_915MHZ_OQPSK_CHANNEL_MAX
< 915 MHz IEEE 802.15.4-2006
OT_RADIO_915MHZ_OQPSK_CHANNEL_MIN
< 915 MHz IEEE 802.15.4-2006
OT_RADIO_BITS_PER_OCTET
< Number of bits per octet
OT_RADIO_BIT_RATE
< 2.4 GHz IEEE 802.15.4 (bits per second)
OT_RADIO_CAPS_ACK_TIMEOUT
< Radio supports AckTime event.
OT_RADIO_CAPS_CSMA_BACKOFF
< Radio supports CSMA backoff for frame transmission (but no retry).
OT_RADIO_CAPS_ENERGY_SCAN
< Radio supports Energy Scans.
OT_RADIO_CAPS_NONE
< Radio supports no capability.
OT_RADIO_CAPS_SLEEP_TO_TX
< Radio supports direct transition from sleep to TX with CSMA.
OT_RADIO_CAPS_TRANSMIT_RETRIES
< Radio supports tx retry logic with collision avoidance (CSMA).
OT_RADIO_CAPS_TRANSMIT_SEC
< Radio supports tx security.
OT_RADIO_CHANNEL_PAGE_0
< 2.4 GHz IEEE 802.15.4-2006
OT_RADIO_CHANNEL_PAGE_0_MASK
< 2.4 GHz IEEE 802.15.4-2006
OT_RADIO_CHANNEL_PAGE_2
< 915 MHz IEEE 802.15.4-2006
OT_RADIO_CHANNEL_PAGE_2_MASK
< 915 MHz IEEE 802.15.4-2006
OT_RADIO_CHANNEL_PAGE_MAX
< Maximum supported channel page value
OT_RADIO_FRAME_MAX_SIZE
< aMaxPHYPacketSize (IEEE 802.15.4-2006)
OT_RADIO_LQI_NONE
< LQI measurement not supported
OT_RADIO_RSSI_INVALID
< Invalid or unknown RSSI value
OT_RADIO_SYMBOLS_PER_OCTET
< 2.4 GHz IEEE 802.15.4-2006
OT_RADIO_SYMBOL_TIME
OT_SECURITY_POLICY_BEACONS
< Beacons enabled
OT_SECURITY_POLICY_EXTERNAL_COMMISSIONER
< External Commissioner allowed
OT_SECURITY_POLICY_NATIVE_COMMISSIONING
< Native Commissioning
OT_SECURITY_POLICY_OBTAIN_MASTER_KEY
< Obtaining the Master Key
OT_SECURITY_POLICY_ROUTERS
< Routers enabled
OT_SERVER_DATA_MAX_SIZE
OT_SERVICE_DATA_MAX_SIZE
OT_SNTP_DEFAULT_SERVER_IP
OT_SNTP_DEFAULT_SERVER_PORT
OT_STEERING_DATA_MAX_LENGTH
OT_TIME_SYNC_INVALID_SEQ
otBackboneRouterState_OT_BACKBONE_ROUTER_STATE_DISABLED
< Backbone function is disabled.
otBackboneRouterState_OT_BACKBONE_ROUTER_STATE_PRIMARY
< The Primary Backbone Router.
otBackboneRouterState_OT_BACKBONE_ROUTER_STATE_SECONDARY
< Secondary Backbone Router.
otBorderAgentState_OT_BORDER_AGENT_STATE_ACTIVE
< Border agent is connected with external commissioner.
otBorderAgentState_OT_BORDER_AGENT_STATE_STARTED
< Border agent is started.
otBorderAgentState_OT_BORDER_AGENT_STATE_STOPPED
< Border agent role is disabled.
otCacheEntryState_OT_CACHE_ENTRY_STATE_CACHED
otCacheEntryState_OT_CACHE_ENTRY_STATE_QUERY
otCacheEntryState_OT_CACHE_ENTRY_STATE_RETRY_QUERY
otCacheEntryState_OT_CACHE_ENTRY_STATE_SNOOPED
otCoapBlockSize_OT_COAP_BLOCK_SIZE_16
otCoapBlockSize_OT_COAP_BLOCK_SIZE_32
otCoapBlockSize_OT_COAP_BLOCK_SIZE_64
otCoapBlockSize_OT_COAP_BLOCK_SIZE_128
otCoapBlockSize_OT_COAP_BLOCK_SIZE_256
otCoapBlockSize_OT_COAP_BLOCK_SIZE_512
otCoapBlockSize_OT_COAP_BLOCK_SIZE_1024
otCoapCode_OT_COAP_CODE_BAD_GATEWAY
< Bad Gateway
otCoapCode_OT_COAP_CODE_BAD_OPTION
< Bad Option
otCoapCode_OT_COAP_CODE_BAD_REQUEST
< Bad Request
otCoapCode_OT_COAP_CODE_CHANGED
< Changed
otCoapCode_OT_COAP_CODE_CONTENT
< Content
otCoapCode_OT_COAP_CODE_CONTINUE
< RFC7959 Continue
otCoapCode_OT_COAP_CODE_CREATED
< Created
otCoapCode_OT_COAP_CODE_DELETE
< Delete
otCoapCode_OT_COAP_CODE_DELETED
< Deleted
otCoapCode_OT_COAP_CODE_EMPTY
< Empty message code
otCoapCode_OT_COAP_CODE_FORBIDDEN
< Forbidden
otCoapCode_OT_COAP_CODE_GATEWAY_TIMEOUT
< Gateway Timeout
otCoapCode_OT_COAP_CODE_GET
< Get
otCoapCode_OT_COAP_CODE_INTERNAL_ERROR
< Internal Server Error
otCoapCode_OT_COAP_CODE_METHOD_NOT_ALLOWED
< Method Not Allowed
otCoapCode_OT_COAP_CODE_NOT_ACCEPTABLE
< Not Acceptable
otCoapCode_OT_COAP_CODE_NOT_FOUND
< Not Found
otCoapCode_OT_COAP_CODE_NOT_IMPLEMENTED
< Not Implemented
otCoapCode_OT_COAP_CODE_POST
< Post
otCoapCode_OT_COAP_CODE_PRECONDITION_FAILED
< Precondition Failed
otCoapCode_OT_COAP_CODE_PROXY_NOT_SUPPORTED
< Proxying Not Supported
otCoapCode_OT_COAP_CODE_PUT
< Put
otCoapCode_OT_COAP_CODE_REQUEST_INCOMPLETE
< RFC7959 Request Entity Incomplete
otCoapCode_OT_COAP_CODE_REQUEST_TOO_LARGE
< Request Entity Too Large
otCoapCode_OT_COAP_CODE_RESPONSE_MIN
< 2.00
otCoapCode_OT_COAP_CODE_SERVICE_UNAVAILABLE
< Service Unavailable
otCoapCode_OT_COAP_CODE_UNAUTHORIZED
< Unauthorized
otCoapCode_OT_COAP_CODE_UNSUPPORTED_FORMAT
< Unsupported Content-Format
otCoapCode_OT_COAP_CODE_VALID
< Valid
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_CBOR
application/cbor: [RFC7049]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_COAP_GROUP_JSON
application/coap-group+json: [RFC7390]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_COSE_ENCRYPT
application/cose; cose-type=“cose-encrypt”: [RFC8152]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_COSE_ENCRYPT0
application/cose; cose-type=“cose-encrypt0”: [RFC8152]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_COSE_KEY
application/cose-key: [RFC8152]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_COSE_KEY_SET
application/cose-key-set: [RFC8152]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_COSE_MAC
application/cose; cose-type=“cose-mac”: [RFC8152]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_COSE_MAC0
application/cose; cose-type=“cose-mac0”: [RFC8152]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_COSE_SIGN
application/cose; cose-type=“cose-sign”: [RFC8152]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_COSE_SIGN1
application/cose; cose-type=“cose-sign1”: [RFC8152]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_CWT
application/cwt: [RFC8392]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_EXI
application/exi: [“Efficient XML Interchange (EXI) Format 1.0 (Second Edition)”, February 2014]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_JSON
application/json: [RFC7159]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_JSON_PATCH_JSON
application/json-patch+json: [RFC6902]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_LINK_FORMAT
application/link-format: [RFC6690]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_MERGE_PATCH_JSON
application/merge-patch+json: [RFC7396]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_OCTET_STREAM
application/octet-stream: [RFC2045][RFC2046]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_SENML_CBOR
application/senml+cbor: [RFC8428]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_SENML_EXI
application/senml-exi: [RFC8428]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_SENML_JSON
application/senml+json: [RFC8428]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_SENML_XML
application/senml+xml: [RFC8428]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_SENSML_CBOR
application/sensml+cbor: [RFC8428]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_SENSML_EXI
application/sensml-exi: [RFC8428]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_SENSML_JSON
application/sensml+json: [RFC8428]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_SENSML_XML
application/sensml+xml: [RFC8428]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_TEXT_PLAIN
text/plain; charset=utf-8: [RFC2046][RFC3676][RFC5147]
otCoapOptionContentFormat_OT_COAP_OPTION_CONTENT_FORMAT_XML
application/xml: [RFC3023]
otCoapType_OT_COAP_TYPE_ACKNOWLEDGMENT
< Acknowledgment
otCoapType_OT_COAP_TYPE_CONFIRMABLE
< Confirmable
otCoapType_OT_COAP_TYPE_NON_CONFIRMABLE
< Non-confirmable
otCoapType_OT_COAP_TYPE_RESET
< Reset
otCommissionerJoinerEvent_OT_COMMISSIONER_JOINER_CONNECTED
otCommissionerJoinerEvent_OT_COMMISSIONER_JOINER_END
otCommissionerJoinerEvent_OT_COMMISSIONER_JOINER_FINALIZE
otCommissionerJoinerEvent_OT_COMMISSIONER_JOINER_REMOVED
otCommissionerJoinerEvent_OT_COMMISSIONER_JOINER_START
otCommissionerState_OT_COMMISSIONER_STATE_ACTIVE
< Commissioner role is active.
otCommissionerState_OT_COMMISSIONER_STATE_DISABLED
< Commissioner role is disabled.
otCommissionerState_OT_COMMISSIONER_STATE_PETITION
< Currently petitioning to become a Commissioner.
otDeviceRole_OT_DEVICE_ROLE_CHILD
< The Thread Child role.
otDeviceRole_OT_DEVICE_ROLE_DETACHED
< Not currently participating in a Thread network/partition.
otDeviceRole_OT_DEVICE_ROLE_DISABLED
< The Thread stack is disabled.
otDeviceRole_OT_DEVICE_ROLE_LEADER
< The Thread Leader role.
otDeviceRole_OT_DEVICE_ROLE_ROUTER
< The Thread Router role.
otError_OT_ERROR_ABORT
Operation was aborted.
otError_OT_ERROR_ADDRESS_FILTERED
Received a frame filtered by the address filter (whitelisted or blacklisted).
otError_OT_ERROR_ADDRESS_QUERY
Address resolution requires an address query operation.
otError_OT_ERROR_ALREADY
The operation is already in progress.
otError_OT_ERROR_BUSY
Service is busy and could not service the operation.
otError_OT_ERROR_CHANNEL_ACCESS_FAILURE
A transmission could not take place due to activity on the channel, i.e., the CSMA-CA mechanism has failed (IEEE 802.15.4-2006).
otError_OT_ERROR_DESTINATION_ADDRESS_FILTERED
Received a frame filtered by the destination address check.
otError_OT_ERROR_DETACHED
Not currently attached to a Thread Partition.
otError_OT_ERROR_DROP
Message was dropped.
otError_OT_ERROR_DUPLICATED
Received a duplicated frame.
otError_OT_ERROR_FAILED
Operational failed.
otError_OT_ERROR_FCS
FCS check failure while receiving.
otError_OT_ERROR_GENERIC
Generic error (should not use).
otError_OT_ERROR_INVALID_ARGS
Input arguments are invalid.
otError_OT_ERROR_INVALID_COMMAND
Input (CLI) command is invalid.
otError_OT_ERROR_INVALID_SOURCE_ADDRESS
Received a frame from an invalid source address.
otError_OT_ERROR_INVALID_STATE
Cannot complete due to invalid state.
otError_OT_ERROR_IP6_ADDRESS_CREATION_FAILURE
The creation of IPv6 address failed.
otError_OT_ERROR_LINK_MARGIN_LOW
The link margin was too low.
otError_OT_ERROR_NONE
No error.
otError_OT_ERROR_NOT_CAPABLE
Operation prevented by mode flags
otError_OT_ERROR_NOT_FOUND
The requested item could not be found.
otError_OT_ERROR_NOT_IMPLEMENTED
Function or method is not implemented.
otError_OT_ERROR_NOT_LOWPAN_DATA_FRAME
Received a non-lowpan data frame.
otError_OT_ERROR_NOT_TMF
Message is not a TMF Message.
otError_OT_ERROR_NO_ACK
No acknowledgment was received after macMaxFrameRetries (IEEE 802.15.4-2006).
otError_OT_ERROR_NO_ADDRESS
Address is not in the source match table.
otError_OT_ERROR_NO_BUFS
Insufficient buffers.
otError_OT_ERROR_NO_FRAME_RECEIVED
No frame received.
otError_OT_ERROR_NO_ROUTE
No route available.
otError_OT_ERROR_PARSE
Failed to parse message.
otError_OT_ERROR_REASSEMBLY_TIMEOUT
Message is being dropped from reassembly list due to timeout.
otError_OT_ERROR_RESPONSE_TIMEOUT
Coap response or acknowledgment or DNS, SNTP response not received.
otError_OT_ERROR_SECURITY
Security checks failed.
otError_OT_ERROR_UNKNOWN_NEIGHBOR
Received a frame from an unknown neighbor.
otError_OT_NUM_ERRORS
The number of defined errors.
otIcmp6EchoMode_OT_ICMP6_ECHO_HANDLER_ALL
< ICMPv6 Echo processing enabled for unicast and multicast requests
otIcmp6EchoMode_OT_ICMP6_ECHO_HANDLER_DISABLED
< ICMPv6 Echo processing disabled
otIcmp6EchoMode_OT_ICMP6_ECHO_HANDLER_MULTICAST_ONLY
< ICMPv6 Echo processing enabled only for multicast requests only
otIcmp6EchoMode_OT_ICMP6_ECHO_HANDLER_UNICAST_ONLY
< ICMPv6 Echo processing enabled only for unicast requests only
otJoinerState_OT_JOINER_STATE_CONNECT
otJoinerState_OT_JOINER_STATE_CONNECTED
otJoinerState_OT_JOINER_STATE_DISCOVER
otJoinerState_OT_JOINER_STATE_ENTRUST
otJoinerState_OT_JOINER_STATE_IDLE
otJoinerState_OT_JOINER_STATE_JOINED
otLogRegion_OT_LOG_REGION_API
< OpenThread API
otLogRegion_OT_LOG_REGION_ARP
< EID-to-RLOC mapping.
otLogRegion_OT_LOG_REGION_BBR
< Backbone Router (available since Thread 1.2)
otLogRegion_OT_LOG_REGION_CLI
< CLI
otLogRegion_OT_LOG_REGION_COAP
< CoAP
otLogRegion_OT_LOG_REGION_CORE
< OpenThread Core
otLogRegion_OT_LOG_REGION_ICMP
< ICMPv6
otLogRegion_OT_LOG_REGION_IP6
< IPv6
otLogRegion_OT_LOG_REGION_MAC
< IEEE 802.15.4 MAC
otLogRegion_OT_LOG_REGION_MEM
< Memory
otLogRegion_OT_LOG_REGION_MESH_COP
< Mesh Commissioning Protocol
otLogRegion_OT_LOG_REGION_MLE
< MLE
otLogRegion_OT_LOG_REGION_NCP
< NCP
otLogRegion_OT_LOG_REGION_NET_DATA
< Network Data
otLogRegion_OT_LOG_REGION_NET_DIAG
< Network Diagnostic
otLogRegion_OT_LOG_REGION_PLATFORM
< Platform
otLogRegion_OT_LOG_REGION_UTIL
< Utility module
otMacFilterAddressMode_OT_MAC_FILTER_ADDRESS_MODE_BLACKLIST
< Blacklist address filter mode is enabled.
otMacFilterAddressMode_OT_MAC_FILTER_ADDRESS_MODE_DISABLED
< Address filter is disabled.
otMacFilterAddressMode_OT_MAC_FILTER_ADDRESS_MODE_WHITELIST
< Whitelist address filter mode is enabled.
otMessagePriority_OT_MESSAGE_PRIORITY_HIGH
< High priority level.
otMessagePriority_OT_MESSAGE_PRIORITY_LOW
< Low priority level.
otMessagePriority_OT_MESSAGE_PRIORITY_NORMAL
< Normal priority level.
otNeighborTableEvent_OT_NEIGHBOR_TABLE_EVENT_CHILD_ADDED
< A child is being added.
otNeighborTableEvent_OT_NEIGHBOR_TABLE_EVENT_CHILD_REMOVED
< A child is being removed.
otNeighborTableEvent_OT_NEIGHBOR_TABLE_EVENT_ROUTER_ADDED
< A router is being added.
otNeighborTableEvent_OT_NEIGHBOR_TABLE_EVENT_ROUTER_REMOVED
< A router is being removed.
otNetworkTimeStatus_OT_NETWORK_TIME_RESYNC_NEEDED
< The device hasn’t received time sync for more than two periods time.
otNetworkTimeStatus_OT_NETWORK_TIME_SYNCHRONIZED
< The device network time is synchronized.
otNetworkTimeStatus_OT_NETWORK_TIME_UNSYNCHRONIZED
< The device hasn’t attached to a network.
otPlatBleL2capError_OT_BLE_L2C_ERROR_INVALID_PARAMS
< Connection refused – unacceptable parameters.
otPlatBleL2capError_OT_BLE_L2C_ERROR_INVALID_PSM
< Connection refused – LE_PSM not supported.
otPlatBleL2capError_OT_BLE_L2C_ERROR_NONE
< Connection successful.
otPlatBleL2capError_OT_BLE_L2C_ERROR_NO_MEM
< Connection refused – no resources available.
otPlatBleUuidType_OT_BLE_UUID_TYPE_16
< UUID represented by 16-bit value.
otPlatBleUuidType_OT_BLE_UUID_TYPE_32
< UUID represented by 32-bit value.
otPlatBleUuidType_OT_BLE_UUID_TYPE_128
< UUID represented by 128-bit value.
otPlatBleUuidType_OT_BLE_UUID_TYPE_NONE
< UUID uninitialized value.
otPlatMcuPowerState_OT_PLAT_MCU_POWER_STATE_LOW_POWER
NCP’s MCU can enter low-power (energy-saving) state.
otPlatMcuPowerState_OT_PLAT_MCU_POWER_STATE_OFF
NCP is fully off.
otPlatMcuPowerState_OT_PLAT_MCU_POWER_STATE_ON
NCP’s MCU stays on and active all the time.
otPlatResetReason_OT_PLAT_RESET_REASON_ASSERT
otPlatResetReason_OT_PLAT_RESET_REASON_COUNT
otPlatResetReason_OT_PLAT_RESET_REASON_CRASH
otPlatResetReason_OT_PLAT_RESET_REASON_EXTERNAL
otPlatResetReason_OT_PLAT_RESET_REASON_FAULT
otPlatResetReason_OT_PLAT_RESET_REASON_OTHER
otPlatResetReason_OT_PLAT_RESET_REASON_POWER_ON
otPlatResetReason_OT_PLAT_RESET_REASON_SOFTWARE
otPlatResetReason_OT_PLAT_RESET_REASON_UNKNOWN
otPlatResetReason_OT_PLAT_RESET_REASON_WATCHDOG
otRadioState_OT_RADIO_STATE_DISABLED
otRadioState_OT_RADIO_STATE_INVALID
otRadioState_OT_RADIO_STATE_RECEIVE
otRadioState_OT_RADIO_STATE_SLEEP
otRadioState_OT_RADIO_STATE_TRANSMIT

Functions§

otBackboneRouterGetConfig
This function gets the local Backbone Router configuration.
otBackboneRouterGetDomainPrefix
This method gets the local Domain Prefix configuration.
otBackboneRouterGetPrimary
This function gets the Primary Backbone Router information in the Thread Network.
otBackboneRouterGetRegistrationJitter
This method returns the Backbone Router registration jitter value.
otBackboneRouterGetState
This function gets the Backbone Router state.
otBackboneRouterRegister
This function explicitly registers local Backbone Router configuration.
otBackboneRouterSetConfig
This function sets the local Backbone Router configuration.
otBackboneRouterSetEnabled
This function enables or disables Backbone functionality.
otBackboneRouterSetRegistrationJitter
This method sets the Backbone Router registration jitter value.
otBorderAgentGetState
This function gets the state of Thread Border Agent role.
otBorderRouterAddOnMeshPrefix
Add a border router configuration to the local network data.
otBorderRouterAddRoute
Add an external route configuration to the local network data.
otBorderRouterGetNetData
This method provides a full or stable copy of the local Thread Network Data.
otBorderRouterGetNextOnMeshPrefix
This function gets the next On Mesh Prefix in the local Network Data.
otBorderRouterGetNextRoute
This function gets the next external route in the local Network Data.
otBorderRouterRegister
Immediately register the local network data with the Leader.
otBorderRouterRemoveOnMeshPrefix
Remove a border router configuration from the local network data.
otBorderRouterRemoveRoute
Remove an external route configuration from the local network data.
otChannelManagerGetAutoChannelSelectionEnabled
This function indicates whether the auto-channel-selection functionality is enabled or not.
otChannelManagerGetAutoChannelSelectionInterval
This function gets the period interval (in seconds) used by auto-channel-selection functionality.
otChannelManagerGetDelay
This function gets the delay (in seconds) used by Channel Manager for a channel change.
otChannelManagerGetFavoredChannels
This function gets the favored channel mask.
otChannelManagerGetRequestedChannel
This function gets the channel from the last successful call to otChannelManagerRequestChannelChange()
otChannelManagerGetSupportedChannels
This function gets the supported channel mask.
otChannelManagerRequestChannelChange
This function requests a Thread network channel change.
otChannelManagerRequestChannelSelect
This function requests that ChannelManager checks and selects a new channel and starts a channel change.
otChannelManagerSetAutoChannelSelectionEnabled
This function enables/disables the auto-channel-selection functionality.
otChannelManagerSetAutoChannelSelectionInterval
This function sets the period interval (in seconds) used by auto-channel-selection functionality.
otChannelManagerSetDelay
This function sets the delay (in seconds) used for a channel change.
otChannelManagerSetFavoredChannels
This function sets the favored channel mask.
otChannelManagerSetSupportedChannels
This function sets the supported channel mask.
otChannelMonitorGetChannelOccupancy
Gets the current channel occupancy for a given channel.
otChannelMonitorGetRssiThreshold
Get channel monitoring RSSI threshold in dBm.
otChannelMonitorGetSampleCount
Get channel monitoring total number of RSSI samples (per channel).
otChannelMonitorGetSampleInterval
Get channel monitoring sample interval in milliseconds.
otChannelMonitorGetSampleWindow
Get channel monitoring averaging sample window length (number of samples).
otChannelMonitorIsEnabled
This function indicates whether the Channel Monitoring operation is enabled and running.
otChannelMonitorSetEnabled
This function enables/disables the Channel Monitoring operation.
otChildSupervisionGetCheckTimeout
Get the supervision check timeout interval (in seconds).
otChildSupervisionGetInterval
Get the child supervision interval (in seconds).
otChildSupervisionSetCheckTimeout
Set the supervision check timeout interval (in seconds).
otChildSupervisionSetInterval
Set the child supervision interval (in seconds).
otCliAppendResult
Write error code to the CLI console
otCliConsoleInit
Initialize the CLI CONSOLE module.
otCliConsoleInputLine
This method is called to feed in a console input line.
otCliOutput
Write string to the CLI console
otCliOutputBytes
Write a number of bytes to the CLI console as a hex string.
otCliOutputFormat
Write formatted string to the CLI console
otCliPlatLogv
Callback to write the OpenThread Log to the CLI console
otCliSetUserCommands
Set a user command table.
otCliUartInit
Initialize the CLI UART module.
otCoapAddResource
This function adds a resource to the CoAP server.
otCoapBlockSizeFromExponent
This function converts a CoAP Block option SZX field to the actual block size
otCoapMessageAppendBlock1Option
This function appends a Block1 option
otCoapMessageAppendBlock2Option
This function appends a Block2 option
otCoapMessageAppendContentFormatOption
This function appends the Content Format CoAP option as specified in https://tools.ietf.org/html/rfc7252#page-92. This must be called before setting otCoapMessageSetPayloadMarker if a payload is to be included in the message.
otCoapMessageAppendMaxAgeOption
This function appends a Max-Age option.
otCoapMessageAppendObserveOption
This function appends an Observe option.
otCoapMessageAppendOption
This function appends a CoAP option in a header.
otCoapMessageAppendProxyUriOption
This function appends a Proxy-Uri option.
otCoapMessageAppendUintOption
This function appends an unsigned integer CoAP option as specified in https://tools.ietf.org/html/rfc7252#section-3.2
otCoapMessageAppendUriPathOptions
This function appends a Uri-Path option.
otCoapMessageAppendUriQueryOption
This function appends a single Uri-Query option.
otCoapMessageCodeToString
This method returns the CoAP Code as human readable string.
otCoapMessageGenerateToken
This function sets the Token length and randomizes its value.
otCoapMessageGetCode
This function returns the Code value.
otCoapMessageGetMessageId
This function returns the Message ID value.
otCoapMessageGetToken
This function returns a pointer to the Token value.
otCoapMessageGetTokenLength
This function returns the Token length.
otCoapMessageGetType
This function returns the Type value.
otCoapMessageInit
This function initializes the CoAP header.
otCoapMessageInitResponse
This function initializes a response message.
otCoapMessageSetPayloadMarker
This function adds Payload Marker indicating beginning of the payload to the CoAP header.
otCoapMessageSetToken
This function sets the Token value and length in a header.
otCoapNewMessage
This function creates a new CoAP message.
otCoapOptionIteratorGetFirstOption
This function returns a pointer to the first option.
otCoapOptionIteratorGetFirstOptionMatching
This function returns a pointer to the first option matching the specified option number.
otCoapOptionIteratorGetNextOption
This function returns a pointer to the next option.
otCoapOptionIteratorGetNextOptionMatching
This function returns a pointer to the next option matching the specified option number.
otCoapOptionIteratorGetOptionUintValue
This function fills current option value into @p aValue assuming the current value is an unsigned integer encoded according to https://tools.ietf.org/html/rfc7252#section-3.2
otCoapOptionIteratorGetOptionValue
This function fills current option value into @p aValue.
otCoapOptionIteratorInit
This function initialises an iterator for the options in the given message.
otCoapRemoveResource
This function removes a resource from the CoAP server.
otCoapSecureAddResource
This function adds a resource to the CoAP Secure server.
otCoapSecureConnect
This method initializes DTLS session with a peer.
otCoapSecureDisconnect
This method stops the DTLS connection.
otCoapSecureGetPeerCertificateBase64
This method returns the peer x509 certificate base64 encoded.
otCoapSecureIsConnected
This method indicates whether or not the DTLS session is connected.
otCoapSecureIsConnectionActive
This method indicates whether or not the DTLS session is active.
otCoapSecureRemoveResource
This function removes a resource from the CoAP Secure server.
otCoapSecureSendRequest
This method sends a CoAP request over secure DTLS connection.
otCoapSecureSendResponse
This function sends a CoAP response from the CoAP Secure server.
otCoapSecureSetCaCertificateChain
This method sets the trusted top level CAs. It is needed for validating the certificate of the peer.
otCoapSecureSetCertificate
This method sets the local device’s X509 certificate with corresponding private key for DTLS session with DTLS_ECDHE_ECDSA_WITH_AES_128_CCM_8.
otCoapSecureSetClientConnectedCallback
This method sets the connected callback to indicate, when a Client connect to the CoAP Secure server.
otCoapSecureSetDefaultHandler
This function sets the default handler for unhandled CoAP Secure requests.
otCoapSecureSetPsk
This method sets the Pre-Shared Key (PSK) and cipher suite DTLS_PSK_WITH_AES_128_CCM_8.
otCoapSecureSetSslAuthMode
This method sets the authentication mode for the coap secure connection.
otCoapSecureStart
This function starts the CoAP Secure service.
otCoapSecureStop
This function stops the CoAP Secure server.
otCoapSendRequestWithParameters
This function sends a CoAP request with custom transmission parameters.
otCoapSendResponseWithParameters
This function sends a CoAP response from the server with custom transmission parameters.
otCoapSetDefaultHandler
This function sets the default handler for unhandled CoAP requests.
otCoapStart
This function starts the CoAP server.
otCoapStop
This function stops the CoAP server.
otCommissionerAddJoiner
This function adds a Joiner entry.
otCommissionerAnnounceBegin
This function sends an Announce Begin message.
otCommissionerEnergyScan
This function sends an Energy Scan Query message.
otCommissionerGetNextJoinerInfo
This method get joiner info at aIterator position.
otCommissionerGetProvisioningUrl
This function gets the Provisioning URL.
otCommissionerGetSessionId
This function returns the Commissioner Session ID.
otCommissionerGetState
This function returns the Commissioner State.
otCommissionerPanIdQuery
This function sends a PAN ID Query message.
otCommissionerRemoveJoiner
This function removes a Joiner entry.
otCommissionerSendMgmtGet
This function sends MGMT_COMMISSIONER_GET.
otCommissionerSendMgmtSet
This function sends MGMT_COMMISSIONER_SET.
otCommissionerSetProvisioningUrl
This function sets the Provisioning URL.
otCommissionerStart
This function enables the Thread Commissioner role.
otCommissionerStop
This function disables the Thread Commissioner role.
otCryptoAesCcm
This method performs AES CCM computation.
otCryptoEcdsaSign
This method creates ECDSA sign.
otCryptoHmacSha256
This function performs HMAC computation.
otDatasetCreateNewNetwork
This method creates a new Operational Dataset to use when forming a new network.
otDatasetGeneratePskc
This function generates PSKc from a given pass-phrase, network name, and extended PAN ID.
otDatasetGetActive
This function gets the Active Operational Dataset.
otDatasetGetDelayTimerMinimal
Get minimal delay timer.
otDatasetGetPending
This function gets the Pending Operational Dataset.
otDatasetIsCommissioned
This function indicates whether a valid network is present in the Active Operational Dataset or not.
otDatasetSendMgmtActiveGet
This function sends MGMT_ACTIVE_GET.
otDatasetSendMgmtActiveSet
This function sends MGMT_ACTIVE_SET.
otDatasetSendMgmtPendingGet
This function sends MGMT_PENDING_GET.
otDatasetSendMgmtPendingSet
This function sends MGMT_PENDING_SET.
otDatasetSetActive
This function sets the Active Operational Dataset.
otDatasetSetDelayTimerMinimal
Set minimal delay timer.
otDatasetSetPending
This function sets the Pending Operational Dataset.
otDiagIsEnabled
This function indicates whether or not the factory diagnostics mode is enabled.
otDiagProcessCmd
This function processes a factory diagnostics command line.
otDiagProcessCmdLine
This function processes a factory diagnostics command line.
otDnsClientQuery
This function sends a DNS query for AAAA (IPv6) record.
otGetRadioVersionString
This function gets the OpenThread radio version string.
otGetVersionString
This function gets the OpenThread version string.
otHeapCAlloc
@note This API is deprecated and use of it is discouraged.
otHeapFree
@note This API is deprecated and use of it is discouraged.
otHeapSetCAllocFree
This function sets the external heap CAlloc and Free functions to be used by the OpenThread stack.
otIcmp6GetEchoMode
This function indicates whether or not ICMPv6 Echo processing is enabled.
otIcmp6RegisterHandler
This function registers a handler to provide received ICMPv6 messages.
otIcmp6SendEchoRequest
This function sends an ICMPv6 Echo Request via the Thread interface.
otIcmp6SetEchoMode
This function sets whether or not ICMPv6 Echo processing is enabled.
otInstanceErasePersistentInfo
This function erases all the OpenThread persistent info (network settings) stored on non-volatile memory. Erase is successful only if the device is in disabled state/role.
otInstanceFactoryReset
This method deletes all the settings stored on non-volatile memory, and then triggers platform reset.
otInstanceFinalize
This function disables the OpenThread library.
otInstanceInit
This function initializes the OpenThread library.
otInstanceInitSingle
This function initializes the static single instance of the OpenThread library.
otInstanceIsInitialized
This function indicates whether or not the instance is valid/initialized.
otInstanceReset
This method triggers a platform reset.
otIp6AddUnicastAddress
Add a Network Interface Address to the Thread interface.
otIp6AddUnsecurePort
This function adds a port to the allowed unsecured port list.
otIp6AddressFromString
Convert a human-readable IPv6 address string into a binary representation.
otIp6GetMulticastAddresses
Get the list of IPv6 multicast addresses subscribed to the Thread interface.
otIp6GetUnicastAddresses
Get the list of IPv6 addresses assigned to the Thread interface.
otIp6GetUnsecurePorts
This function returns a pointer to the unsecure port list.
otIp6IsAddressEqual
Test if two IPv6 addresses are the same.
otIp6IsAddressUnspecified
This function indicates whether or not a given IPv6 address is the Unspecified Address.
otIp6IsEnabled
This function indicates whether or not the IPv6 interface is up.
otIp6IsMulticastPromiscuousEnabled
Check if multicast promiscuous mode is enabled on the Thread interface.
otIp6IsReceiveFilterEnabled
This function indicates whether or not Thread control traffic is filtered out when delivering IPv6 datagrams via the callback specified in otIp6SetReceiveCallback().
otIp6IsSlaacEnabled
This function indicates whether the SLAAC module is enabled or not.
otIp6NewMessage
Allocate a new message buffer for sending an IPv6 message.
otIp6NewMessageFromBuffer
Allocate a new message buffer and write the IPv6 datagram to the message buffer for sending an IPv6 message.
otIp6PrefixMatch
This function returns the prefix match length (bits) for two IPv6 addresses.
otIp6RemoveAllUnsecurePorts
This function removes all ports from the allowed unsecure port list.
otIp6RemoveUnicastAddress
Remove a Network Interface Address from the Thread interface.
otIp6RemoveUnsecurePort
This function removes a port from the allowed unsecure port list.
otIp6SelectSourceAddress
This function perform OpenThread source address selection.
otIp6Send
This function sends an IPv6 datagram via the Thread interface.
otIp6SetAddressCallback
This function registers a callback to notify internal IPv6 address changes.
otIp6SetEnabled
This function brings up/down the IPv6 interface.
otIp6SetMulticastPromiscuousEnabled
Enable multicast promiscuous mode on the Thread interface.
otIp6SetReceiveCallback
This function registers a callback to provide received IPv6 datagrams.
otIp6SetReceiveFilterEnabled
This function sets whether or not Thread control traffic is filtered out when delivering IPv6 datagrams via the callback specified in otIp6SetReceiveCallback().
otIp6SetSlaacEnabled
This function enables/disables the SLAAC module.
otIp6SetSlaacPrefixFilter
This function sets the SLAAC module filter handler.
otIp6SubscribeMulticastAddress
Subscribe the Thread interface to a Network Interface Multicast Address.
otIp6UnsubscribeMulticastAddress
Unsubscribe the Thread interface to a Network Interface Multicast Address.
otJamDetectionGetBusyPeriod
Get the Jam Detection Busy Period (in seconds)
otJamDetectionGetHistoryBitmap
Get the current history bitmap.
otJamDetectionGetRssiThreshold
Get the Jam Detection RSSI Threshold (in dBm).
otJamDetectionGetState
Get the Jam Detection State
otJamDetectionGetWindow
Get the Jam Detection Detection Window (in seconds).
otJamDetectionIsEnabled
Get the Jam Detection Status (enabled/disabled)
otJamDetectionSetBusyPeriod
Set the Jam Detection Busy Period (in seconds).
otJamDetectionSetRssiThreshold
Set the Jam Detection RSSI Threshold (in dBm).
otJamDetectionSetWindow
Set the Jam Detection Detection Window (in seconds).
otJamDetectionStart
Start the jamming detection.
otJamDetectionStop
Stop the jamming detection.
otJoinerGetId
Get the Joiner ID.
otJoinerGetState
This function returns the Joiner State.
otJoinerStart
This function enables the Thread Joiner role.
otJoinerStop
This function disables the Thread Joiner role.
otLinkActiveScan
This function starts an IEEE 802.15.4 Active Scan
otLinkConvertLinkQualityToRss
This method converts link quality to typical received signal strength.
otLinkConvertRssToLinkQuality
This method converts received signal strength to link quality.
otLinkEnergyScan
This function starts an IEEE 802.15.4 Energy Scan
otLinkFilterAddAddress
This method adds an Extended Address to MAC filter.
otLinkFilterAddRssIn
This method sets the received signal strength (in dBm) for the messages from the Extended Address. The default received signal strength for all received messages would be set if no Extended Address is specified.
otLinkFilterClearAddresses
This method clears all the Extended Addresses from MAC filter.
otLinkFilterClearRssIn
This method clears all the received signal strength settings.
otLinkFilterGetAddressMode
This function gets the address mode of MAC filter.
otLinkFilterGetNextAddress
This method gets an in-use address filter entry.
otLinkFilterGetNextRssIn
This method gets an in-use RssIn filter entry.
otLinkFilterRemoveAddress
This method removes an Extended Address from MAC filter.
otLinkFilterRemoveRssIn
This method removes the received signal strength setting for the received messages from the Extended Address or removes the default received signal strength setting if no Extended Address is specified.
otLinkFilterSetAddressMode
This function sets the address mode of MAC filter.
otLinkGetCcaFailureRate
This function returns the current CCA (Clear Channel Assessment) failure rate.
otLinkGetChannel
Get the IEEE 802.15.4 channel.
otLinkGetCounters
Get the MAC layer counters.
otLinkGetExtendedAddress
Get the IEEE 802.15.4 Extended Address.
otLinkGetFactoryAssignedIeeeEui64
Get the factory-assigned IEEE EUI-64.
otLinkGetMaxFrameRetriesDirect
This method returns the maximum number of frame retries during direct transmission.
otLinkGetMaxFrameRetriesIndirect
This method returns the maximum number of frame retries during indirect transmission.
otLinkGetPanId
Get the IEEE 802.15.4 PAN ID.
otLinkGetPollPeriod
Get the data poll period of sleepy end device.
otLinkGetShortAddress
Get the IEEE 802.15.4 Short Address.
otLinkGetSupportedChannelMask
Get the supported channel mask of MAC layer.
otLinkGetTxDirectRetrySuccessHistogram
This method gets histogram of retries for a single direct packet until success.
otLinkGetTxIndirectRetrySuccessHistogram
This method gets histogram of retries for a single indirect packet until success.
otLinkIsActiveScanInProgress
This function indicates whether or not an IEEE 802.15.4 Active Scan is currently in progress.
otLinkIsEnabled
This function indicates whether or not the link layer is enabled.
otLinkIsEnergyScanInProgress
This function indicates whether or not an IEEE 802.15.4 Energy Scan is currently in progress.
otLinkIsInTransmitState
This function indicates whether or not an IEEE 802.15.4 MAC is in the transmit state.
otLinkIsPromiscuous
This function indicates whether or not promiscuous mode is enabled at the link layer.
otLinkOutOfBandTransmitRequest
This function enqueues an IEEE 802.15.4 out of band Frame for transmission.
otLinkRawEnergyScan
This method begins the energy scan sequence on the radio.
otLinkRawGetCaps
Get the radio capabilities.
otLinkRawGetPromiscuous
This function gets the status of promiscuous mode.
otLinkRawGetRssi
Get the most recent RSSI measurement.
otLinkRawGetTransmitBuffer
The radio transitions from Transmit to Receive. This method returns a pointer to the transmit buffer.
otLinkRawIsEnabled
This function indicates whether or not the raw link-layer is enabled.
otLinkRawReceive
Transitioning the radio from Sleep to Receive. Turn on the radio.
otLinkRawSetEnable
This function enables/disables the raw link-layer.
otLinkRawSetMacKey
Update MAC keys and key index.
otLinkRawSetPromiscuous
This function enables or disables promiscuous mode.
otLinkRawSetShortAddress
Set the Short Address for address filtering.
otLinkRawSleep
Transition the radio from Receive to Sleep. Turn off the radio.
otLinkRawSrcMatchAddExtEntry
Adding extended address to the source match table.
otLinkRawSrcMatchAddShortEntry
Adding short address to the source match table.
otLinkRawSrcMatchClearExtEntries
Removing all the extended addresses from the source match table.
otLinkRawSrcMatchClearExtEntry
Removing extended address to the source match table of the radio.
otLinkRawSrcMatchClearShortEntries
Removing all the short addresses from the source match table.
otLinkRawSrcMatchClearShortEntry
Removing short address to the source match table.
otLinkRawSrcMatchEnable
Enable/Disable source match for frame pending.
otLinkRawTransmit
This method begins the transmit sequence on the radio.
otLinkResetCounters
Reset the MAC layer counters.
otLinkResetTxRetrySuccessHistogram
This method clears histogram statistics for direct and indirect transmissions.
otLinkSendDataRequest
This function enqueues an IEEE 802.15.4 Data Request message for transmission.
otLinkSetChannel
Set the IEEE 802.15.4 channel
otLinkSetEnabled
This function enables or disables the link layer.
otLinkSetExtendedAddress
This function sets the IEEE 802.15.4 Extended Address.
otLinkSetMaxFrameRetriesDirect
This method sets the maximum number of frame retries during direct transmission.
otLinkSetMaxFrameRetriesIndirect
This method sets the maximum number of frame retries during indirect transmission.
otLinkSetPanId
Set the IEEE 802.15.4 PAN ID.
otLinkSetPcapCallback
This function registers a callback to provide received raw IEEE 802.15.4 frames.
otLinkSetPollPeriod
Set/clear user-specified/external data poll period for sleepy end device.
otLinkSetPromiscuous
This function enables or disables the link layer promiscuous mode.
otLinkSetSupportedChannelMask
Set the supported channel mask of MAC layer.
otLoggingGetLevel
This function returns the current log level.
otLoggingSetLevel
This function sets the log level.
otMessageAppend
Append bytes to a message.
otMessageFree
Free an allocated message buffer.
otMessageGetBufferInfo
Get the Message Buffer information.
otMessageGetLength
Get the message length in bytes.
otMessageGetOffset
Get the message offset in bytes.
otMessageGetRss
This function returns the average RSS (received signal strength) associated with the message.
otMessageIsLinkSecurityEnabled
This function indicates whether or not link security is enabled for the message.
otMessageQueueDequeue
This function removes a message from the given message queue.
otMessageQueueEnqueue
This function adds a message to the end of the given message queue.
otMessageQueueEnqueueAtHead
This function adds a message at the head/front of the given message queue.
otMessageQueueGetHead
This function returns a pointer to the message at the head of the queue.
otMessageQueueGetNext
This function returns a pointer to the next message in the queue by iterating forward (from head to tail).
otMessageQueueInit
Initialize the message queue.
otMessageRead
Read bytes from a message.
otMessageSetDirectTransmission
This function sets/forces the message to be forwarded using direct transmission. Default setting for a new message is false.
otMessageSetLength
Set the message length in bytes.
otMessageSetOffset
Set the message offset in bytes.
otMessageWrite
Write bytes to a message.
otNcpHandleDidReceiveNewLegacyUlaPrefix
This callback is invoked by the legacy stack to notify that the legacy ULA prefix has changed.
otNcpHandleLegacyNodeDidJoin
This callback is invoked by the legacy stack to notify that a new legacy node did join the network.
otNcpInit
Initialize the NCP.
otNcpPlatLogv
Writes OpenThread Log using otNcpStreamWrite.
otNcpRegisterLegacyHandlers
This method registers a set of legacy handlers with NCP.
otNcpRegisterPeekPokeDelagates
This method registers peek/poke delegate functions with NCP module.
otNcpStreamWrite
@brief Send data to the host via a specific stream.
otNetDataGet
This method provides a full or stable copy of the Partition’s Thread Network Data.
otNetDataGetNextOnMeshPrefix
This function gets the next On Mesh Prefix in the partition’s Network Data.
otNetDataGetNextRoute
This function gets the next external route in the partition’s Network Data.
otNetDataGetNextService
This function gets the next service in the partition’s Network Data.
otNetDataGetStableVersion
Get the Stable Network Data Version.
otNetDataGetVersion
Get the Network Data Version.
otNetworkTimeGet
Get the Thread network time.
otNetworkTimeGetSyncPeriod
Get the time synchronization period.
otNetworkTimeGetXtalThreshold
Get the time synchronization XTAL accuracy threshold for Router.
otNetworkTimeSetSyncPeriod
Set the time synchronization period.
otNetworkTimeSetXtalThreshold
Set the time synchronization XTAL accuracy threshold for Router-Capable device.
otNetworkTimeSyncSetCallback
Set a callback to be called when a network time sync or status change occurs
otPlatAlarmMicroFired
Signal that the alarm has fired.
otPlatAlarmMicroGetNow
Get the current time.
otPlatAlarmMicroStartAt
Set the alarm to fire at @p aDt microseconds after @p aT0.
otPlatAlarmMicroStop
Stop the alarm.
otPlatAlarmMilliFired
Signal that the alarm has fired.
otPlatAlarmMilliGetNow
Get the current time.
otPlatAlarmMilliStartAt
Set the alarm to fire at @p aDt milliseconds after @p aT0.
otPlatAlarmMilliStop
Stop the alarm.
otPlatAssertFail
This function provides a platform specific implementation for assert.
otPlatBleDisable
Disable the Bluetooth Low Energy radio.
otPlatBleEnable
Enable the Bluetooth Low Energy radio.
otPlatBleGapAddressGet
Gets Bluetooth Device Address.
otPlatBleGapAddressSet
Sets Bluetooth Device Address.
otPlatBleGapAdvDataSet
Sets BLE Advertising packet content.
otPlatBleGapAdvStart
Starts BLE Advertising procedure.
otPlatBleGapAdvStop
Stops BLE Advertising procedure.
otPlatBleGapConnParamsSet
Sets desired BLE Connection Parameters.
otPlatBleGapConnect
Starts BLE Connection procedure.
otPlatBleGapDisconnect
Disconnects BLE connection.
otPlatBleGapOnAdvReceived
The BLE driver calls this method to notify OpenThread that an advertisement packet has been received.
otPlatBleGapOnConnected
The BLE driver calls this method to notify OpenThread that BLE Device has been connected.
otPlatBleGapOnDisconnected
The BLE driver calls this method to notify OpenThread that the BLE Device has been disconnected.
otPlatBleGapOnScanRespReceived
The BLE driver calls this method to notify OpenThread that a scan response packet has been received.
otPlatBleGapScanResponseSet
Sets BLE Scan Response packet content.
otPlatBleGapScanStart
Starts BLE Scanning procedure.
otPlatBleGapScanStop
Stops BLE Scanning procedure.
otPlatBleGapServiceSet
Sets BLE device name and appearance that is visible as GATT Based service.
otPlatBleGattClientCharacteristicsDiscover
Performs GATT Characteristic Discovery of a service.
otPlatBleGattClientDescriptorsDiscover
Performs GATT Descriptor Discovery.
otPlatBleGattClientMtuExchangeRequest
Sends Exchange MTU Request.
otPlatBleGattClientOnCharacteristicsDiscoverDone
The BLE driver calls this method to notify OpenThread that GATT Characteristic Discovery of a service has been done.
otPlatBleGattClientOnDescriptorsDiscoverDone
The BLE driver calls this method to notify OpenThread that GATT Descriptor Discovery has been done.
otPlatBleGattClientOnIndication
The BLE driver calls this method to notify OpenThread that an ATT Handle Value Indication has been received.
otPlatBleGattClientOnMtuExchangeResponse
The BLE driver calls this method to notify OpenThread that Exchange MTU Response has been received.
otPlatBleGattClientOnReadResponse
The BLE driver calls this method to notify OpenThread that ATT Read Response packet has been received.
otPlatBleGattClientOnServiceDiscovered
The BLE driver calls this method to notify OpenThread that the next entry from GATT Primary Service Discovery has been found.
otPlatBleGattClientOnSubscribeResponse
The BLE driver calls this method to notify OpenThread that subscribe response has been received.
otPlatBleGattClientOnWriteResponse
The BLE driver calls this method to notify OpenThread that ATT Write Response packet has been received.
otPlatBleGattClientRead
Sends ATT Read Request.
otPlatBleGattClientServiceDiscover
Performs GATT Primary Service Discovery by UUID procedure of specific service.
otPlatBleGattClientServicesDiscover
Performs GATT Primary Service Discovery of all services available.
otPlatBleGattClientSubscribeRequest
Subscribes for characteristic indications.
otPlatBleGattClientWrite
Sends ATT Write Request.
otPlatBleGattMtuGet
Reads currently use value of ATT_MTU.
otPlatBleGattServerIndicate
Sends ATT Handle Value Indication.
otPlatBleGattServerOnIndicationConfirmation
The BLE driver calls this method to notify OpenThread that an ATT Handle Value Confirmation has been received.
otPlatBleGattServerOnReadRequest
The BLE driver calls this method to notify OpenThread that an ATT Read Request packet has been received.
otPlatBleGattServerOnSubscribeRequest
The BLE driver calls this method to notify OpenThread that an ATT Subscription Request packet has been received.
otPlatBleGattServerOnWriteRequest
The BLE driver calls this method to notify OpenThread that an ATT Write Request packet has been received.
otPlatBleGattServerServicesRegister
Registers a list of GATT Services and their enclosed Characteristics. The generated handles will be written back into this structure when the BLE stack is enabled.
otPlatBleGattVendorUuidRegister
Registers vendor specific UUID Base.
otPlatBleIsEnabled
Check whether Bluetooth Low Energy radio is enabled or not.
otPlatBleL2capConnectionRequest
Sends LE Credit Based Connection Request.
otPlatBleL2capConnectionResponse
Sends LE Credit Based Connection Response.
otPlatBleL2capDisconnect
Sends an L2CAP Disconnection Request.
otPlatBleL2capOnConnectionRequest
The BLE driver calls this method to notify OpenThread that an LE Credit Based Connection Request packet has been received.
otPlatBleL2capOnConnectionResponse
The BLE driver calls this method to notify OpenThread that an LE Credit Based Connection Response packet has been received.
otPlatBleL2capOnDisconnect
The BLE driver calls this method to notify OpenThread that an L2CAP Disconnection Request has been received.
otPlatBleL2capOnSduReceived
The BLE driver calls this method to notify OpenThread that an L2CAP SDU has been received.
otPlatBleL2capOnSduSent
The BLE driver calls this method to notify OpenThread that an L2CAP SDU has been sent.
otPlatBleL2capSduSend
Sends an SDU on an L2CAP channel.
otPlatBleOnEnabled
Callback sent when Bluetooth Low Energy is ready after being enabled.
otPlatBleReset
Reset the Bluetooth Low Energy subsystem.
otPlatCAlloc
Dynamically allocates new memory. On platforms that support it, should just redirect to calloc. For those that don’t support calloc, should support the same functionality:
otPlatDebugUart_getc
Poll/Read a byte from the debug uart
otPlatDebugUart_kbhit
Poll/test debug uart if a key has been pressed. It would be common to a stub function that returns 0.
otPlatDebugUart_logfile
Some platforms (simulation) can log to a file.
otPlatDebugUart_printf
Standard printf() to the debug uart with no log decoration.
otPlatDebugUart_putchar
Write byte to the uart, expand cr/lf as need.
otPlatDebugUart_putchar_raw
Platform specific write single byte to Debug Uart This should not perform CR/LF mapping.
otPlatDebugUart_puts
identical to “man 3 puts” - terminates with lf Which is then mapped to cr/lf as required
otPlatDebugUart_puts_no_nl
puts() without a terminal newline. see: “man 3 puts”, without a adding a terminal lf
otPlatDebugUart_vprintf
Standard vprintf() to the debug uart, with no log decoration.
otPlatDebugUart_write_bytes
Write N bytes to the UART, mapping cr/lf
otPlatDiagAlarmCallback
This function processes the alarm event.
otPlatDiagAlarmFired
Signal diagnostics module that the alarm has fired.
otPlatDiagChannelSet
This function sets the channel to use for factory diagnostics.
otPlatDiagModeGet
This function indicates whether or not factory diagnostics mode is enabled.
otPlatDiagModeSet
This function enables/disables the factory diagnostics mode.
otPlatDiagProcess
This function processes a factory diagnostics command line.
otPlatDiagRadioReceiveDone
The radio driver calls this method to notify OpenThread diagnostics module of a received frame.
otPlatDiagRadioReceived
This function processes the received radio frame.
otPlatDiagRadioTransmitDone
The radio driver calls this method to notify OpenThread diagnostics module that the transmission has completed.
otPlatDiagTxPowerSet
This function sets the transmit power to use for factory diagnostics.
otPlatEntropyGet
Fill buffer with entropy.
otPlatFlashErase
This function erases the swap space indicated by @p aSwapIndex.
otPlatFlashGetSwapSize
This function gets the size of the swap space.
otPlatFlashInit
This function initializes the flash driver.
otPlatFlashRead
This function reads @p aSize bytes into @p aData.
otPlatFlashWrite
This function writes @p aSize bytes from @p aData.
otPlatFree
Frees memory that was dynamically allocated.
otPlatGetMcuPowerState
This function gets the current desired MCU power state.
otPlatGetResetReason
This function returns the reason for the last platform reset.
otPlatLog
This function outputs logs.
otPlatMessagePoolFree
This function is used to free a Buffer back to the platform managed buffer pool.
otPlatMessagePoolInit
Initialize the platform implemented message pool.
otPlatMessagePoolNew
Allocate a buffer from the platform managed buffer pool.
otPlatMessagePoolNumFreeBuffers
Get the number of free buffers.
otPlatOtnsStatus
This function exports status information to OTNS.
otPlatRadioAddSrcMatchExtEntry
Add an extended address to the source address match table.
otPlatRadioAddSrcMatchShortEntry
Add a short address to the source address match table.
otPlatRadioClearSrcMatchExtEntries
Clear all the extended/long addresses from source address match table.
otPlatRadioClearSrcMatchExtEntry
Remove an extended address from the source address match table.
otPlatRadioClearSrcMatchShortEntries
Clear all short addresses from the source address match table.
otPlatRadioClearSrcMatchShortEntry
Remove a short address from the source address match table.
otPlatRadioDisable
Disable the radio.
otPlatRadioEnable
Enable the radio.
otPlatRadioEnableSrcMatch
Enable/Disable source address match feature.
otPlatRadioEnergyScan
Begin the energy scan sequence on the radio.
otPlatRadioEnergyScanDone
The radio driver calls this method to notify OpenThread that the energy scan is complete.
otPlatRadioGetCaps
Get the radio capabilities.
otPlatRadioGetCcaEnergyDetectThreshold
Get the radio’s CCA ED threshold in dBm.
otPlatRadioGetCoexMetrics
Get the radio coexistence metrics.
otPlatRadioGetIeeeEui64
Get the factory-assigned IEEE EUI-64 for this interface.
otPlatRadioGetPreferredChannelMask
Get the radio preferred channel mask that the device prefers to form on.
otPlatRadioGetPromiscuous
Get the status of promiscuous mode.
otPlatRadioGetReceiveSensitivity
Get the radio receive sensitivity value.
otPlatRadioGetRssi
Get the most recent RSSI measurement.
otPlatRadioGetState
Get current state of the radio.
otPlatRadioGetSupportedChannelMask
Get the radio supported channel mask that the device is allowed to be on.
otPlatRadioGetTransmitBuffer
Get the radio transmit frame buffer.
otPlatRadioGetTransmitPower
Get the radio’s transmit power in dBm.
otPlatRadioGetVersionString
Get the radio version string.
otPlatRadioIsCoexEnabled
Check whether radio coex is enabled or not.
otPlatRadioIsEnabled
Check whether radio is enabled or not.
otPlatRadioReceive
Transition the radio from Sleep to Receive (turn on the radio).
otPlatRadioReceiveDone
The radio driver calls this method to notify OpenThread of a received frame.
otPlatRadioSetCcaEnergyDetectThreshold
Set the radio’s CCA ED threshold in dBm.
otPlatRadioSetCoexEnabled
Enable the radio coex.
otPlatRadioSetExtendedAddress
Set the Extended Address for address filtering.
otPlatRadioSetMacKey
Update MAC keys and key index
otPlatRadioSetPanId
Set the PAN ID for address filtering.
otPlatRadioSetPromiscuous
Enable or disable promiscuous mode.
otPlatRadioSetShortAddress
Set the Short Address for address filtering.
otPlatRadioSetTransmitPower
Set the radio’s transmit power in dBm.
otPlatRadioSleep
Transition the radio from Receive to Sleep (turn off the radio).
otPlatRadioTransmit
Begin the transmit sequence on the radio.
otPlatRadioTxDone
The radio driver calls this function to notify OpenThread that the transmit operation has completed, providing both the transmitted frame and, if applicable, the received ack frame.
otPlatRadioTxStarted
The radio driver calls this method to notify OpenThread that the transmission has started.
otPlatReset
This function performs a software reset on the platform, if supported.
otPlatSetMcuPowerState
This function sets the desired MCU power state.
otPlatSettingsAdd
Adds a value to a setting ** This function adds the value to a setting
otPlatSettingsDeinit
Performs any de-initialization for the settings subsystem, if necessary.
otPlatSettingsDelete
Removes a setting from the setting store ** This function deletes a specific value from the
otPlatSettingsGet
Fetches the value of a setting ** This function fetches the value of the setting identified
otPlatSettingsInit
Performs any initialization for the settings subsystem, if necessary.
otPlatSettingsSet
Sets or replaces the value of a setting ** This function sets or replaces the value of a setting
otPlatSettingsWipe
Removes all settings from the setting store ** This function deletes all settings from the settings
otPlatSpiSlaveDisable
Shutdown and disable the SPI slave interface.
otPlatSpiSlaveEnable
Initialize the SPI slave interface.
otPlatSpiSlavePrepareTransaction
Prepare data for the next SPI transaction. Data pointers MUST remain valid until the transaction complete callback is called by the SPI slave driver, or until after the next call to otPlatSpiSlavePrepareTransaction().
otPlatTimeGet
Get the current time (64bits width).
otPlatTimeGetXtalAccuracy
Get the device’s XTAL accuracy.
otPlatUartDisable
Disable the UART.
otPlatUartEnable
Enable the UART.
otPlatUartFlush
Flush the outgoing transmit buffer and wait for the data to be sent. This is called when the CLI UART interface has a full buffer but still wishes to send more data.
otPlatUartReceived
The UART driver calls this method to notify OpenThread that bytes have been received.
otPlatUartSend
Send bytes over the UART.
otPlatUartSendDone
The UART driver calls this method to notify OpenThread that the requested bytes have been sent.
otPlatUdpBind
This function binds the UDP socket by platform.
otPlatUdpClose
This function closes the UDP socket by platform.
otPlatUdpConnect
This function connects UDP socket by platform.
otPlatUdpSend
This function sends UDP payload by platform.
otPlatUdpSocket
This function initializes the UDP socket by platform.
otPlatWakeHost
This function performs a platform specific operation to wake the host MCU. This is used only for NCP configurations.
otRandomNonCryptoAddJitter
This function adds a random jitter within a given range to a given value.
otRandomNonCryptoFillBuffer
This function fills a given buffer with random bytes.
otRandomNonCryptoGetUint8
This function generates and returns a random byte.
otRandomNonCryptoGetUint8InRange
This function generates and returns a random uint8_t value within a given range [aMin, aMax).
otRandomNonCryptoGetUint16
This function generates and returns a random uint16_t value.
otRandomNonCryptoGetUint32
This function generates and returns a random uint32_t value.
otRandomNonCryptoGetUint16InRange
This function generates and returns a random uint16_t value within a given range [aMin, aMax).
otRandomNonCryptoGetUint32InRange
This function generates and returns a random uint32_t value within a given range [aMin, aMax).
otRemoveStateChangeCallback
This function removes a callback to indicate when certain configuration or state changes within OpenThread.
otServerAddService
Add a service configuration to the local network data.
otServerGetNetDataLocal
This method provides a full or stable copy of the local Thread Network Data.
otServerGetNextService
This function gets the next service in the local Network Data.
otServerRegister
Immediately register the local network data with the Leader.
otServerRemoveService
Remove a service configuration from the local network data.
otSetStateChangedCallback
This function registers a callback to indicate when certain configuration or state changes within OpenThread.
otSntpClientQuery
This function sends a SNTP query.
otSntpClientSetUnixEra
This function sets the unix era number.
otTaskletsArePending
Indicates whether or not OpenThread has tasklets pending.
otTaskletsProcess
Run all queued OpenThread tasklets at the time this is called.
otTaskletsSignalPending
OpenThread calls this function when the tasklet queue transitions from empty to non-empty.
otThreadBecomeChild
Attempt to reattach as a child.
otThreadBecomeDetached
Detach from the Thread network.
otThreadBecomeLeader
Become a leader and start a new partition.
otThreadBecomeRouter
Attempt to become a router.
otThreadDiscover
This function starts a Thread Discovery scan.
otThreadErrorToString
This function converts an otError enum into a string.
otThreadGetChildInfoById
The function retains diagnostic information for an attached Child by its Child ID or RLOC16.
otThreadGetChildInfoByIndex
The function retains diagnostic information for an attached Child by the internal table index.
otThreadGetChildNextIp6Address
This function gets the next IPv6 address (using an iterator) for a given child.
otThreadGetChildTimeout
Get the Thread Child Timeout used when operating in the Child role.
otThreadGetContextIdReuseDelay
Get the CONTEXT_ID_REUSE_DELAY parameter used in the Leader role.
otThreadGetDeviceRole
Get the device role.
otThreadGetDomainName
Get the Thread Domain Name.
otThreadGetExtendedPanId
Get the IEEE 802.15.4 Extended PAN ID.
otThreadGetIp6Counters
Get the IPv6 counters.
otThreadGetJoinerUdpPort
Get the Joiner UDP Port.
otThreadGetKeySequenceCounter
Get the thrKeySequenceCounter.
otThreadGetKeySwitchGuardTime
Get the thrKeySwitchGuardTime
otThreadGetLeaderData
This function get the Thread Leader Data.
otThreadGetLeaderRloc
This function returns a pointer to the Leader’s RLOC.
otThreadGetLeaderRouterId
Get the Leader’s Router ID.
otThreadGetLeaderWeight
Get the Leader’s Weight.
otThreadGetLinkLocalIp6Address
This function returns the Thread link-local IPv6 address.
otThreadGetLinkMode
Get the MLE Link Mode configuration.
otThreadGetLocalLeaderPartitionId
Get the Thread Leader Partition Id used when operating in the Leader role.
otThreadGetLocalLeaderWeight
Get the Thread Leader Weight used when operating in the Leader role.
otThreadGetMasterKey
Get the thrMasterKey.
otThreadGetMaxAllowedChildren
Get the maximum number of children currently allowed.
otThreadGetMaxChildIpAddresses
This function gets the maximum number of IP addresses that each MTD child may register with this device as parent.
otThreadGetMaxRouterId
The function returns the maximum allowed router ID
otThreadGetMeshLocalEid
This function returns a pointer to the Mesh Local EID address.
otThreadGetMeshLocalPrefix
This function returns a pointer to the Mesh Local Prefix.
otThreadGetMleCounters
Get the Thread MLE counters.
otThreadGetNetworkIdTimeout
Get the NETWORK_ID_TIMEOUT parameter used in the Router role.
otThreadGetNetworkName
Get the Thread Network Name.
otThreadGetNextCacheEntry
This function gets the next EID cache entry (using an iterator).
otThreadGetNextDiagnosticTlv
This function gets the next Network Diagnostic TLV in the message.
otThreadGetNextNeighborInfo
This function gets the next neighbor information. It is used to go through the entries of the neighbor table.
otThreadGetParentAverageRssi
The function retrieves the average RSSI for the Thread Parent.
otThreadGetParentInfo
The function retrieves diagnostic information for a Thread Router as parent.
otThreadGetParentLastRssi
The function retrieves the RSSI of the last packet from the Thread Parent.
otThreadGetParentPriority
Get the assigned parent priority.
otThreadGetPartitionId
Get the Partition ID.
otThreadGetPskc
Get the Thread PSKc
otThreadGetRloc
This function returns a pointer to the Thread Routing Locator (RLOC) address.
otThreadGetRloc16
Get the RLOC16.
otThreadGetRouterDowngradeThreshold
Get the ROUTER_DOWNGRADE_THRESHOLD parameter used in the Router role.
otThreadGetRouterIdSequence
Get the current Router ID Sequence.
otThreadGetRouterInfo
The function retains diagnostic information for a given Thread Router.
otThreadGetRouterSelectionJitter
Get the ROUTER_SELECTION_JITTER parameter used in the REED/Router role.
otThreadGetRouterUpgradeThreshold
Get the ROUTER_UPGRADE_THRESHOLD parameter used in the REED role.
otThreadGetVersion
This function gets the Thread protocol version.
otThreadIsDiscoverInProgress
This function determines if an MLE Thread Discovery is currently in progress.
otThreadIsRouterEligible
This method indicates whether or not the device is router-eligible.
otThreadIsSingleton
This function indicates whether a node is the only router on the network.
otThreadRegisterNeighborTableCallback
This function registers a neighbor table callback function.
otThreadRegisterParentResponseCallback
This function registers a callback to receive MLE Parent Response data.
otThreadReleaseRouterId
Release a Router ID that has been allocated by the device in the Leader role.
otThreadResetIp6Counters
Reset the IPv6 counters.
otThreadResetMleCounters
Reset the Thread MLE counters.
otThreadSendDiagnosticGet
Send a Network Diagnostic Get request.
otThreadSendDiagnosticReset
Send a Network Diagnostic Reset request.
otThreadSetChildTimeout
Set the Thread Child Timeout used when operating in the Child role.
otThreadSetContextIdReuseDelay
Set the CONTEXT_ID_REUSE_DELAY parameter used in the Leader role.
otThreadSetDomainName
Set the Thread Domain Name.
otThreadSetEnabled
This function starts Thread protocol operation.
otThreadSetExtendedPanId
Set the IEEE 802.15.4 Extended PAN ID.
otThreadSetJoinerUdpPort
Set the Joiner UDP Port.
otThreadSetKeySequenceCounter
Set the thrKeySequenceCounter.
otThreadSetKeySwitchGuardTime
Set the thrKeySwitchGuardTime
otThreadSetLinkMode
Set the MLE Link Mode configuration.
otThreadSetLocalLeaderPartitionId
Set the Thread Leader Partition Id used when operating in the Leader role.
otThreadSetLocalLeaderWeight
Set the Thread Leader Weight used when operating in the Leader role.
otThreadSetMasterKey
Set the thrMasterKey.
otThreadSetMaxAllowedChildren
Set the maximum number of children currently allowed.
otThreadSetMaxChildIpAddresses
This function sets/restores the maximum number of IP addresses that each MTD child may register with this device as parent.
otThreadSetMeshLocalPrefix
This function sets the Mesh Local Prefix.
otThreadSetNetworkIdTimeout
Set the NETWORK_ID_TIMEOUT parameter used in the Leader role.
otThreadSetNetworkName
Set the Thread Network Name.
otThreadSetParentPriority
Set the parent priority.
otThreadSetPreferredRouterId
Set the preferred Router Id.
otThreadSetPskc
Set the Thread PSKc
otThreadSetReceiveDiagnosticGetCallback
This function registers a callback to provide received raw Network Diagnostic Get response payload.
otThreadSetRouterDowngradeThreshold
Set the ROUTER_DOWNGRADE_THRESHOLD parameter used in the Leader role.
otThreadSetRouterEligible
This function sets whether or not the device is router-eligible.
otThreadSetRouterSelectionJitter
Set the ROUTER_SELECTION_JITTER parameter used in the REED/Router role.
otThreadSetRouterUpgradeThreshold
Set the ROUTER_UPGRADE_THRESHOLD parameter used in the Leader role.
otThreadSetSteeringData
Set Steering data out of band.
otUdpAddReceiver
This function adds a UDP receiver.
otUdpBind
Bind a UDP/IPv6 socket.
otUdpClose
Close a UDP/IPv6 socket.
otUdpConnect
Connect a UDP/IPv6 socket.
otUdpForwardReceive
Handle a UDP packet received from host.
otUdpForwardSetForwarder
Set UDP forward callback to deliver UDP packets to host.
otUdpGetSockets
This function gets the existing UDP Sockets.
otUdpNewMessage
Allocate a new message buffer for sending a UDP message.
otUdpOpen
Open a UDP/IPv6 socket.
otUdpRemoveReceiver
This function removes a UDP receiver.
otUdpSend
Send a UDP/IPv6 message.
otUdpSendDatagram
This function sends a UDP message without socket.

Type Aliases§

__builtin_va_list
__int8_t
__int16_t
__int64_t
__uint8_t
__uint16_t
__uint32_t
__uint64_t
_bindgen_ty_1
This enumeration defines flags that are passed as part of otStateChangedCallback.
_bindgen_ty_2
@defgroup radio-types Types
_bindgen_ty_3
This enumeration defines the channel page.
_bindgen_ty_4
This enumeration defines the frequency band channel range.
_bindgen_ty_5
This enumeration defines constants that are used to indicate different radio capabilities. See otRadioCaps.
_bindgen_ty_6
This enumeration defines the Security Policy TLV flags.
_bindgen_ty_7
_bindgen_ty_8
@addtogroup plat-ble
otBackboneRouterState
Represents the Backbone Router Status.
otBorderAgentState
This enumeration defines the Border Agent state.
otCacheEntryState
This enumeration defines the EID cache entry state.
otChangedFlags
This type represents a bit-field indicating specific state/configuration that has changed. See OT_CHANGED_* definitions.
otChannelMask
This type represents Channel Mask.
otChildIp6AddressIterator
otCliConsoleOutputCallback
This function pointer is called to notify about Console output.
otCoapBlockSize
CoAP Block Size Exponents
otCoapCode
CoAP Code values.
otCoapOptionContentFormat
CoAP Content Format codes. The full list is documented at https://www.iana.org/assignments/core-parameters/core-parameters.xhtml#content-formats
otCoapRequestHandler
This function pointer is called when a CoAP request with a given Uri-Path is received.
otCoapResponseHandler
This function pointer is called when a CoAP response is received or on the request timeout.
otCoapType
CoAP Type values.
otCommissionerEnergyReportCallback
This function pointer is called when the Commissioner receives an Energy Report.
otCommissionerJoinerCallback
This function pointer is called whenever the joiner state changes.
otCommissionerJoinerEvent
This enumeration defines a Joiner Event on the Commissioner.
otCommissionerPanIdConflictCallback
This function pointer is called when the Commissioner receives a PAN ID Conflict message.
otCommissionerState
This enumeration defines the Commissioner State.
otCommissionerStateCallback
This function pointer is called whenever the commissioner state changes.
otDeviceRole
Represents a Thread device role.
otDnsResponseHandler
This function pointer is called when a DNS response is received.
otError
This enumeration represents error codes used throughout OpenThread.
otHandleActiveScanResult
This function pointer is called during an IEEE 802.15.4 Active Scan when an IEEE 802.15.4 Beacon is received or the scan completes.
otHandleCoapSecureClientConnect
This function pointer is called when the DTLS connection state changes.
otHandleEnergyScanResult
This function pointer is called during an IEEE 802.15.4 Energy Scan when the result for a channel is ready or the scan completes.
otHeapCAllocFn
Function pointer used to set external CAlloc function for OpenThread.
otHeapFreeFn
Function pointer used to set external Free function for OpenThread.
otIcmp6EchoMode
ICMPv6 Echo Reply Modes
otIcmp6ReceiveCallback
This callback allows OpenThread to inform the application of a received ICMPv6 message.
otIp6AddressCallback
This function pointer is called when an internal IPv6 address is added or removed.
otIp6ReceiveCallback
This function pointer is called when an IPv6 datagram is received.
otIp6SlaacPrefixFilter
This function pointer allows user to filter prefixes and not allow an SLAAC address based on a prefix to be added.
otJamDetectionCallback
This function pointer is called if signal jam detection is enabled and a jam is detected.
otJoinerCallback
This function pointer is called to notify the completion of a join operation.
otJoinerState
This enumeration defines the Joiner State.
otLinkPcapCallback
This function pointer is called when an IEEE 802.15.4 frame is received.
otLinkRawEnergyScanDone
This function pointer on receipt of a IEEE 802.15.4 frame.
otLinkRawReceiveDone
This function pointer on receipt of a IEEE 802.15.4 frame.
otLinkRawTransmitDone
This function pointer on receipt of a IEEE 802.15.4 frame.
otLogLevel
This type represents the log level.
otLogRegion
This enumeration represents log regions.
otMacFilterAddressMode
Defines address mode of the mac filter.
otMacFilterIterator
otMessagePriority
This enumeration defines the OpenThread message priority levels.
otNcpDelegateAllowPeekPoke
Defines delegate (function pointer) type to control behavior of peek/poke operation.
otNcpHandlerJoinLegacyNode
Defines handler (function pointer) type for initiating joining process.
otNcpHandlerSetLegacyUlaPrefix
Defines handler (function pointer) type for setting the legacy ULA prefix.
otNcpHandlerStartLegacy
Defines handler (function pointer) type for starting legacy network
otNcpHandlerStopLegacy
Defines handler (function pointer) type for stopping legacy network
otNeighborInfoIterator
otNeighborTableCallback
This function pointer is called to notify that a child or router neighbor is being added to or removed from neighbor table.
otNeighborTableEvent
This enumeration defines the constants used in otNeighborTableCallback to indicate whether a child or router neighbor is being added or removed.
otNetworkDataIterator
otNetworkDiagIterator
otNetworkTimeStatus
This enumeration represents OpenThread time synchronization status.
otNetworkTimeSyncCallbackFn
This function pointer is called when a network time sync or status change occurs.
otPanId
This type represents the IEEE 802.15.4 PAN ID.
otPlatBleL2capError
The enum indicates the outcome of the L2CAP connection request procedure. See Bluetooth v5.0 | Vol 3, Part A, 4.23, Table 4.20.
otPlatBleUuidType
This enumeration represents BLE UUID value.
otPlatMcuPowerState
Enumeration of micro-controller’s power states.
otPlatResetReason
Enumeration of possible reset reason codes.
otPlatSpiSlaveTransactionCompleteCallback
Indicates that a SPI transaction has completed with the given length. The data written to the slave has been written to the pointer indicated by the aInputBuf argument to the previous call to otPlatSpiSlavePrepareTransaction().
otPlatSpiSlaveTransactionProcessCallback
Invoked after a transaction complete callback is called and returns TRUE to do any further processing required. Unlike otPlatSpiSlaveTransactionCompleteCallback which can be called from any OS context (e.g., ISR), this callback MUST be called from the same OS context as any other OpenThread API/callback.
otRadioCaps
This type represents radio capabilities.
otRadioState
This structure represents the state of a radio. Initially, a radio is in the Disabled state.
otReceiveDiagnosticGetCallback
This function pointer is called when Network Diagnostic Get response is received.
otShortAddress
This type represents the IEEE 802.15.4 Short Address.
otSntpResponseHandler
This function pointer is called when a SNTP response is received.
otStateChangedCallback
This function pointer is called to notify certain configuration or state changes within OpenThread.
otThreadParentResponseCallback
This function pointer is called every time an MLE Parent Response message is received.
otUdpForwarder
This function pointer delivers the UDP packet to host and host should send the packet through its own network stack.
otUdpHandler
This callback allows OpenThread to provide specific handlers for certain UDP messages.
otUdpReceive
This callback allows OpenThread to inform the application of a received UDP message.
size_t
va_list

Unions§

otIcmp6Header__bindgen_ty_1
otIp6Address__bindgen_ty_1
otNeighborTableEntryInfo__bindgen_ty_1
otNetworkDiagTlv__bindgen_ty_1
otPlatBleUuidValue
This structure represents BLE UUID value.
otRadioFrame__bindgen_ty_1
The union of transmit and receive information for a radio frame.