mikroSDK Reference Manual
lldp_rx_fsm.h
Go to the documentation of this file.
1
31
#ifndef _LLDP_RX_FSM_H
32
#define _LLDP_RX_FSM_H
33
34
//Dependencies
35
#include "
core/net.h
"
36
#include "
lldp/lldp.h
"
37
38
//C++ guard
39
#ifdef __cplusplus
40
extern
"C"
{
41
#endif
42
43
48
typedef
enum
49
{
50
LLDP_STATE_LLDP_WAIT_PORT_OPERATIONAL = 0,
51
LLDP_STATE_DELETE_AGED_INFO = 1,
52
LLDP_STATE_RX_LLDP_INITIALIZE = 2,
53
LLDP_STATE_RX_WAIT_FOR_FRAME = 3,
54
LLDP_STATE_RX_FRAME = 4,
55
LLDP_STATE_DELETE_INFO = 5,
56
LLDP_STATE_UPDATE_INFO = 6
57
}
LldpRxState
;
58
59
60
//LLDP related functions
61
void
lldpInitRxFsm(LldpPortEntry *port);
62
void
lldpRxFsm(LldpPortEntry *port);
63
void
lldpChangeRxState(LldpPortEntry *port,
LldpRxState
newState);
64
65
//C++ guard
66
#ifdef __cplusplus
67
}
68
#endif
69
70
#endif
lldp.h
LLDP (Link Layer Discovery Protocol)
LldpRxState
LldpRxState
LLDP receive states.
Definition
lldp_rx_fsm.h:49
net.h
TCP/IP stack core.