27 #ifndef INC_WHD_NETWORK_TYPES_H_ 28 #define INC_WHD_NETWORK_TYPES_H_ 80 unsigned long timeout_ms);
111 uint8_t *(*whd_buffer_get_current_piece_data_pointer)(whd_buffer_t buffer);
void(* whd_buffer_release)(whd_buffer_t buffer, whd_buffer_dir_t direction)
Releases a packet buffer.
Contains functions which allows WHD to pass received data to the network stack, to send an ethernet f...
Provides abstract pointer type to act as instance for: driver, interface, buffer funcs, network funcs, resource funcs and bus funcs.
whd_result_t whd_network_process_ethernet_data(whd_interface_t ifp, whd_buffer_t buffer)
Called by WHD to pass received data to the network stack.
uint32_t whd_result_t
WHD result is specified as uint32_t value.
whd_result_t(* whd_host_buffer_get)(whd_buffer_t *buffer, whd_buffer_dir_t direction, unsigned short size, unsigned long timeout_ms)
Allocates a packet buffer.
void whd_network_send_ethernet_data(whd_interface_t ifp, whd_buffer_t buffer)
To send an ethernet frame to WHD (called by the Network Stack)
Allows WHD to perform buffer related operations like, allocating, releasing, retrieving the current p...
whd_result_t(* whd_buffer_set_size)(whd_buffer_t buffer, unsigned short size)
Sets the current size of a WHD packet.
whd_result_t(* whd_buffer_add_remove_at_front)(whd_buffer_t *buffer, int32_t add_remove_amount)
Moves the current pointer of a packet buffer.
whd_buffer_dir_t
Indicates transmit/receive direction that the packet buffer has been used for.
uint16_t(* whd_buffer_get_current_piece_size)(whd_buffer_t buffer)
Retrieves the size of a packet buffer.