|
AM243x MCU+ SDK
08.06.00
|
|
Go to the documentation of this file.
256 const uint8_t *srcAddress, int32_t portNumber, int32_t queuePriority,
257 int32_t lengthOfPacket);
int32_t PN_nextCpmRdy(PN_Handle pnHandle, t_rtcPacket *pkt)
Swap CPM NEXT with LAST and set validLast flag.
struct ICSS_EMAC_Config_s * ICSS_EMAC_Handle
Alias for ICSS EMAC Handle containing base addresses and modules.
Definition: icss_emac.h:449
@ MRPEXIT
Definition: iPnOs.h:171
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:170
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...
int32_t PN_OS_txPacket(ICSS_EMAC_Handle icssEmacHandle, const uint8_t *srcAddress, int32_t portNumber, int32_t queuePriority, int32_t lengthOfPacket)
Switch driver extension of TxPacket.
@ MRPREADY
Definition: iPnOs.h:167
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:166
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:168
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.
@ MRPWAIT
Definition: iPnOs.h:169
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.