Triple-Speed Ethernet Intel® FPGA IP User Guide

ID 683402
Date 7/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

10.6.2. alt_tse_mac_set_common_speed()

Details
Prototype: alt_tse_mac_set_common_speed(np_tse_mac *pmac, alt_32 common_speed)
Thread-safe: No
Available from ISR: No
Include: <altera_avalon_tse.h>
Description: The alt_tse_mac_set_common_speed() sets the speed of a multiport MAC and the PHYs connected to it.
Parameter: pmac—A pointer to the base of the MAC control interface.

common_speed—The speed to set.

Return: TSE_PHY_SPEED_1000 if the PHYs common speed is 1000 Mbps.


TSE_PHY_SPEED_100 if the PHYs common speed is 100 Mbps.


TSE_PHY_SPEED_10 if the PHYs common speed is 10 Mbps.


TSE_PHY_SPEED_NO_COMMON if there isn’t a common speed among the PHYs. The current speed of the MAC and PHYs is not changed.

See also: alt_32 alt_tse_mac_get_common_speed()