Basic set of APIs for dealing with network packet buffers. More...
#include <stdint.h>
#include <stdbool.h>
#include "cy_result.h"
#include "whd.h"
#include "whd_network_types.h"
Go to the source code of this file.
Functions | |
whd_result_t | cy_host_buffer_get (whd_buffer_t *buffer, whd_buffer_dir_t direction, unsigned short size, unsigned long timeout_ms) |
Allocates a packet buffer. More... | |
void | cy_buffer_release (whd_buffer_t buffer, whd_buffer_dir_t direction) |
Releases a packet buffer. More... | |
uint8_t * | cy_buffer_get_current_piece_data_pointer (whd_buffer_t buffer) |
Retrieves the current pointer of a packet buffer. More... | |
uint16_t | cy_buffer_get_current_piece_size (whd_buffer_t buffer) |
Retrieves the size of a packet buffer. More... | |
whd_result_t | cy_buffer_set_size (whd_buffer_t buffer, unsigned short size) |
Sets the current size of a WHD packet. More... | |
whd_result_t | cy_buffer_add_remove_at_front (whd_buffer_t *buffer, int32_t add_remove_amount) |
Moves the current pointer of a packet buffer. More... | |
void | cy_network_process_ethernet_data (whd_interface_t interface, whd_buffer_t buffer) |
Called by WHD to pass received data to the network stack. More... | |
Basic set of APIs for dealing with network packet buffers.
This is used by WHD for relaying data between the network stack and the connectivity chip.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file cy_network_buffer.h.