|
AM243x INDUSTRIAL COMMUNICATIONS SDK
09.02.00
|
|
Go to the documentation of this file.
54 #include <drivers/pruicss.h>
94 typedef struct ptcpTimes
111 uint8_t subdomainUUID[16];
216 uint32_t *outRxDelay, uint32_t *outTxDelay);
227 uint32_t *outRxDelay, uint32_t *outTxDelay);
265 uint32_t syncTimeoutFactor);
276 uint32_t takeoverTimeoutFactor);
uint32_t cableDelay
Definition: iPtcpDrv.h:100
uint16_t Status
Definition: iPtcpDrv.h:120
@ disable
Definition: iPtcpDrv.h:68
struct PN_Config_s * PN_Handle
Alias for Profinet Handle containing base addresses and modules.
Definition: PN_Handle.h:102
uint32_t IEP_count_tL_R
Definition: iPtcpDrv.h:137
uint32_t TorgSec
Definition: iPtcpDrv.h:132
void PN_PTCP_getSyncMasterAddress(PN_Handle pnHandle, uint8_t *addr)
Get the sync Master address (MAC)
void PN_PTCP_configureSyncFwd(PRUICSS_HwAttrs const *pruicssHwAttrs, ptcpPortStatus_t state)
Controls(enable/disable) the sync forwarding; by default it is enabled.
@ TAKEOVER_TIMEOUT
Definition: iPtcpDrv.h:81
uint32_t rxDelayLocal
Definition: iPtcpDrv.h:96
@ SYNC_TIMEOUT
Definition: iPtcpDrv.h:82
Structure containing the port delay values of the local and remote.
Definition: iPtcpDrv.h:95
void PN_PTCP_getDelayValues(PN_Handle pnHandle, ptcpPortDelayVal_t *portDelays, uint8_t portNum)
Returns the current cable delay related values.
uint32_t rxDelayRemote
Definition: iPtcpDrv.h:98
uint32_t Nanoseconds
Definition: iPtcpDrv.h:123
void PN_PTCP_registerDelayUpdateCall(PN_Handle pnHandle, ptcpCallBack_t callBack)
Registers the callback function for getting notifications about new cable delay measurement.
@ IN_SYNC
Definition: iPtcpDrv.h:80
void(* ptcpSyncCallBack_t)(void *arg1)
Definition: iPtcpDrv.h:160
uint32_t SecondsLow
Definition: iPtcpDrv.h:122
uint64_t tick_S
Definition: iPtcpDrv.h:141
syncState_t syncState
Definition: iPtcpDrv.h:109
void PN_PTCP_getRemoteDelayValues(PN_Handle pnHandle, uint8_t portNum, uint32_t *outRxDelay, uint32_t *outTxDelay)
Get the remote port delay values.
void PN_PTCP_setTakeoverTimeoutFactor(PN_Handle pnHandle, uint32_t takeoverTimeoutFactor)
Sets the takeover timeout factor.
void PN_PTCP_setSyncUUID(PN_Handle pnHandle, uint8_t *subdomainUUID)
Sets the sync UUID for the device. Application is also notified about the current sync status....
void PN_PTCP_registerSyncStatusCall(PN_Handle pnHandle, ptcpCallBack_t callBack)
Registers the callback function for getting notifications about change in sync state.
void PN_PTCP_setSyncTimeoutFactor(PN_Handle pnHandle, uint32_t syncTimeoutFactor)
Sets the Sync timeout factor.
uint64_t tick_L
Definition: iPtcpDrv.h:142
Definition: iPtcpDrv.h:131
uint32_t IEP_count_fn
Definition: iPtcpDrv.h:139
void PN_PTCP_registerSyncMonitorCall(PN_Handle pnHandle, ptcpSyncCallBack_t callBack)
Registers the callback function for custom sync timeout monitor typedef void (ptcpSyncCallBack_t)(voi...
uint32_t TDelay
Definition: iPtcpDrv.h:134
Definition: iPtcpDrv.h:119
uint16_t SecondsHigh
Definition: iPtcpDrv.h:121
uint64_t tick_fn
Definition: iPtcpDrv.h:143
void PN_PTCP_getSyncInfo(PN_Handle pnHandle, ptcpSyncInfo_t *syncInfo)
Returns current sync status and other sync related info.
void PN_PTCP_configureDelayResp(PRUICSS_HwAttrs const *pruicssHwAttrs, uint8_t portNum, ptcpPortStatus_t state)
uint32_t txDelayRemote
Definition: iPtcpDrv.h:99
uint32_t txDelayLocal
Definition: iPtcpDrv.h:97
@ OUT_OF_SYNC
Definition: iPtcpDrv.h:79
uint32_t IEP_count_tL_F
Definition: iPtcpDrv.h:138
void PN_PTCP_latchInit(PN_Handle pnHandle)
uint32_t TorgNsec
Definition: iPtcpDrv.h:133
Structure containing current sync info.
Definition: iPtcpDrv.h:108
syncState_t
Enum for the various sync states.
Definition: iPtcpDrv.h:78
void PN_PTCP_setPllWindow(PN_Handle pnHandle, uint32_t pllWindowSize)
Sets the PLL window for sync handling.
@ SYNC_RESET
Definition: iPtcpDrv.h:83
int32_t PN_PTCP_getAbsoluteTime(PN_Handle pnHandle, PNIO_TimeStamp *p_PNIO_TimeStamp, int32_t LatchEn)
API to return absolute PTCP time.
void PN_PTCP_configureDelayMeasurement(PN_Handle pnHandle, uint8_t portNum, ptcpPortStatus_t state)
Controls(enable/disable) the delay measurement process on a particular port. By default,...
uint32_t IEP_count_tS
Definition: iPtcpDrv.h:136
void PN_PTCP_getLocalDelayValues(PN_Handle pnHandle, uint8_t portNum, uint32_t *outRxDelay, uint32_t *outTxDelay)
Get the local port delay values.
ptcpPortStatus_t
Enum for enable/disable states.
Definition: iPtcpDrv.h:67
void(* ptcpCallBack_t)(uint32_t arg, uint32_t arg2)
Definition: iPtcpDrv.h:158
@ enable
Definition: iPtcpDrv.h:69