RTEMS: Gmac_module

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Modules
Gmac_module
Board Support Packages » ARM » Atmel/Microchip SAM E70, S70, V70 and V71 » Contributed Code

## Modules
| GMAC Data Structs
| GMAC Defines
| GMAC Functions

## Detailed Description

Provides the interface to configure and use the GMAC peripheral.

# Usage

- Configure Gmac::GMAC_NCFG with GMAC_Configure(), some of related controls are also available, such as:
  - GMAC_SetSpeed(): Setup GMAC working clock.
  - GMAC_FullDuplexEnable(): Working in full duplex or not.
  - GMAC_CpyAllEnable(): Copying all valid frames (GMAC_NCFG_CAF).
  - ...
- Setup Gmac::GMAC_NCR with GMAC_NetworkControl(), more related controls can modify with:
  - GMAC_ReceiveEnable(): Enable/Disable Rx.
  - GMAC_TransmitEnable(): Enable/Disable Tx.
  - GMAC_BroadcastDisable(): Enable/Disable broadcast receiving.
  - ...
- Manage GMAC interrupts with GMAC_EnableIt(), GMAC_DisableIt(), GMAC_GetItMask() and GMAC_GetItStatus().
- Manage GMAC Tx/Rx status with GMAC_GetTxStatus(), GMAC_GetRxStatus() GMAC_ClearTxStatus() and GMAC_ClearRxStatus().
- Manage GMAC Queue with GMAC_SetTxQueue(), GMAC_GetTxQueue(), GMAC_SetRxQueue() and GMAC_GetRxQueue(), the queue descriptor can define by sGmacRxDescriptor and sGmacTxDescriptor.
- Manage PHY through GMAC is performed by
  - GMAC_ManagementEnable(): Enable/Disable PHY management.
  - GMAC_PHYMaintain(): Execute PHY management commands.
  - GMAC_PHYData(): Return PHY management data.
  - GMAC_IsIdle(): Check if PHY is idle.
- Setup GMAC parameters with following functions:
  - GMAC_SetHash(): Set Hash value.
  - GMAC_SetAddress(): Set MAC address.
- Enable/Disable GMAC transceiver clock via GMAC_TransceiverClockEnable()
- Switch GMAC MII/RMII mode through GMAC_RMIIEnable()

For more accurate information, please look at the GMAC section of the Datasheet.

See also
  Gmacd_module

Related files:
gmac.c
gmac.h.