Embedded Wireless Framework
Macros | Functions
ewf_adapter_api_info.c File Reference

The Embedded Wireless Framework adapter info API implementation. More...

#include "ewf_adapter.h"

Macros

#define EWF_ADAPTER_VALIDATE_INFO_API_POINTER(adapter_ptr, function_ptr)
 

Functions

ewf_result ewf_adapter_info (ewf_adapter *adapter_ptr)
 Query and log the modem information. More...
 
ewf_result ewf_adapter_get_ipv4_address (ewf_adapter *adapter_ptr, uint32_t *address_ptr)
 Get the adapter's IPv4 address. More...
 
ewf_result ewf_adapter_get_ipv4_netmask (ewf_adapter *adapter_ptr, uint32_t *netmask_ptr)
 Get the adapter's IPv4 network mask. More...
 
ewf_result ewf_adapter_get_ipv4_gateway (ewf_adapter *adapter_ptr, uint32_t *gateway_ptr)
 Get the adapter's IPv4 gateway address. More...
 
ewf_result ewf_adapter_get_ipv4_dns (ewf_adapter *adapter_ptr, uint32_t *dns_ptr)
 Get the adapter's IPv4 primary DNS address. More...
 
ewf_result ewf_adapter_get_ipv6_address (ewf_adapter *adapter_ptr, uint8_t *address_buffer_ptr, uint32_t address_buffer_size, uint32_t *prefix_length_ptr)
 Get the adapter's IPv6 address. More...
 
ewf_result ewf_adapter_get_ipv6_next_hop (ewf_adapter *adapter_ptr, uint8_t *address_buffer_ptr, uint32_t address_buffer_size, uint32_t *prefix_length_ptr)
 Get the adapter's IPv6 next hop. More...
 
ewf_result ewf_adapter_get_ipv6_dns (ewf_adapter *adapter_ptr, uint8_t *address_buffer_ptr, uint32_t address_buffer_size, uint32_t *prefix_length_ptr)
 Get the adapter's IPv6 primary DNS address. More...
 

Detailed Description

The Embedded Wireless Framework adapter info API implementation.

Version
Preview

Macro Definition Documentation

◆ EWF_ADAPTER_VALIDATE_INFO_API_POINTER

#define EWF_ADAPTER_VALIDATE_INFO_API_POINTER (   adapter_ptr,
  function_ptr 
)
Value:
do { \
if ((adapter_ptr->info_api_ptr == NULL) || \
(adapter_ptr->info_api_ptr->function_ptr == NULL)) \
{ \
EWF_LOG_ERROR("The function is not implemented."); \
} \
} while(0)
@ EWF_RESULT_NOT_SUPPORTED
Definition: ewf.h:71