Event data types. More...

Enumerations

enum  gos_event_flag_t {
  GOS_EVENT_FLAG_NONE = 0,
  GOS_EVENT_FLAG_RUN_NOW = (1 << 0),
  GOS_EVENT_FLAG_ALLOW_DUPLICATE = (1 << 1),
  GOS_EVENT_FLAG_FROM_IRQ = (1 << 2),
  GOS_EVENT_FLAG_REQUIRE_WLAN = (1 << 3),
  GOS_EVENT_FLAG_REQUIRE_SOFTAP = (1 << 4),
  GOS_EVENT_FLAG_REQUIRE_ETHERNET = (1 << 5),
  GOS_EVENT_FLAG_IN_EVENT_THREAD = (1 << 6),
  GOS_EVENT_FLAG_IN_NETWORK_WORKER = (1 << 7),
  GOS_EVENT_FLAG_UPDATE_TIMEOUT = (1 << 8)
}
 Event flags. More...
 

Detailed Description

Event data types.

Enumeration Type Documentation

◆ gos_event_flag_t

Event flags.

Enumerator
GOS_EVENT_FLAG_NONE 

No event flags set.

GOS_EVENT_FLAG_RUN_NOW 

Run the event immediately (should be used with gos_event_register_periodic() )

GOS_EVENT_FLAG_ALLOW_DUPLICATE 

Allow duplicate event handler.

GOS_EVENT_FLAG_FROM_IRQ 

Event being called from IRQ callback (gos_event_enable_irq_events() )

GOS_EVENT_FLAG_REQUIRE_WLAN 

The event won't execute unless the GOS_INTERFACE_WLAN interface is up.

GOS_EVENT_FLAG_REQUIRE_SOFTAP 

The event won't execute unless the GOS_INTERFACE_SOFTAP interface is up.

GOS_EVENT_FLAG_REQUIRE_ETHERNET 

The event won't execute unless the GOS_INTERFACE_ETHERNET interface is up.

GOS_EVENT_FLAG_IN_EVENT_THREAD 

The event will execute in the system event thread (.

Note
the event MUST NOT block as no other events will execute until it completes)
GOS_EVENT_FLAG_IN_NETWORK_WORKER 

The event will execute in the networking work thread.

GOS_EVENT_FLAG_UPDATE_TIMEOUT 

Update a timed event's timeout if it's currently pending.