|
AM243x MCU+ SDK
08.02.00
|
|
Go to the documentation of this file.
74 #define ERR_STATION_NAME_LENGTH -1
80 #define ERR_FIRMWARE_VERSION_BAD -2
86 #define ERR_FIRMWARE_LOAD_FAIL -3
92 #define ERR_DRIVER_INIT_FAIL -4
94 #define PRU_IEP_CMP_CFG_EN_SOG_EVENTS 0x000001cf
100 #define NO_RCV_NO_FWD 0
158 #ifdef WATCHDOG_SUPPORT
163 #define watchDogExpireDuration 100
202 uint32_t *version_build, uint32_t *version_release_type);
213 uint32_t *firmware_release_2,
214 uint32_t *firmware_feature_mask);
231 const uint8_t *dcpNameOfStation,
232 uint8_t lengthOfStationName);
291 int32_t profileNumberRx, int32_t profileNumberTx);
352 int32_t portNumber, int32_t profileNumber, int32_t rxSoGValue,
377 uint16_t validLowerFrameId, uint16_t validUpperFrameId);
425 uint8_t portNumber, uint8_t table);
429 #ifdef WATCHDOG_SUPPORT
463 const uint32_t *staticTable,
464 uint8_t staticTableLength,
465 uint8_t staticTableType,
int32_t PN_mapPhaseToProfile(PRUICSS_HwAttrs const *pruicssHwAttrs, int32_t portNumber, int32_t phaseNumber, int32_t profileNumberRx, int32_t profileNumberTx)
API to map a Phase to start of green Profile.
void PN_cpmIsrHandler(void *arg)
Profinet CPM ISR handler.
struct PN_Config_s * PN_Handle
Alias for Profinet Handle containing base addresses and modules.
Definition: PN_Handle.h:96
int32_t PN_setDcpFilterStationName(PRUICSS_HwAttrs const *pruicssHwAttrs, const uint8_t *dcpNameOfStation, uint8_t lengthOfStationName)
API to configure the station name and length of station name of device for filtering DCP Identify req...
int32_t PN_setWatchDogTimer(PN_Handle pnHandle, int32_t timerPeriod)
API to configure the ICSS watchdog expiry duration.
int32_t PN_setStaticFilterTable(PRUICSS_HwAttrs const *pruicssHwAttrs, const uint8_t *macAddr, uint8_t ctrl, uint8_t portNumber, uint8_t table)
API to enable/disable the reception & forward for a Multicast address in port multicast filter tables...
void PN_ppmIsrHandler(void *arg)
Profinet PPM ISR handler.
void PN_PTCP_isrHandler(void *arg)
Profinet PTCP ISR handler.
PRUICSS Hardware Attributes.
Definition: pruicss/g_v0/pruicss.h:334
void PN_getFirmwareVersion(uint32_t *version_major, uint32_t *version_minor, uint32_t *version_build, uint32_t *version_release_type)
Get the details on version of firmware.
void PN_setCompensationValue(PRUICSS_HwAttrs const *pruicssHwAttrs, uint16_t compensationValue)
API to configure the compensation value which is used while computing the forward FSO for a RTC3 fram...
int32_t PN_setYellowPeriod(PRUICSS_HwAttrs const *pruicssHwAttrs, int32_t yellowPeriodTime)
API to configure the yellow period.
int32_t PN_initDrv(PN_Handle pnHandle)
Initializes the Profinet Driver.
int32_t PN_loadStaticTable(PRUICSS_HwAttrs const *pruicssHwAttrs, const uint32_t *staticTable, uint8_t staticTableLength, uint8_t staticTableType, uint8_t portNumber)
PN_loadStaticTable API to load multicast static table to ICSS memory.
void PN_getFirmwareReleaseInfoAndFeatures(uint32_t *firmware_release_1, uint32_t *firmware_release_2, uint32_t *firmware_feature_mask)
Get the details on release information and features of firmware.
int32_t PN_setMaxLineRxDelay(PRUICSS_HwAttrs const *pruicssHwAttrs, uint8_t portNumber, int32_t maxLineRxDelayValue)
API to configure the maximum line receive delay.
int32_t PN_setRedGuard(PRUICSS_HwAttrs const *pruicssHwAttrs, uint16_t validLowerFrameId, uint16_t validUpperFrameId)
API to set the Red Guard for the device.
int32_t PN_MRP_setPortState(PRUICSS_HwAttrs const *pruicssHwAttrs, uint8_t portNumber, uint8_t pState)
API to set the MRP state for a port.
int32_t PN_setMaxBridgeDelay(PRUICSS_HwAttrs const *pruicssHwAttrs, int32_t maxBridgeDelayValue)
API to configure the maximum bridge delay. This value comes from the GSD file.
int32_t PN_MRP_getPortState(PRUICSS_HwAttrs const *pruicssHwAttrs, uint8_t portNumber, uint8_t *pState)
Returns the MRP state of a port.
int32_t PN_setProfile(PRUICSS_HwAttrs const *pruicssHwAttrs, int32_t portNumber, int32_t profileNumber, int32_t rxSoGValue, int32_t txSoGValue)
API to configure a Profile. In a profile the start of green time in a cycle for Receive (Rx) and Tran...
int32_t PN_setRtc3PortStatus(PRUICSS_HwAttrs const *pruicssHwAttrs, uint8_t portNumber, uint8_t status)
API to set the RTClass3 port status of a port.
void PN_dhtIsrHandler(void *arg)
Profinet DHT ISR handler.