nRF5 SDK v16.0.0
Data Structures | Functions
Configuration socket based on ipv6_medium

Configuration socket based on the ipv6_medium module. More...

Data Structures

struct  config_medium_params_t
 Parameters passed for the MEDIUM_INIT_PARAMS option. More...
 

Functions

uint32_t config_medium_init_default (void)
 Function for initializing a configuration socket with default settings. More...
 
void config_medium_start (void)
 Function for starting the medium layer. More...
 
eui64_tconfig_medium_local_iid (void)
 Function for retrieving local interface ID assigned. More...
 
uint32_t config_medium_setopt (int optname, const void *p_optarg, socklen_t optlen)
 Function for setting configuration parameters for the medium layers using the socket option. More...
 
uint32_t config_medium_getopt (int optname, void *p_optarg, socklen_t *p_optlen)
 Function for getting configuration parameters for the medium layers using the socket option. More...
 

Detailed Description

Configuration socket based on the ipv6_medium module.

This module wraps the medium module in a configuration socket API.

Function Documentation

uint32_t config_medium_getopt ( int  optname,
void *  p_optarg,
socklen_t p_optlen 
)

Function for getting configuration parameters for the medium layers using the socket option.

Parameters
optnameOption name/type.
p_optargPointer to the option value structure where the value should be stored.
p_optlenLength of option value.
Returns
NRF_SUCCESS on success, otherwise an error code.
uint32_t config_medium_init_default ( void  )

Function for initializing a configuration socket with default settings.

Returns
NRF_SUCCESS on success, otherwise an error code.
eui64_t* config_medium_local_iid ( void  )

Function for retrieving local interface ID assigned.

Returns
Pointer to location of interface ID.
uint32_t config_medium_setopt ( int  optname,
const void *  p_optarg,
socklen_t  optlen 
)

Function for setting configuration parameters for the medium layers using the socket option.

Parameters
optnameOption name/type.
p_optargPointer to option value.
optlenLength of option value.
Returns
NRF_SUCCESS on success, otherwise an error code.
void config_medium_start ( void  )

Function for starting the medium layer.

For BLE, this means to start advertising.


Documentation feedback | Developer Zone | Subscribe | Updated