tte_buffer.h File Reference
#include "tte_eth_driver.h"
#include "tte_api.h"
#include "tte_config.h"
Go to the source code of this file.
Classes |
struct | tte_queue_buf_t |
struct | tte_state_buf_t |
struct | tte_priv_buf_t |
Defines |
#define | MAX_CTRLS (1u) |
#define | tte_get_priv_buf(p_tte_buf) ( (tte_priv_buf_t *) (p_tte_buf)->priv ) |
Functions |
void | tte_clear_state_buf (tte_priv_buf_t *buf) |
void | tte_clear_queue_buf (tte_priv_buf_t *buf) |
void | tte_flush_queue_buf (tte_priv_buf_t *buf, int32_t(*free_fn)(uint8_t, eth_buffer_t *)) |
void | tte_flush_state_buf (tte_priv_buf_t *buf, int32_t(*free_fn)(uint8_t, eth_buffer_t *)) |
int32_t | tte_open_buf_for_reading (tte_priv_buf_t *buf, uint8_t **const frame, tte_buf_status_t *const status, int32_t *const page) |
int32_t | tte_close_buf_for_reading (tte_priv_buf_t *buf, int32_t(*free_fn)(uint8_t, eth_buffer_t *)) |
int32_t | tte_open_buf_for_writing (tte_priv_buf_t *buf, int32_t *const page) |
int32_t | tte_close_buf_for_writing (tte_priv_buf_t *buf, uint16_t size) |
Variables |
tte_priv_buf_t | bg_tx_buf [MAX_CTRLS] |
tte_priv_buf_t | bg_rx_buf [MAX_CTRLS] |
tte_priv_buf_t | tt_tx_buf [TARGET_MAX_TT_TX_BUFS] |
tte_priv_buf_t | tt_rx_buf [TARGET_MAX_TT_RX_BUFS] |
Define Documentation
#define tte_get_priv_buf |
( |
p_tte_buf |
|
) |
( (tte_priv_buf_t *) (p_tte_buf)->priv ) |
Function Documentation
int32_t tte_close_buf_for_writing |
( |
tte_priv_buf_t * |
buf, |
|
|
uint16_t |
size | |
|
) |
| | |
int32_t tte_open_buf_for_writing |
( |
tte_priv_buf_t * |
buf, |
|
|
int32_t *const |
page | |
|
) |
| | |
Variable Documentation