Api functions, Alt_tse_mac_get_common_speed(), Alt_tse_mac_set_common_speed() – Altera Triple Speed Ethernet MegaCore Function User Manual
Page 184: Api functions -5, Alt_tse_mac_get_common_speed() -5, Alt_tse_mac_set_common_speed() -5
Definition
File
#ifndef BIGBUFSIZE
#define BIGBUFSIZE 1536
#endif
<BSP project directory>
\iniche\src\h\nios2\
ipport.h
Note to
:
1. The maximum value for
ALTERA_TSE_MAC_MAX_FRAME_LENGTH
is defined by the
frm_length
register.
API Functions
This section describes each provided API function in alphabetical order.
alt_tse_mac_get_common_speed()
Details
alt_tse_mac_get_common_speed(np_tse_mac *pmac)
Prototype:
No
Thread-safe:
No
Available from ISR:
<
altera_avalon_tse.h
>
Include:
The
alt_tse_mac_get_common_speed()
obtains the common speed supported by
the PHYs connected to a multiport MAC and remote link partners.
Description:
pmac
—A pointer to the base of the MAC control interface.
Parameter:
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.
Return:
alt_32 alt_tse_mac_set_common_speed()
See also:
alt_tse_mac_set_common_speed()
Details
alt_tse_mac_set_common_speed(np_tse_mac *pmac, alt_32 common_speed)
Prototype:
No
Thread-safe:
No
Available from ISR:
<
altera_avalon_tse.h
>
Include:
The
alt_tse_mac_set_common_speed()
sets the speed of a multiport MAC and
the PHYs connected to it.
Description:
pmac
—A pointer to the base of the MAC control interface.
common_speed
—The speed to set.
Parameter:
Altera Corporation
Software Programming Interface
11-5
API Functions
UG-01008
2014.06.30