KNX IoT
KNX IoT Point API stack implementation
oc_network_events.h File Reference

network events (network interfaces going up/down) More...

#include "port/oc_network_events_mutex.h"
#include "util/oc_process.h"

Go to the source code of this file.

Data Structures

struct  oc_network_interface_cb
 Structure to manage network interface handler list. More...
 

Typedefs

typedef void(* interface_event_handler_t) (oc_interface_event_t event)
 Callback function to pass the network interface up/down infomation to App. More...
 
typedef struct oc_message_s oc_message_t
 
typedef struct oc_network_interface_cb oc_network_interface_cb_t
 Structure to manage network interface handler list. More...
 

Enumerations

enum  oc_interface_event_t { NETWORK_INTERFACE_DOWN , NETWORK_INTERFACE_UP }
 network events More...
 

Functions

void oc_network_event (oc_message_t *message)
 receive network event More...
 
void oc_network_interface_event (oc_interface_event_t event)
 initiate network event More...
 
 OC_PROCESS_NAME (oc_network_events)
 process network events More...
 

Detailed Description

network events (network interfaces going up/down)

Definition in file oc_network_events.h.

Typedef Documentation

◆ interface_event_handler_t

typedef void(* interface_event_handler_t) (oc_interface_event_t event)

Callback function to pass the network interface up/down infomation to App.

Parameters
eventenum values in oc_interface_event_t.

Definition at line 45 of file oc_network_events.h.

◆ oc_network_interface_cb_t

Structure to manage network interface handler list.

Enumeration Type Documentation

◆ oc_interface_event_t

network events

Enumerator
NETWORK_INTERFACE_DOWN 

network interface down

NETWORK_INTERFACE_UP 

network interface up

Definition at line 35 of file oc_network_events.h.

35  {
oc_interface_event_t
network events
@ NETWORK_INTERFACE_DOWN
network interface down
@ NETWORK_INTERFACE_UP
network interface up

Function Documentation

◆ oc_network_event()

void oc_network_event ( oc_message_t *  message)

receive network event

Parameters
messagethe network message

◆ oc_network_interface_event()

void oc_network_interface_event ( oc_interface_event_t  event)

initiate network event

Parameters
eventthe event

◆ OC_PROCESS_NAME()

OC_PROCESS_NAME ( oc_network_events  )

process network events