Embedded Wireless Framework
ewf_adapter_api_info.h
Go to the documentation of this file.
1 /************************************************************************/
9 #ifndef __ewf_adapter_info__h__included__
10 #define __ewf_adapter_info__h__included__
11 
12 #include "ewf.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 /************************************************************************/
25 typedef struct _ewf_adapter_api_info
26 {
27  ewf_result(*info)(ewf_adapter* adapter_ptr);
28  ewf_result(*get_ipv4_address)(ewf_adapter* adapter_ptr, uint32_t* address_ptr);
29  ewf_result(*get_ipv4_netmask)(ewf_adapter* adapter_ptr, uint32_t* netmask_ptr);
30  ewf_result(*get_ipv4_gateway)(ewf_adapter* adapter_ptr, uint32_t* gateway_ptr);
31  ewf_result(*get_ipv4_dns)(ewf_adapter* adapter_ptr, uint32_t* dns_ptr);
32  ewf_result(*get_ipv6_address)(ewf_adapter* adapter_ptr, uint8_t* address_buffer_ptr, uint32_t address_buffer_size, uint32_t* prefix_length_ptr);
33  ewf_result(*get_ipv6_next_hop)(ewf_adapter* adapter_ptr, uint8_t* address_buffer_ptr, uint32_t address_buffer_size, uint32_t* prefix_length_ptr);
34  ewf_result(*get_ipv6_dns)(ewf_adapter* adapter_ptr, uint8_t* address_buffer_ptr, uint32_t address_buffer_size, uint32_t* prefix_length_ptr);
35 
37 
44 
51 ewf_result ewf_adapter_get_ipv4_address(ewf_adapter* adapter_ptr, uint32_t* address_ptr);
52 
59 ewf_result ewf_adapter_get_ipv4_netmask(ewf_adapter* adapter_ptr, uint32_t * netmask_ptr);
60 
67 ewf_result ewf_adapter_get_ipv4_gateway(ewf_adapter* adapter_ptr, uint32_t * gateway_ptr);
68 
75 ewf_result ewf_adapter_get_ipv4_dns(ewf_adapter* adapter_ptr, uint32_t * dns_ptr);
76 
83 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);
84 
91 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);
92 
99 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);
100 
101 /************************************************************************/
105 #ifdef __cplusplus
106 }
107 #endif
108 
109 #endif /* __ewf_adapter_info__h__included__ */
The Embedded Wireless Framework.
ewf_result ewf_adapter_get_ipv4_netmask(ewf_adapter *adapter_ptr, uint32_t *netmask_ptr)
Get the adapter's IPv4 network mask.
Definition: ewf_adapter_api_info.c:35
ewf_result ewf_adapter_get_ipv4_gateway(ewf_adapter *adapter_ptr, uint32_t *gateway_ptr)
Get the adapter's IPv4 gateway address.
Definition: ewf_adapter_api_info.c:42
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.
Definition: ewf_adapter_api_info.c:70
ewf_result ewf_adapter_get_ipv4_dns(ewf_adapter *adapter_ptr, uint32_t *dns_ptr)
Get the adapter's IPv4 primary DNS address.
Definition: ewf_adapter_api_info.c:49
ewf_result ewf_adapter_info(ewf_adapter *adapter_ptr)
Query and log the modem information.
Definition: ewf_adapter_api_info.c:21
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.
Definition: ewf_adapter_api_info.c:63
ewf_result ewf_adapter_get_ipv4_address(ewf_adapter *adapter_ptr, uint32_t *address_ptr)
Get the adapter's IPv4 address.
Definition: ewf_adapter_api_info.c:28
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.
Definition: ewf_adapter_api_info.c:56
enum _ewf_result ewf_result
Success and error result codes specific to the EWF API.
Definition: ewf_adapter_api_info.h:26
The EWF network adapter control structure definition.
Definition: ewf_adapter.h:50