![Texas TMS320C6000 Programmer'S Reference Manual Download Page 248](http://html.mh-extra.com/html/texas/tms320c6000/tms320c6000_programmers-reference-manual_1093844248.webp)
Low-Level Packet Driver (llPacket)
D-5
Hardware Abstraction Layer (HAL)
D.3 Low-Level Packet Driver (llPacket)
D.3.1 Synopsis
The stack code requires a very basic packet function library. Note that although
the high level packet API is documented here, the HAL contains a generic
packet driver that implements this API. It is more efficient to use the standard
llPacket driver and provide a hardware specific mini-driver than to implement
the llPacket API from scratch.
D.3.2 Function Overview
Application Functions:
_llPacketInit()
Initialize Driver Environment and
Enumerate Devices
_llPacketShutdown
Shutdown Driver Environment
_llPakcetServiceCheck()
Check for packet activity
Kernel Layer Functions:
llPacketOpen()
Open Driver and Bind Logical Ether Object
to Device Id
llPacketClose()
Close Driver and Unbind Logical Ether
Object from Device Id
llPacketSetRxFilter()
Set Packet Receive Filter
llPacketGetMacAddr()
Get MAC address
llPacketGetMCastMax()
Get the Maximum Number of Multicast
Addresses
llPacketGetMCast()
Get Multicast Address List
llPacketSetMCast()
Set Multicast Address List
llPacketService()
Service a Queued Packet
llPacketGetBuffer()
Get a Packet Buffer from the System
llPacketSend()
Send a Packet
llPacketReturnBuffer()
Return an Rx Buffer to the System
D.3.3 Low-Level Packet API Functions
The low level support layer must provide the following functions:
Initialize Driver Environment and Enumerate Devices
_llPacketInit
Syntax
uint _llPacketInit();
Return Value
Returns the number of physical packet devices.
Description
This function is called by NETCTRL initializes the system to use packets de-
vices of a specific type. It also enumerates all the physical devices in the sys-
tem, and returns a device count. The stack will then call the llPacketOpen()
function once for each physical device indicated.