|
AM64x MCU+ SDK
08.02.00
|
|
Go to the documentation of this file.
51 #define ETHER_TYPE_HSR ( 0x892F )
52 #define ETHER_TYPE_HSR_SUP ( ETHER_TYPE_RED_SUP )
54 #define HSR_TAG_SIZE ( 6 )
55 #define HSR_TAG_PATHID_OFFSET ( 2 )
56 #define HSR_LAN_A_MAGIC ( 0x00 )
57 #define HSR_LAN_B_MAGIC ( 0x01 )
59 #define HSR_TLV1_TYPE ( 23 )
61 #define HSR_SUP_SIZE ( RED_SUP_SIZE )
62 #define HSR_SUP_PATH ( RED_SUP_PATH )
63 #define HSR_SUP_VER ( RED_SUP_VER )
64 #define HSR_SUP_PAD ( RED_SUP_PAD )
67 typedef struct _HSR_TAG
77 typedef struct _HSR_SUP_FRAME
107 const uint8_t *pFrame,
void HsrSupFrameUpdateSrcAdd(RED_FRAME *pRedFrame, uint8_t *srcAdd)
Updates Source Address of a HSR Supervision frame.
RED_FRAME * HsrSupFrameAllocate(hsrPrpHandle *)
Allocates a RED_FRAME that holds HSR Supervision frame.
Definition: hsrPrp_red_common.h:101
Definition: hsrPrp_red_hsr.h:68
#define ETHER_ADDR_LEN
Definition: hsrPrp_red_common.h:77
Definition: hsrPrp_red_common.h:111
#define HSR_SUP_PAD
Definition: hsrPrp_red_hsr.h:64
struct hsrPrp_Config_s hsrPrpHandle
Definition: hsrPrp_handle.h:86
TLV2_TAG tlv2_tag
Definition: hsrPrp_red_hsr.h:85
uint16_t seq_nr
Definition: hsrPrp_red_hsr.h:72
Definition: hsrPrp_red_hsr.h:78
HSR_TAG hsr_tag
Definition: hsrPrp_red_hsr.h:82
Commonly used Macros, structures and Offsets.
void HsrFrameFill(hsrPrpHandle *, RED_FRAME *pRedFrame, const uint8_t *pFrame, int32_t frameSize)
void HsrSupFrameUpdatePathId(RED_FRAME *pRedFrame, uint16_t pathId)
Definition: hsrPrp_red_common.h:121
uint16_t ether_type
Definition: hsrPrp_red_hsr.h:70
Include file for hsrPrp_red_hsr.c.
TLV0_TAG tlv0_tag
Definition: hsrPrp_red_hsr.h:86
void HsrFrameUpdatePathId(RED_FRAME *pRedFrame, uint16_t pathId)
Updates PATH ID of a RED_FRAME.
Definition: hsrPrp_red_common.h:131
void HsrSupFrameUpdateSeqNr(hsrPrpHandle *, RED_FRAME *pRedFrame)
Definition: hsrPrp_red_common.h:140
void HsrSupFrameIncrementSeqNr(hsrPrpHandle *)
SUP_TAG sup_tag
Definition: hsrPrp_red_hsr.h:83
uint16_t path_and_size
Definition: hsrPrp_red_hsr.h:71
TLV1_TAG tlv1_tag
Definition: hsrPrp_red_hsr.h:84