Profinet Device FWHAL(Firmware and Hardware Abstraction Layer) APIs implement the key interface between Profinet firmware and slave stack.
◆ 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] | pnHandle | Profinet Handle |
| factor | Clock send factor: min value 8, max value 128 |
- Return values
-
| Slot | number (>=0) |
| <0 | if failure |