 |
AM263Px INDUSTRIAL COMMUNICATIONS SDK
2026.00.00
|
|
Go to the documentation of this file.
77 #include <networking/icss_emac/source/icss_emac_stormControl.h>
78 #include <networking/icss_emac/source/icss_emac_local.h>
84 #define PTCP_TASK_PRIORITY 26
85 #define SYNC_MONITOR_TASK_PRIORITY 11
86 #define LEGACY_MODE_TASK_PRIOROTY 3
87 #define MRP_TASK_PRIORITY 23
88 #define BACKGROUND_TASK_PRIORITY 11
89 #define MRPD_TASK_PRIORITY 22
98 #define PN_OS_API_SUCCESS 0
101 #define PN_ERR_INIT_PTCP_TASK (-1)
102 #define PN_ERR_INIT_SYNC_MONITOR (-2)
103 #define PN_ERR_INIT_LEGACY_MODE (-3)
104 #define PN_ERR_INIT_MRP_TASK (-4)
105 #define PN_ERR_INIT_BACKGROUND_TASK (-5)
106 #define PN_ERR_INIT_MRPD_TASK (-6)
108 #define PN_ERR_PKT_TYPE_NOT_PPM (-7)
109 #define PN_ERR_PKT_TYPE_NOT_CPM (-8)
111 #define PN_ERR_INVALID_BUFF_INDEX (-9)
304 const uint8_t *srcAddress, int32_t portNumber, int32_t queuePriority,
305 int32_t lengthOfPacket);
int32_t PN_nextCpmRdy(PN_Handle pnHandle, t_rtcPacket *pkt)
Swap CPM NEXT with LAST and set validLast flag.
@ MRPEXIT
Definition: iPnOs.h:219
struct PN_Config_s * PN_Handle
Alias for Profinet Handle containing base addresses and modules.
Definition: PN_Handle.h:98
int32_t PN_RTC_setupIsr(PN_Handle pnHandle)
Interrupt management function Initializes PPM/CPM/DHT interrupts. (OS dependent!)
@ MRPCHECK
Definition: iPnOs.h:218
uint8_t * PN_getPpmBuff(t_rtcPacket *pkt)
Return a pointer to buffer indicated by NEXT This will be the next available free buffer(in the trip...
@ MRPREADY
Definition: iPnOs.h:215
void PN_setLegState(void *arg, void *arg2)
Sets the state of legacy state machine This API is registered as a callback in PN_registerSetState.
tLegStates
possible states for legacy suppport state machine
Definition: iRtcDrv2.h:613
int32_t PN_RTC_disableISR(PN_Handle pnHandle)
Disables the PN interrupts.
int32_t PN_checkLastPPM(PN_Handle pnHandle, t_rtcPacket *pkt)
Update proc pointer in paket object and udpate descriptor if there is a new last buffer.
tMrpStates
Definition: iPnOs.h:214
uint8_t * PN_getLastCpm(PN_Handle pnHandle, t_rtcPacket *pkt)
Swap CPM LAST with PROC if validLast is true, clear validLast flag.
int32_t PN_RTC_enableISR(PN_Handle pnHandle)
Enables the PN interrupts.
@ MRPENTER
Definition: iPnOs.h:216
void PN_setLegPkt(void *arg, void *arg2)
Sets the Ethernet packet to output during legacy startup Usually a copy of RTC3 PPM....
real-time packet structure
Definition: iRtcDrv2.h:239
int32_t PN_initOs(PN_Handle pnHandle)
Initialization function for all PN driver tasks, mutexes.
tLegStates PN_getLegState(void)
Returns the IRT Legacy mode state.
int32_t PN_OS_txPacket(PN_Handle pnHandle, const uint8_t *srcAddress, int32_t portNumber, int32_t queuePriority, int32_t lengthOfPacket)
Switch driver extension of TxPacket.
@ MRPWAIT
Definition: iPnOs.h:217
uint8_t * PN_relPpmBuff(PN_Handle pnHandle, t_rtcPacket *pkt)
Swap NEXT with LAST and return new NEXT address .
uint32_t PN_enterFlushMode(PN_Handle pnHandle)
Used to signal topology change to MRP state machine.