|
AM243x INDUSTRIAL COMMUNICATIONS SDK
09.00.00
|
|
Go to the documentation of this file.
53 #define INTERFACE_MAC 0
108 uint8_t portNumber, uint8_t table);
145 int32_t
setRedGuard(uint16_t validLowerFrameId, uint16_t validUpperFrameId);
198 int32_t profileNumberRx, int32_t profileNumberTx);
216 int32_t
setProfile(int32_t portNumber, int32_t profileNumber,
217 int32_t rxSoGValue, int32_t txSoGValue);
229 uint8_t lengthOfStationName);
244 int32_t
TxPacketOS(
const uint8_t *srcAddress, int32_t portNumber,
245 int32_t queuePriority, int32_t lengthOfPacket);
268 int32_t
PN_RxPktGet(uint32_t destAddress, int32_t queueNumber, int32_t *port,
void PN_EmacRegisterPort0ISRCallback(ICSS_EMAC_CallBack callBack, void *userArg)
Legacy API, Used to register Link ISR Callback.
int32_t setDcpFilterStationName(const uint8_t *dcpNameOfStation, uint8_t lengthOfStationName)
Legacy API. Calls PN_setDcpFilterStationName.
void ptcpConfigureSyncFwd(ptcpPortStatus_t state)
Legacy API, calls PN_PTCP_configureSyncFwd.
uint8_t * getLastCpm(t_rtcPacket *pkt)
Legacy API. Calls PN_getLastCpm.
int32_t setProfile(int32_t portNumber, int32_t profileNumber, int32_t rxSoGValue, int32_t txSoGValue)
Legacy API. Calls PN_setProfile In a profile the start of green time in a cycle for Receive (Rx) and ...
int32_t rtcDisableISR()
Legacy API, Used to call PN_RTC_disableISR.
void ptcpGetSyncInfo(ptcpSyncInfo_t *syncInfo)
Legacy API, Used to call PN_PTCP_getSyncInfo.
int32_t setBaseClock(uint16_t factor)
Legacy API, calls PN_setBaseClock.
int32_t allocPkt(t_rtcPacket **pPkt, uint8_t type)
Legacy API, Used to call PN_allocPkt.
int32_t delPmList(t_rtcPacket *pmPkt)
Legacy API. Calls PN_delPmList.
void ptcpRegisterSyncStatusCall(ptcpCallBack_t callBack)
Legacy API, Used to call PN_PTCP_registerSyncStatusCall.
struct PN_Config_s * PN_Handle
Alias for Profinet Handle containing base addresses and modules.
Definition: PN_Handle.h:102
int32_t setRtc3PortStatus(uint8_t portNumber, uint8_t status)
Legacy API, calls PN_setRtc3PortStatus.
void registerStatCall(pnCallBack_t callBack)
Legacy API, Used to call PN_registerStatCall.
int32_t cfgRtcMem(uint8_t ar, uint16_t size)
Legacy API. Calls PN_cfgRtcMem.
int32_t setMaxLineRxDelay(uint8_t portNumber, int32_t maxLineRxDelayValue)
Legacy API. Calls PN_setMaxLineRxDelay.
int32_t mapPhaseToProfile(int32_t portNumber, int32_t phaseNumber, int32_t profileNumberRx, int32_t profileNumberTx)
Legacy API. Calls PN_mapPhaseToProfile.
void ptcpSetPllWindow(uint32_t pllWindowSize)
Legacy API, Used to call PN_PTCP_setPllWindow.
void registerCpmCall(pnCallBack_t callBack)
Legacy API, Used to call PN_registerCpmCall.
int32_t(* ICSS_EMAC_CallBack)(void *arg0, void *arg1, void *arg2)
Definition for a generic callback function used in ICSS-EMAC. While calling this,...
Definition: icss_emac.h:475
int32_t iRtcEnableIsr()
Enables the PN interrupts. Legacy API. Calls PN_RTC_enableISR.
void ptcpRegisterDelayUpdateCall(ptcpCallBack_t callBack)
Legacy API, Used to call PN_PTCP_registerDelayUpdateCall.
int32_t setMaxBridgeDelay(int32_t maxBridgeDelayValue)
Legacy API. Calls PN_setMaxBridgeDelay.
int32_t setYellowPeriod(int32_t yellowPeriodTime)
Legacy API. Calls PN_setYellowPeriod.
void ptcpSetSyncTimeoutFactor(uint32_t syncTimeoutFactor)
Legacy API, Used to call PN_PTCP_registerSyncStatusCall.
int32_t PN_RxPktInfo(int32_t *portNumber, int32_t *queueNumber)
void PN_EmacRegisterProtocolCallback(void *callBackPtr, void *userArg)
Legacy API, Used to register RX Callback.
int32_t clearList(uint8_t list)
void PN_EmacRegisterPort1ISRCallback(ICSS_EMAC_CallBack callBack, void *userArg)
Legacy API, Used to register Link ISR Callback.
void PN_purgeTable(uint8_t portNum)
Legacy API, Used to purgeTable.
real-time packet structure
Definition: iRtcDrv2.h:184
uint8_t * relPpmBuff(t_rtcPacket *pkt)
Legacy API, Used to call PN_relPpmBuff.
uint8_t PN_EmacSocMACAddrGet(PN_Handle pnHandle, uint8_t instance, uint8_t *macId)
Returns the MAC Addr for ports. User can implement this as required.
void ptcpSetSyncUUID(uint8_t *subdomainUUID)
Legacy API, Used to call PN_PTCP_setSyncUUID.
uint8_t PN_findMAC(uint8_t *macId)
Legacy API calls findMAC.
int32_t PN_RxPktGet(uint32_t destAddress, int32_t queueNumber, int32_t *port, int32_t *more)
Structure containing current sync info.
Definition: iPtcpDrv.h:107
int32_t insPpmList(t_rtcPacket *ppmPkt, uint8_t legMode)
Legacy API. Calls PN_insPpmList.
int32_t getMrpPortState(uint8_t portNumber, uint8_t *pState)
Legacy API, Used to call PN_MRP_getPortState.
void(* pnCallBack_t)(void *arg, uint8_t arg2)
Callback function for processing Profinet IRQs.
Definition: iRtcDrv2.h:417
int32_t setRedGuard(uint16_t validLowerFrameId, uint16_t validUpperFrameId)
Legacy API. Calls PN_setRedGuard.
int32_t insCpmList(t_rtcPacket *cpmPkt)
Legacy API. Calls PN_insCpmList.
int32_t setCpmDHT(uint16_t dht, uint8_t pos)
Legacy API. Calls PN_setCpmDHT.
int32_t setMrpPortState(uint8_t portNumber, uint8_t pState)
Legacy API, Used to call PN_MRP_setPortState.
int32_t TxPacketOS(const uint8_t *srcAddress, int32_t portNumber, int32_t queuePriority, int32_t lengthOfPacket)
Legacy API. Calls PN_OS_txPacket.
PN_Handle PN_getPnHandle()
Returns the ICSS EMAC LLD handle. This is used to maintain the old APIs that doesn't use the Handle b...
int32_t setStaticFilterTable(const uint8_t *macAddr, uint8_t ctrl, uint8_t portNumber, uint8_t table)
Legacy API. Calls PN_setStaticFilterTable.
ptcpPortStatus_t
Enum for enable/disable states.
Definition: iPtcpDrv.h:67
void(* ptcpCallBack_t)(uint32_t arg, uint32_t arg2)
Definition: iPtcpDrv.h:157
void PN_setHandle(PN_Handle pnHandle)
Stores the local copy of handle to support legacy APIs.