24 #ifndef ETHERNET_HAL_H_ 25 #define ETHERNET_HAL_H_ int EthernetHandleSet_waitReady(EthernetHandleSet self, unsigned int timeoutMs)
wait for a socket to become ready
int Ethernet_receivePacket(EthernetSocket ethSocket, uint8_t *buffer, int bufferSize)
receive an ethernet packet (non-blocking)
struct sEthernetSocket * EthernetSocket
Opaque handle that represents an Ethernet "socket".
Definition: hal_ethernet.h:49
void Ethernet_destroySocket(EthernetSocket ethSocket)
destroy the ethernet socket
void EthernetHandleSet_destroy(EthernetHandleSet self)
destroy the EthernetHandleSet instance
void Ethernet_setProtocolFilter(EthernetSocket ethSocket, uint16_t etherType)
struct sEthernetHandleSet * EthernetHandleSet
Definition: hal_ethernet.h:52
void EthernetHandleSet_addSocket(EthernetHandleSet self, const EthernetSocket sock)
add a socket to an existing handle set
void Ethernet_getInterfaceMACAddress(const char *interfaceId, uint8_t *addr)
Return the MAC address of an Ethernet interface.
EthernetHandleSet EthernetHandleSet_new(void)
Create a new connection handle set (EthernetHandleSet)
void Ethernet_sendPacket(EthernetSocket ethSocket, uint8_t *buffer, int packetSize)
void EthernetHandleSet_removeSocket(EthernetHandleSet self, const EthernetSocket sock)
remove a socket from an existing handle set
EthernetSocket Ethernet_createSocket(const char *interfaceId, uint8_t *destAddress)
Create an Ethernet socket using the specified interface and destination MAC address.
bool Ethernet_isSupported(void)
Indicates if runtime provides support for direct Ethernet access.