AM64x MCU+ SDK  08.03.00
hsrPrp_red_config.h
Go to the documentation of this file.
1 
38 #ifndef RED_CONFIG_H_
39 #define RED_CONFIG_H_
40 
41 #ifdef __cplusplus
42 extern "C"
43 {
44 #endif
45 
46 
47 /* ========================================================================== */
48 /* Include Files */
49 /* ========================================================================== */
50 
51 #include "hsrPrp_red_hsr.h"
52 
53 /* ========================================================================== */
54 /* Macros & Typedefs */
55 /* ========================================================================== */
56 
58 typedef struct _RED_Config
59 {
60 
61  uint32_t nodeTableSize;
65  uint32_t nodeForgetTime;
74  uint32_t nodeTableCounter;
75  uint32_t clearNodeTable;
76  uint32_t supAddressHi;
77  uint32_t supAddressLow;
80 } RED_CONFIG;
81 
82 /* ========================================================================== */
83 /* Function Declarations */
84 /* ========================================================================== */
95  PRUICSS_Handle pruicssHandle);
104 void RedInit(PRUICSS_Handle pruicssHandle);
105 
115 uint8_t RedLoadFirmware(PRUICSS_Handle pruicssHandle);
116 
117 
118 #ifdef __cplusplus
119 }
120 #endif
121 
122 #endif /* RED_CONFIG_H_ */
RED_CONFIG::nodeTableArbitration
uint32_t nodeTableArbitration
Definition: hsrPrp_red_config.h:62
RED_CONFIG::duplicatePortTableSize
uint32_t duplicatePortTableSize
Definition: hsrPrp_red_config.h:64
RED_CONFIG::duplicatePort1Counter
uint32_t duplicatePort1Counter
Definition: hsrPrp_red_config.h:72
RED_CONFIG::clearNodeTable
uint32_t clearNodeTable
Definition: hsrPrp_red_config.h:75
RedGetConfiguration
RED_STATUS RedGetConfiguration(RED_CONFIG *pCfg, PRUICSS_Handle pruicssHandle)
Reads the configuration from DMEM.
RED_CONFIG::nodeForgetTime
uint32_t nodeForgetTime
Definition: hsrPrp_red_config.h:65
RED_CONFIG::hostDuplicateArbitration
uint32_t hostDuplicateArbitration
Definition: hsrPrp_red_config.h:78
RED_CONFIG::duplicatePortCheckInterval
uint32_t duplicatePortCheckInterval
Definition: hsrPrp_red_config.h:68
RED_CONFIG::duplicateForgetTime
uint32_t duplicateForgetTime
Definition: hsrPrp_red_config.h:66
RED_CONFIG::duplicateHostTableSize
uint32_t duplicateHostTableSize
Definition: hsrPrp_red_config.h:63
RED_CONFIG::nodeTableCheckInterval
uint32_t nodeTableCheckInterval
Definition: hsrPrp_red_config.h:70
RED_CONFIG::supAddressHi
uint32_t supAddressHi
Definition: hsrPrp_red_config.h:76
RED_STATUS
RED_STATUS
RED Status.
Definition: hsrPrp_red_common.h:530
RED_CONFIG::supAddressLow
uint32_t supAddressLow
Definition: hsrPrp_red_config.h:77
RED_CONFIG::duplicateHostCheckInterval
uint32_t duplicateHostCheckInterval
Definition: hsrPrp_red_config.h:69
RedInit
void RedInit(PRUICSS_Handle pruicssHandle)
Initialises DMEM with default configuration values.
RED_CONFIG::duplicateHostCounter
uint32_t duplicateHostCounter
Definition: hsrPrp_red_config.h:73
RED_CONFIG::brokenPathDifference
uint32_t brokenPathDifference
Definition: hsrPrp_red_config.h:67
hsrPrp_red_hsr.h
Include file for hsrPrp_red_hsr.c.
RedLoadFirmware
uint8_t RedLoadFirmware(PRUICSS_Handle pruicssHandle)
Loads firmware.
RED_CONFIG
Definition: hsrPrp_red_config.h:59
RED_CONFIG::nodeTableSize
uint32_t nodeTableSize
Definition: hsrPrp_red_config.h:61
PRUICSS_Handle
struct PRUICSS_Config_s * PRUICSS_Handle
A handle that is returned from a PRUICSS_open() call. This handle is required for calling other APIs.
Definition: pruicss/g_v0/pruicss.h:234
RED_CONFIG::duplicatePort0Counter
uint32_t duplicatePort0Counter
Definition: hsrPrp_red_config.h:71
RED_CONFIG::nodeTableCounter
uint32_t nodeTableCounter
Definition: hsrPrp_red_config.h:74