Functions | |
| int32_t | PN_MRP_setPortState (PN_Handle pnHandle, uint8_t portNumber, uint8_t pState) |
| API to set the MRP state for a port. More... | |
| int32_t | PN_MRP_getPortState (PRUICSS_HwAttrs const *pruicssHwAttrs, uint8_t portNumber, uint8_t *pState) |
| Returns the MRP state of a port. More... | |
| uint32_t | PN_enterFlushMode (PN_Handle pnHandle) |
| Used to signal topology change to MRP state machine. More... | |
| uint32_t | PN_allCpmKnown (PN_Handle pnHandle) |
| void | PN_resetCpmPorts (PN_Handle pnHandle) |
| void | PN_setCpmPort (PN_Handle pnHandle, t_rtcPacket *pID) |
Enumerations | |
| enum | tMrpStates { MRPREADY, MRPENTER, MRPWAIT, MRPCHECK, MRPEXIT } |
Macros | |
| #define | DISABLED 0 |
| #define | BLOCKING 1 |
| #define | FORWARDING 2 |
| #define DISABLED 0 |
MRP Port disabled state
| #define BLOCKING 1 |
MRP Port blocking state
| #define FORWARDING 2 |
MRP Port forwarding state
| enum tMrpStates |
| Enumerator | |
|---|---|
| MRPREADY | MRP module initiliazed. Idle state, do nothing |
| MRPENTER | MRP flush mode entered. Break in network detected, flush FDB |
| MRPWAIT | Waiting for CPM received. Sleep and goto MRPCHECK |
| MRPCHECK | Check if all CPM received. Check by PN_allCpmKnown |
| MRPEXIT | Exit MRP flush mode, back to normal op i.e., to MRPREADY |
| int32_t PN_MRP_setPortState | ( | PN_Handle | pnHandle, |
| uint8_t | portNumber, | ||
| uint8_t | pState | ||
| ) |
API to set the MRP state for a port.
| [in] | pnHandle | Profinet Handle |
| [in] | portNumber | Port for which MRP state has to be configured ICSS_EMAC_PORT_1 (1) ICSS_EMAC_PORT_2 (2) |
| [in] | pState | There are three valid values of the MRP port state DISABLED BLOCKING FORWARDING |
| 0 | on success |
| int32_t PN_MRP_getPortState | ( | PRUICSS_HwAttrs const * | pruicssHwAttrs, |
| uint8_t | portNumber, | ||
| uint8_t * | pState | ||
| ) |
Returns the MRP state of a port.
| [in] | pruicssHwAttrs | PRUICSS HW Attributes for base addresses |
| [in] | portNumber | Port number whose MRP port state has to be returned ICSS_EMAC_PORT_1 (1) ICSS_EMAC_PORT_2 (2) |
| [in] | pState | Reference to the MRP port state of the port |
| 0 | on success |
| uint32_t PN_enterFlushMode | ( | PN_Handle | pnHandle | ) |
Used to signal topology change to MRP state machine.
| pnHandle | Profinet Handle |
| uint32_t PN_allCpmKnown | ( | PN_Handle | pnHandle | ) |
| void PN_resetCpmPorts | ( | PN_Handle | pnHandle | ) |
| void PN_setCpmPort | ( | PN_Handle | pnHandle, |
| t_rtcPacket * | pID | ||
| ) |