Mistake on this page?
Report an issue in GitHub or email us
Data Structures | Macros | Functions
whd_types_int.h File Reference

Defines common constants used with WHD within src folder. More...

#include <stdint.h>
#include <stddef.h>
#include <inttypes.h>

Go to the source code of this file.

Data Structures

struct  whd_buffer_header_t
 

Macros

#define WHD_ETHERNET_SIZE   (14)
 The size of an Ethernet header. More...
 
#define WHD_ETHERTYPE_IPv4   0x0800
 Ethernet Ethertypes. More...
 
#define NULL_MAC(a)
 Macro for checking for NULL MAC addresses. More...
 
#define BROADCAST_ID(a)
 Macro for checking for Broadcast address. More...
 

Functions

uint32_t whd_wifi_set_iovar_buffers (whd_interface_t ifp, const char *iovar, const void **in_buffers, const uint16_t *in_buffer_lengths, const uint8_t num_buffers)
 Sends an IOVAR command. More...
 
uint32_t whd_wifi_set_iovar_void (whd_interface_t ifp, const char *iovar)
 Sends an IOVAR command. More...
 
uint32_t whd_wifi_set_iovar_buffer (whd_interface_t ifp, const char *iovar, void *buffer, uint16_t buffer_length)
 Sends an IOVAR command. More...
 
uint32_t whd_wifi_get_iovar_buffer (whd_interface_t ifp, const char *iovar_name, uint8_t *out_buffer, uint16_t out_length)
 Sends an IOVAR command. More...
 

Detailed Description

Defines common constants used with WHD within src folder.

Definition in file whd_types_int.h.

Macro Definition Documentation

#define BROADCAST_ID (   a)
Value:
( ( ( ( (unsigned char *)a )[0] ) == 255 ) && \
( ( ( (unsigned char *)a )[1] ) == 255 ) && \
( ( ( (unsigned char *)a )[2] ) == 255 ) && \
( ( ( (unsigned char *)a )[3] ) == 255 ) && \
( ( ( (unsigned char *)a )[4] ) == 255 ) && \
( ( ( (unsigned char *)a )[5] ) == 255 ) )

Macro for checking for Broadcast address.

Definition at line 150 of file whd_types_int.h.

#define NULL_MAC (   a)
Value:
( ( ( ( (unsigned char *)a )[0] ) == 0 ) && \
( ( ( (unsigned char *)a )[1] ) == 0 ) && \
( ( ( (unsigned char *)a )[2] ) == 0 ) && \
( ( ( (unsigned char *)a )[3] ) == 0 ) && \
( ( ( (unsigned char *)a )[4] ) == 0 ) && \
( ( ( (unsigned char *)a )[5] ) == 0 ) )

Macro for checking for NULL MAC addresses.

Definition at line 140 of file whd_types_int.h.

#define WHD_ETHERNET_SIZE   (14)

The size of an Ethernet header.

Definition at line 43 of file whd_types_int.h.

#define WHD_ETHERTYPE_IPv4   0x0800

Ethernet Ethertypes.

Definition at line 48 of file whd_types_int.h.

Function Documentation

uint32_t whd_wifi_get_iovar_buffer ( whd_interface_t  ifp,
const char *  iovar_name,
uint8_t *  out_buffer,
uint16_t  out_length 
)

Sends an IOVAR command.

Parameters
ifp: Pointer to handle instance of whd interface
iovar: IOVAR name
out_buffer: Pointer to receive the handle for the packet buffer containing the response data value received
out_length: Length of out_buffer
Returns
WHD_SUCCESS or Error code
uint32_t whd_wifi_set_iovar_buffer ( whd_interface_t  ifp,
const char *  iovar,
void *  buffer,
uint16_t  buffer_length 
)

Sends an IOVAR command.

Parameters
ifp: Pointer to handle instance of whd interface
iovar: IOVAR name
buffer: Handle for a packet buffer containing the data value to be sent.
buffer_length: Length of out_buffer
Returns
WHD_SUCCESS or Error code
uint32_t whd_wifi_set_iovar_buffers ( whd_interface_t  ifp,
const char *  iovar,
const void **  in_buffers,
const uint16_t *  in_buffer_lengths,
const uint8_t  num_buffers 
)

Sends an IOVAR command.

Parameters
ifp: Pointer to handle instance of whd interface
iovar: IOVAR name
in_buffers: Handle for a packet buffers containing the data value to be sent.
in_buffer_lengths: Length of in_buffers
num_buffers: Number of handle buffers
Returns
WHD_SUCCESS or Error code
uint32_t whd_wifi_set_iovar_void ( whd_interface_t  ifp,
const char *  iovar 
)

Sends an IOVAR command.

Parameters
ifp: Pointer to handle instance of whd interface
iovar: IOVAR name
Returns
WHD_SUCCESS or Error code
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.