|
AM243x MCU+ SDK
08.06.00
|
|
Go to the documentation of this file.
57 #define ETHER_TYPE_PRP_SUP ( ETHER_TYPE_RED_SUP )
59 #define PRP_RCT_SIZE ( 6 )
60 #define PRP_TRAILER_MAGIC ( 0x88FB )
61 #define PRP_TRAILER_MAGIC_BIG_ENDIAN ( 0xFB88 )
62 #define PRP_LAN_A_MAGIC ( 0xA )
63 #define PRP_LAN_B_MAGIC ( 0xB )
64 #define PRP_RCT_SEQNO_OFFSET ( 0 )
65 #define PRP_RCT_LANID_LSDU_OFFSET ( 2 )
66 #define PRP_RCT_ETHTYPE_OFFSET ( 4 )
68 #define PRP_TLV1_TYPE_DUP_DISCARD ( 20 )
69 #define PRP_TLV1_TYPE_DUP_ACCEPT ( 21 )
71 #define PRP_SUP_SIZE ( RED_SUP_SIZE )
72 #define PRP_SUP_PATH ( RED_SUP_PATH )
73 #define PRP_SUP_VER ( RED_SUP_VER )
74 #define PRP_SUP_PAD ( RED_SUP_PAD )
81 #define PRP_MODE_MASK ( 0x0 )
82 #define EMAC_MODE_MASK ( 0x1 )
83 #define PRP_VS_EMAC_MODE_MASK ( PRP_MODE_MASK )
86 typedef struct _PRP_RCT
96 typedef struct _PRP_SUP_FRAME
126 const uint8_t *pFrame,
uint16_t lan_and_size
Definition: hsrPrp_red_prp.h:90
Definition: hsrPrp_red_common.h:107
#define ETHER_ADDR_LEN
Definition: hsrPrp_red_common.h:83
void PrpSupFrameUpdateSeqNr(hsrPrpHandle *hsrPrphandle, RED_FRAME *pRedFrame)
uint16_t type
Definition: tisci_rm_core.h:1
Definition: hsrPrp_red_common.h:117
TLV2_TAG tlv2_tag
Definition: hsrPrp_red_prp.h:103
#define PRP_SUP_PAD
Definition: hsrPrp_red_prp.h:74
void PrpFrameUpdateLanId(RED_FRAME *pPrpFrame, uint16_t pathId)
struct hsrPrp_Config_s hsrPrpHandle
Definition: hsrPrp_handle.h:92
RED_FRAME * PrpSupFrameAllocate(hsrPrpHandle *hsrPrphandle)
Allocates a RED_FRAME that holds PRP Supervision frame.
Commonly used Macros, structures and Offsets.
void PrpSupFrameUpdateTlv(RED_FRAME *pRedFrame, uint8_t type)
SUP_TAG sup_tag
Definition: hsrPrp_red_prp.h:101
PRP_RCT prp_rct
Definition: hsrPrp_red_prp.h:106
uint16_t prp_suffix
Definition: hsrPrp_red_prp.h:91
Definition: hsrPrp_red_common.h:127
void PrpFrameFill(hsrPrpHandle *hsrPrphandle, RED_FRAME *pRedFrame, const uint8_t *pFrame, int32_t frameSize)
TLV1_TAG tlv1_tag
Definition: hsrPrp_red_prp.h:102
void PrpSupFrameIncrementSeqNr(hsrPrpHandle *hsrPrphandle)
uint16_t seq_nr
Definition: hsrPrp_red_prp.h:89
TLV0_TAG tlv0_tag
Definition: hsrPrp_red_prp.h:104
Definition: hsrPrp_red_common.h:137
Definition: hsrPrp_red_prp.h:87
void PrpSupFrameUpdateSrcAdd(RED_FRAME *pRedFrame, uint8_t *srcAdd)
Updates Source Address of a PRP Supervision frame.
Definition: hsrPrp_red_common.h:146
void PrpSupFrameUpdateLanId(RED_FRAME *pRedFrame, uint16_t lanId)
Updates LAN ID of a PRP Supervision frame.
Definition: hsrPrp_red_prp.h:97