This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088

Dependents:   MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more

Embed: (wiki syntax)

« Back to documentation index

NyLPC_cEthernetMM.h File Reference

NyLPC_cEthernetMM.h File Reference

このファイルは、イーサネットメモリマネージャクラスを定義します。 More...

Go to the source code of this file.

Data Structures

struct  NyLPC_TTxBufferHeader
 送信バッフメモリのヘッダ。 この構造体は、TXバッファメモリブロックのヘッダーです。 TXバッファメモリブロックは、この構造体の後ろに、sizeに一致したメモリを連結したもので表現します。 More...
struct  NyLPC_TcEthernetMM_TxMemoryBlock
 TXメモリブロックの定義配列 More...

Functions

int NyLPC_cEthernetMM_dbg_getNumofUsedTx (void)
 デバック用。使用中のTxブロックの数を返す。
void NyLPC_cEthernetMM_initialize (void *i_memblock_addr)
 メモリブロックを初期化してメモリマネージャを構築します。 メモリサイズはsizeof(struct TTxMemoryBlock)以上である必要があります。
void * NyLPC_cEthernetMM_alloc (NyLPC_TUInt16 i_hint, NyLPC_TUInt16 *o_size)
 メモリを割り当てます。
void NyLPC_cEthernetMM_release (void *i_buf)
 NyLPC_EthernetMM_allocで得たメモリを解放します。

Detailed Description

このファイルは、イーサネットメモリマネージャクラスを定義します。

Definition in file NyLPC_cEthernetMM.h.


Function Documentation

void* NyLPC_cEthernetMM_alloc ( NyLPC_TUInt16  i_hint,
NyLPC_TUInt16 o_size 
)

メモリを割り当てます。

Parameters:
i_hint割り当てるメモリサイズのヒント。 数値の場合、128バイト以上のもっともhintに近いメモリを割り当てます。 以下の定義値の場合、特別な領域を優先して返します。たぶん。

  • NyLPC_TcEthernetMM_HINT_CTRL_PACKET - 64
Returns:
割り当て不能な場合はNULLが帰ります。

Definition at line 82 of file NyLPC_cEthernetMM.c.

int NyLPC_cEthernetMM_dbg_getNumofUsedTx ( void   )

デバック用。使用中のTxブロックの数を返す。

Definition at line 13 of file NyLPC_cEthernetMM.c.

void NyLPC_cEthernetMM_initialize ( void *  i_memblock_addr )

メモリブロックを初期化してメモリマネージャを構築します。 メモリサイズはsizeof(struct TTxMemoryBlock)以上である必要があります。

Definition at line 52 of file NyLPC_cEthernetMM.c.

void NyLPC_cEthernetMM_release ( void *  i_buf )

NyLPC_EthernetMM_allocで得たメモリを解放します。

Definition at line 156 of file NyLPC_cEthernetMM.c.