|
AM243x INDUSTRIAL COMMUNICATIONS SDK
09.02.00
|
|
Go to the documentation of this file.
80 #define ERR_STATION_NAME_LENGTH -1
86 #define ERR_FIRMWARE_VERSION_BAD -2
92 #define ERR_FIRMWARE_LOAD_FAIL -3
98 #define ERR_DRIVER_INIT_FAIL -4
100 #define PRU_IEP_CMP_CFG_EN_SOG_EVENTS 0x000001cf
106 #define NO_RCV_NO_FWD 0
169 #define fsoCompensation 150
171 #ifdef WATCHDOG_SUPPORT
176 #define watchDogExpireDuration 100
215 uint32_t *version_build, uint32_t *version_release_type);
226 uint32_t *firmware_release_2,
227 uint32_t *firmware_feature_mask);
244 const uint8_t *dcpNameOfStation,
245 uint8_t lengthOfStationName);
304 int32_t profileNumberRx, int32_t profileNumberTx);
322 int32_t
PN_setMaxLineRxDelay(PRUICSS_HwAttrs
const *pruicssHwAttrs, uint8_t portNumber, int32_t maxLineRxDelayValue);
365 int32_t portNumber, int32_t profileNumber, int32_t rxSoGValue,
390 uint16_t validLowerFrameId, uint16_t validUpperFrameId);
438 uint8_t portNumber, uint8_t table);
442 #ifdef WATCHDOG_SUPPORT
476 const uint32_t *staticTable,
477 uint8_t staticTableLength,
478 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:102
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.
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.