![Logo](ti_logo.svg) |
AM243x INDUSTRIAL COMMUNICATIONS SDK
09.02.00
|
|
Go to the documentation of this file.
73 #define PTCP_TASK_PRIORITY 26
74 #define SYNC_MONITOR_TASK_PRIORITY 23
75 #define LEGACY_MODE_TASK_PRIOROTY 3
76 #define MRP_TASK_PRIORITY 23
77 #define WATCHDOG_TASK_PRIORITY 11
267 const uint8_t *srcAddress, int32_t portNumber, int32_t queuePriority,
268 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:182
struct PN_Config_s * PN_Handle
Alias for Profinet Handle containing base addresses and modules.
Definition: PN_Handle.h:102
int32_t PN_RTC_setupIsr(PN_Handle pnHandle)
Interrupt management function Initializes PPM/CPM/DHT interrupts. (OS dependent!)
@ MRPCHECK
Definition: iPnOs.h:181
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:178
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:541
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:177
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:179
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:184
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:180
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.