AM64x INDUSTRIAL COMMUNICATIONS SDK  2026.00.00

Introduction

Profinet Device FWHAL(Firmware and Hardware Abstraction Layer) APIs implement the key interface between Profinet firmware and slave stack.

Sub Modules

 CPM/PPM Management APIs
 
 DCP Filter APIs
 
 Isochronous Mode APIs
 
 Legacy Startup APIs
 
 MRP APIs
 
 Multicast Filter Table APIs
 
 PROFINET Callback APIs
 
 PROFINET Error Macros
 
 PTCP APIs
 
 Phase Management APIs
 
 Triple buffer management APIs
 
 VLAN Filter APIs
 
 Watchdog timer APIs
 

Functions

int32_t PN_portFwdCtrl (PN_Handle pnHandle, uint8_t portNo, uint8_t portFwdState)
 API to configure port forwarding state. More...
 
void PN_clearPruIRQ (PRUICSS_HwAttrs const *pruicssHwAttrs, uint8_t irq_num)
 
int32_t PN_setBaseClock (PN_Handle pnHandle, uint16_t factor)
 Sets Profinet base clock in multiples of 31.25us. More...
 

Function Documentation

◆ PN_portFwdCtrl()

int32_t PN_portFwdCtrl ( PN_Handle  pnHandle,
uint8_t  portNo,
uint8_t  portFwdState 
)

API to configure port forwarding state.

The Port Forward configuration provides an option to enable or disable frame forwarding between ethernet ports.

Parameters
pnHandle[in] PN handle
portNo[in] Port number (ICSS_EMAC_PORT_1 or ICSS_EMAC_PORT_2)
portFwdState[in] Port forwarding state.
  • Enable Forwarding: ICSS_EMAC_IOCTL_PORT_FWD_CTRL_ENABLE_CMD (0x00)
  • Disable Forwarding: ICSS_EMAC_IOCTL_PORT_FWD_CTRL_DISABLE_CMD (0x01)
Return values
0- On success <0 - On failure

◆ PN_clearPruIRQ()

void PN_clearPruIRQ ( PRUICSS_HwAttrs const *  pruicssHwAttrs,
uint8_t  irq_num 
)

◆ PN_setBaseClock()

int32_t PN_setBaseClock ( PN_Handle  pnHandle,
uint16_t  factor 
)

Sets Profinet base clock in multiples of 31.25us.

Parameters
[in]pnHandleProfinet Handle
factorClock send factor: min value 8, max value 128
Return values
Slotnumber (>=0)
<0if failure