iLLD_TC27xD  1.0
Configuration Functions
Collaboration diagram for Configuration Functions:

Functions

IFX_INLINE void IfxEth_RxDescr_setBuffer (IfxEth_RxDescr *descr, void *buffer)
 Set buffer of an RX descriptor. More...
 
IFX_INLINE IfxEth_TxDescrIfxEth_TxDescr_getNext (IfxEth_TxDescr *descr)
 Get pointer to next TX descriptor. More...
 
IFX_INLINE boolean IfxEth_TxDescr_isAvailable (IfxEth_TxDescr *descr)
 Return TRUE if a TX descriptor is available for setup. More...
 
IFX_INLINE void IfxEth_TxDescr_setBuffer (IfxEth_TxDescr *descr, void *buffer)
 Set buffer of a TX descriptor. More...
 
IFX_INLINE void IfxEth_applySoftwareReset (IfxEth *eth)
 Applies the Software Reset. More...
 
IFX_INLINE void IfxEth_clearRxInterrupt (IfxEth *eth)
 Clear receive interrupt request. More...
 
IFX_INLINE void IfxEth_clearTxInterrupt (IfxEth *eth)
 Clear transmit interrupt request. More...
 
IFX_INLINE boolean IfxEth_isSoftwareResetDone (IfxEth *eth)
 Returns the status of Software Reset. More...
 
IFX_INLINE void IfxEth_setLoopbackMode (IfxEth *eth, boolean loopbackMode)
 Sets the loopback mode. More...
 
IFX_INLINE void IfxEth_setPhyInterfaceMode (IfxEth *eth, IfxEth_PhyInterfaceMode mode)
 Sets the Phy Interface mode. More...
 
IFX_INLINE void IfxEth_setReceiveDescriptorAddress (Ifx_ETH *eth, void *address)
 Sets receive descriptor address. More...
 
IFX_INLINE void IfxEth_setTransmitDescriptorAddress (Ifx_ETH *eth, void *address)
 Sets transmit descriptor address. More...
 
IFX_INLINE void * IfxEth_waitTransmitBuffer (IfxEth *eth)
 Waits for one TX buffer becomes available. More...
 
IFX_EXTERN void IfxEth_freeReceiveBuffer (IfxEth *eth)
 Free the receive buffer, enabling it for the further reception. More...
 
IFX_EXTERN void IfxEth_sendTransmitBuffer (IfxEth *eth, uint16 len)
 Request to send the transmit buffer. More...
 
IFX_EXTERN void IfxEth_setMacAddress (IfxEth *eth, const uint8 *macAddress)
 Sets the MAC address. More...
 
IFX_EXTERN void IfxEth_startReceiver (IfxEth *eth)
 Start the receiver functions. More...
 
IFX_EXTERN void IfxEth_writeHeader (IfxEth *eth, uint8 *txBuffer, uint8 *destinationAddress, uint8 *sourceAddress, uint32 packetSize)
 writes the header format into buffrer More...
 

Detailed Description

Function Documentation

IFX_INLINE void IfxEth_applySoftwareReset ( IfxEth eth)

Applies the Software Reset.

Parameters
ethETH driver structure
Returns
None

Definition at line 987 of file IfxEth.h.

Referenced by IfxEth_init().

IFX_INLINE void IfxEth_clearRxInterrupt ( IfxEth eth)

Clear receive interrupt request.

Parameters
ethETH driver structure
Returns
None

Definition at line 994 of file IfxEth.h.

IFX_INLINE void IfxEth_clearTxInterrupt ( IfxEth eth)

Clear transmit interrupt request.

Parameters
ethETH driver structure
Returns
None

Definition at line 1001 of file IfxEth.h.

IFX_EXTERN void IfxEth_freeReceiveBuffer ( IfxEth eth)

Free the receive buffer, enabling it for the further reception.

Parameters
ethETH driver structure
Returns
None

Definition at line 58 of file IfxEth.c.

IFX_INLINE boolean IfxEth_isSoftwareResetDone ( IfxEth eth)

Returns the status of Software Reset.

Parameters
ethETH driver structure
Returns
Status

Definition at line 1110 of file IfxEth.h.

Referenced by IfxEth_init().

IFX_INLINE void IfxEth_RxDescr_setBuffer ( IfxEth_RxDescr descr,
void *  buffer 
)

Set buffer of an RX descriptor.

Parameters
descrdescr Pointer to an RX descriptor
bufferpointer to buffer
Returns
None

Definition at line 945 of file IfxEth.h.

Referenced by IfxEth_initReceiveDescriptors().

IFX_EXTERN void IfxEth_sendTransmitBuffer ( IfxEth eth,
uint16  len 
)

Request to send the transmit buffer.

The transmit buffer is the last one specified by IfxEth_getTransmitBuffer()

Parameters
ethETH driver structure
lenLength of the data put in the transmit buffer (in bytes)
Returns
None

Definition at line 357 of file IfxEth.c.

Referenced by IfxEth_setAndSendTransmitBuffer().

IFX_INLINE void IfxEth_setLoopbackMode ( IfxEth eth,
boolean  loopbackMode 
)

Sets the loopback mode.

Parameters
ethETH driver structure
loopbackModeloopback mode enable/disbale
Returns
None

Definition at line 1131 of file IfxEth.h.

IFX_EXTERN void IfxEth_setMacAddress ( IfxEth eth,
const uint8 macAddress 
)

Sets the MAC address.

Parameters
ethETH driver structure
macAddressMAC address
Returns
None

Definition at line 378 of file IfxEth.c.

Referenced by IfxEth_init().

IFX_INLINE void IfxEth_setPhyInterfaceMode ( IfxEth eth,
IfxEth_PhyInterfaceMode  mode 
)

Sets the Phy Interface mode.

Parameters
ethETH driver structure
modePhy interface mode
Returns
None

Definition at line 1138 of file IfxEth.h.

Referenced by IfxEth_init().

IFX_INLINE void IfxEth_setReceiveDescriptorAddress ( Ifx_ETH *  eth,
void *  address 
)

Sets receive descriptor address.

Parameters
ethpointer to the ethernet module
addressAddress
Returns
None

Definition at line 1145 of file IfxEth.h.

Referenced by IfxEth_initReceiveDescriptors().

IFX_INLINE void IfxEth_setTransmitDescriptorAddress ( Ifx_ETH *  eth,
void *  address 
)

Sets transmit descriptor address.

Parameters
ethpointer to the ethernet module
addressAddress
Returns
None

Definition at line 1151 of file IfxEth.h.

Referenced by IfxEth_initTransmitDescriptors().

IFX_EXTERN void IfxEth_startReceiver ( IfxEth eth)

Start the receiver functions.

Parameters
ethETH driver structure
Returns
None

Definition at line 567 of file IfxEth.c.

Referenced by IfxEth_wakeupReceiver().

IFX_INLINE IfxEth_TxDescr * IfxEth_TxDescr_getNext ( IfxEth_TxDescr descr)

Get pointer to next TX descriptor.

Parameters
descrdescr Pointer to a TX descriptor
Returns
next Tx descriptor

Definition at line 951 of file IfxEth.h.

Referenced by IfxEth_setupChecksumEngine(), and IfxEth_shuffleTxDescriptor().

IFX_INLINE boolean IfxEth_TxDescr_isAvailable ( IfxEth_TxDescr descr)

Return TRUE if a TX descriptor is available for setup.

Parameters
descrpointer to descriptor

Definition at line 957 of file IfxEth.h.

IFX_INLINE void IfxEth_TxDescr_setBuffer ( IfxEth_TxDescr descr,
void *  buffer 
)

Set buffer of a TX descriptor.

Parameters
descrEntdescr Pointer to a TX descriptorer_String_here
bufferpointer to Buffer
Returns
None

Definition at line 969 of file IfxEth.h.

Referenced by IfxEth_initTransmitDescriptors(), and IfxEth_setAndSendTransmitBuffer().

IFX_INLINE void * IfxEth_waitTransmitBuffer ( IfxEth eth)

Waits for one TX buffer becomes available.

Parameters
ethETH driver structure retval non NULL_PTR TX buffer is available at the address pointed by the returned value retval NULL_PTR TX buffer is busy.

Definition at line 1169 of file IfxEth.h.

IFX_EXTERN void IfxEth_writeHeader ( IfxEth eth,
uint8 txBuffer,
uint8 destinationAddress,
uint8 sourceAddress,
uint32  packetSize 
)

writes the header format into buffrer

Parameters
ethETH driver structure
txBufferpointer to tx buffer
destinationAddresspointer to destination address
sourceAddresspointer to source address
packetSizesize of the packet
Returns
None

Definition at line 634 of file IfxEth.c.