IPv6 Medium Interface.
More...
IPv6 Medium Interface.
Implementation-agnostic interface of the physical transport that facilitates IPv6 traffic.
Size of a 48-bit Extended Unique Identifier in bytes.
#define IPV6_MEDIUM_EVT_CONN_DOWN 0x01 |
Indicates that a connection is established.
#define IPV6_MEDIUM_EVT_CONN_UP 0x02 |
Indicates that a connection is torn down.
#define IPV6_MEDIUM_EVT_CONNECTABLE_MODE_ENTER 0x01 |
Indicates that the medium entered connectable mode.
#define IPV6_MEDIUM_EVT_CONNECTABLE_MODE_EXIT 0x02 |
Indicates that the medium exited connectable mode.
#define IPV6_MEDIUM_EVT_MAC_ADDRESS_CHANGED 0x03 |
Indicates that the device has a new MAC address.
#define IPV6_MEDIUM_EVT_PHY_SPECIFIC 0xFF |
Indicates miscellaneous event from the physical layer.
#define IPV6_MEDIUM_ID_802154 0x02 |
Indicates that the physical transport is 802.15.4.
#define IPV6_MEDIUM_ID_ANY 0x00 |
Indicates invalid physical transport type.
#define IPV6_MEDIUM_ID_BLE 0x01 |
Indicates that the physical transport is BLE.
Function for entering connectible mode.
Requests the IPv6 medium to enter connectible mode.
- Parameters
-
[in] | ipv6_medium_instance_id | Specifies the IPv6 medium instance. |
- Return values
-
NRF_SUCCESS | If the procedure was successful. Otherwise, a propagated error code is returned. |
Function for exiting connectible mode.
Requests the IPv6 medium to exit connectible mode.
- Parameters
-
[in] | ipv6_medium_instance_id | Specifies the IPv6 medium instance. |
- Return values
-
NRF_SUCCESS | If the procedure was successful. Otherwise, a propagated error code is returned. |
Function for getting the 48-bit Extended Unique Identifier.
- Parameters
-
[in] | ipv6_medium_instance_id | Specifies the IPv6 medium instance. |
[out] | p_ipv6_medium_eui48 | Pointer to the EUI-48 value. |
- Return values
-
NRF_SUCCESS | If the procedure was successful. Otherwise, a propagated error code is returned. |
Function for setting the 48-bit Extended Unique Identifier.
- Parameters
-
[in] | ipv6_medium_instance_id | Specifies the IPv6 medium instance. |
[in] | p_ipv6_medium_eui48 | Pointer to the EUI-48 value. |
- Return values
-
NRF_SUCCESS | If the procedure was successful. Otherwise, a propagated error code is returned. |
Function for getting the 64-bit Extended Unique Identifier.
- Parameters
-
[in] | ipv6_medium_instance_id | Specifies the IPv6 medium instance. |
[out] | p_ipv6_medium_eui64 | Pointer to the EUI-64 value. |
- Return values
-
NRF_SUCCESS | If the procedure was successful. Otherwise, a propagated error code is returned. |
Function for setting the 64-bit Extended Unique Identifier.
- Parameters
-
[in] | ipv6_medium_instance_id | Specifies the IPv6 medium instance. |
[in] | p_ipv6_medium_eui64 | Pointer to the EUI-64 value. |
- Return values
-
NRF_SUCCESS | If the procedure was successful. Otherwise, a propagated error code is returned. |
Function for initializing the IPv6 medium.
Initializes the IPv6 medium module. Performs all setup necessary that is specific to the implementation.
- Parameters
-
[in] | p_init_param | Pointer to the initialization parameters. |
[in] | desired_medium_type | Value of the desired medium type. |
[out] | p_new_medium_instance | Pointer to the new medium instance initalized. |
- Return values
-
NRF_SUCCESS | If initialization was successful. Otherwise, a propagated error code is returned. |