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 MAX_CTRLS   (1u)

Definition at line 25 of file tte_buffer.h.

#define tte_get_priv_buf ( p_tte_buf   )     ( (tte_priv_buf_t *) (p_tte_buf)->priv )

Definition at line 64 of file tte_buffer.h.


Function Documentation

void tte_clear_queue_buf ( tte_priv_buf_t buf  ) 
void tte_clear_state_buf ( tte_priv_buf_t buf  ) 
int32_t tte_close_buf_for_reading ( tte_priv_buf_t buf,
int32_t(*)(uint8_t, eth_buffer_t *)  free_fn 
)
int32_t tte_close_buf_for_writing ( tte_priv_buf_t buf,
uint16_t  size 
)
void tte_flush_queue_buf ( tte_priv_buf_t buf,
int32_t(*)(uint8_t, eth_buffer_t *)  free_fn 
)
void tte_flush_state_buf ( tte_priv_buf_t buf,
int32_t(*)(uint8_t, eth_buffer_t *)  free_fn 
)
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_open_buf_for_writing ( tte_priv_buf_t buf,
int32_t *const   page 
)

Variable Documentation

tte_priv_buf_t tt_rx_buf[TARGET_MAX_TT_RX_BUFS]
tte_priv_buf_t tt_tx_buf[TARGET_MAX_TT_TX_BUFS]
Generated on Tue Nov 29 14:09:19 2011 for TTEthernet Model for INET Framework by  doxygen 1.6.3