24 #ifndef GOOSE_RECEIVER_H_ 25 #define GOOSE_RECEIVER_H_ void GooseReceiver_stopThreadless(GooseReceiver self)
void GooseReceiver_removeSubscriber(GooseReceiver self, GooseSubscriber subscriber)
Remove a subscriber from this receiver instance.
struct sGooseSubscriber * GooseSubscriber
Definition: goose_subscriber.h:40
void GooseReceiver_addSubscriber(GooseReceiver self, GooseSubscriber subscriber)
Add a subscriber to this receiver instance.
EthernetSocket GooseReceiver_startThreadless(GooseReceiver self)
struct sEthernetSocket * EthernetSocket
Opaque handle that represents an Ethernet "socket".
Definition: hal_ethernet.h:49
void GooseReceiver_stop(GooseReceiver self)
stop the GOOSE receiver running in a separate thread
void GooseReceiver_setInterfaceId(GooseReceiver self, const char *interfaceId)
sets the interface for the GOOSE receiver
bool GooseReceiver_tick(GooseReceiver self)
Parse GOOSE messages if they are available.
void GooseReceiver_start(GooseReceiver self)
start the GOOSE receiver in a separate thread
bool GooseReceiver_isRunning(GooseReceiver self)
Check if GOOSE receiver is running.
GooseReceiver GooseReceiver_create(void)
Create a new receiver instance.
struct sGooseReceiver * GooseReceiver
Definition: goose_receiver.h:41
void GooseReceiver_destroy(GooseReceiver self)
Free all resource of the GooseReceiver and all installed GooseSubscribers.