libIEC61850
1.0.0
Open-source IEC 61850 MMS/GOOSE/SV server and client library
|
Typedefs | |
typedef struct sEthernetSocket * | EthernetSocket |
Opaque handle that represents an Ethernet "socket". More... | |
Functions | |
void | Ethernet_getInterfaceMACAddress (const char *interfaceId, uint8_t *addr) |
Return the MAC address of an Ethernet interface. More... | |
EthernetSocket | Ethernet_createSocket (const char *interfaceId, uint8_t *destAddress) |
Create an Ethernet socket using the specified interface and destination MAC address. More... | |
void | Ethernet_destroySocket (EthernetSocket ethSocket) |
destroy the ethernet socket More... | |
void | Ethernet_sendPacket (EthernetSocket ethSocket, uint8_t *buffer, int packetSize) |
void | Ethernet_setProtocolFilter (EthernetSocket ethSocket, uint16_t etherType) |
int | Ethernet_receivePacket (EthernetSocket ethSocket, uint8_t *buffer, int bufferSize) |
receive an ethernet packet (non-blocking) More... | |
bool | Ethernet_isSupported (void) |
Indicates if runtime provides support for direct Ethernet access. More... | |
typedef struct sEthernetSocket* EthernetSocket |
Opaque handle that represents an Ethernet "socket".
EthernetSocket Ethernet_createSocket | ( | const char * | interfaceId, |
uint8_t * | destAddress | ||
) |
Create an Ethernet socket using the specified interface and destination MAC address.
interfaceId | the ID of the Ethernet interface |
destAddress | byte array that contains the Ethernet MAC address |
void Ethernet_destroySocket | ( | EthernetSocket | ethSocket | ) |
destroy the ethernet socket
ethSocket | the ethernet socket handle |
void Ethernet_getInterfaceMACAddress | ( | const char * | interfaceId, |
uint8_t * | addr | ||
) |
Return the MAC address of an Ethernet interface.
The result are the six bytes that make up the Ethernet MAC address.
interfaceId | the ID of the Ethernet interface |
addr | pointer to a buffer to store the MAC address |
bool Ethernet_isSupported | ( | void | ) |
Indicates if runtime provides support for direct Ethernet access.
int Ethernet_receivePacket | ( | EthernetSocket | ethSocket, |
uint8_t * | buffer, | ||
int | bufferSize | ||
) |
receive an ethernet packet (non-blocking)
ethSocket | the ethernet socket handle |
buffer | the buffer to copy the message to |
the | maximum size of the buffer |
void Ethernet_sendPacket | ( | EthernetSocket | ethSocket, |
uint8_t * | buffer, | ||
int | packetSize | ||
) |
void Ethernet_setProtocolFilter | ( | EthernetSocket | ethSocket, |
uint16_t | etherType | ||
) |