ClearCore Library
|
ClearCore Ethernet configuration manager.
This class manages setup and access to the Ethernet PHY chip and Ethernet Media Access Controller (GMAC) peripheral.
For more detailed information on the ClearCore Ethernet system, check out the ClearCore Ethernet informational page.
ClearCore Ethernet configuration manager. More...
#include <EthernetManager.h>
Public Member Functions | |
volatile const bool & | PhyLinkActive () |
Check the link status from the PHY. | |
volatile const bool & | PhyRemoteFault () |
Check the remote fault status from the PHY. | |
uint8_t * | MacAddress () |
Get the MAC address. | |
IpAddress | LocalIp () |
Get the local IP address. | |
void | LocalIp (IpAddress ipaddr) |
Set the local IP address. | |
IpAddress | NetmaskIp () |
Get the netmask IP. | |
void | NetmaskIp (IpAddress address) |
Set the netmask IP. | |
IpAddress | GatewayIp () |
Get the gateway IP address. | |
void | GatewayIp (IpAddress address) |
Set the gateway IP address. | |
IpAddress | DnsIp () |
Get the DNS IP address used for address resolution. | |
void | DnsIp (IpAddress dns) |
Set the DNS IP address used for address resolution. | |
volatile const uint16_t & | RetransmissionTimeout () |
Get the retransmission timeout. | |
void | RetransmissionTimeout (uint8_t timeout) |
Set the retransmission timeout. | |
volatile const uint8_t & | RetransmissionCount () |
Get the retransmission count. | |
void | RetransmissionCount (uint8_t count) |
Set the retransmission count. | |
bool | DhcpBegin () |
Set up DHCP connection to retrieve local IP. | |
void | Setup () |
Setup LwIP with the local network interface. | |
void | Refresh () |
Perform any necessary periodic Ethernet and LwIP updates. | |
volatile const bool & | EthernetActive () |
A flag to indicate whether Ethernet setup has been invoked. | |
bool ClearCore::EthernetManager::DhcpBegin | ( | ) |
Set up DHCP connection to retrieve local IP.
Attempts to perform DHCP negotiation to be supplied an IP address.
IpAddress ClearCore::EthernetManager::DnsIp | ( | ) |
Get the DNS IP address used for address resolution.
void ClearCore::EthernetManager::DnsIp | ( | IpAddress | dns | ) |
Set the DNS IP address used for address resolution.
[in] | dns | The DNS IP address. |
|
inline |
A flag to indicate whether Ethernet setup has been invoked.
IpAddress ClearCore::EthernetManager::GatewayIp | ( | ) |
Get the gateway IP address.
void ClearCore::EthernetManager::GatewayIp | ( | IpAddress | address | ) |
Set the gateway IP address.
IpAddress ClearCore::EthernetManager::LocalIp | ( | ) |
Get the local IP address.
void ClearCore::EthernetManager::LocalIp | ( | IpAddress | ipaddr | ) |
Set the local IP address.
uint8_t * ClearCore::EthernetManager::MacAddress | ( | ) |
Get the MAC address.
IpAddress ClearCore::EthernetManager::NetmaskIp | ( | ) |
Get the netmask IP.
void ClearCore::EthernetManager::NetmaskIp | ( | IpAddress | address | ) |
Set the netmask IP.
|
inline |
Check the link status from the PHY.
|
inline |
Check the remote fault status from the PHY.
void ClearCore::EthernetManager::Refresh | ( | ) |
Perform any necessary periodic Ethernet and LwIP updates.
Sends all incoming, buffered packets to the LwIP interface. Calls sys_check_timeouts() to perform any necessary LwIP related tasks.
|
inline |
Get the retransmission count.
|
inline |
Set the retransmission count.
[in] | count | The retransmission count to be set. |
|
inline |
Get the retransmission timeout.
|
inline |
Set the retransmission timeout.
[in] | timeout | The retransmission timeout interval to be set, in milliseconds. |
void ClearCore::EthernetManager::Setup | ( | ) |
Setup LwIP with the local network interface.