F-Tile Triple-Speed Ethernet Intel® FPGA IP User Guide

ID 741328
Date 10/07/2024
Public
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()