AM263Px MCU+ SDK: icss_timeSync_init.h File Reference

| AM263Px MCU+ SDK 26.00.00 |

Macros | Functions
icss_timeSync_init.h File Reference

Go to the source code of this file.

## Macros
#define | TS_LEAP_61_INDEX 0
#define | TS_LEAP_59_INDEX 1
#define | TS_UTC_REASONABLE_INDEX 2
#define | TS_PTP_TIMESCALE_INDEX 3
#define | TS_TIME_TRACEABLE_INDEX 4
#define | TS_FREQ_TRACEABLE_INDEX 5
#define | TS_ALTERNATE_MASTER_INDEX 6
#define | TS_PTP_TWO_STEP_INDEX 7
#define | TS_PTP_UNICAST 8
#define | TS_PROFILE_SPECIFIC_1_INDEX 9
#define | TS_PROFILE_SPECIFIC_2_INDEX 10
#define | TS_PTP_SECURITY_INDEX 11
#define | TS_SYNC_BYTE0_MASK 0xFF
#define | TS_ANNOUNCE_BYTE0_MASK 0xFD
#define | TS_FOLLOW_UP_BYTE0_MASK 0xFD
#define | TS_PDELAY_RESP_BYTE0_MASK 0xFE
#define | TS_DELAY_RESP_BYTE0_MASK 0xFD
#define | TS_OTHER_FRAMES_BYTE0_MASK 0xFC
#define | TIMESYNC_PDELAY_BUF_SIZE 68
#define | TIMESYNC_SYNC_BUF_ANNEX_F_SIZE 58
#define | TIMESYNC_FOLLOW_UP_BUF_ANNEX_F_SIZE 63
#define | TIMESYNC_ANNOUNCE_BUF_ANNEX_F_SIZE 78
#define | TIMESYNC_SYNC_BUF_ANNEX_E_SIZE 86
#define | TIMESYNC_FOLLOW_UP_BUF_ANNEX_E_SIZE 86
#define | TIMESYNC_ANNOUNCE_BUF_ANNEX_E_SIZE 106
#define | TIMESYNC_DELAY_REQ_BUF_SIZE 86
#define | TIMESYNC_DEFAULT_PRIO_1 128
#define | TIMESYNC_DEFAULT_PRIO_2 128
#define | TIMESYNC_DEFAULT_CLOCK_ACCURACY 0x31
#define | TIMESYNC_DEFAULT_CLOCK_CLASS 248
#define | TIMESYNC_DEFAULT_CLOCK_VARIANCE 0
#define | TIMESYNC_DEFAULT_STEPS_REMOVED 0
#define | TIMESYNC_UTC_OFFSET 0
#define | TIMESYNC_DEFAULT_TIME_SOURCE 0xa0
#define | TIMESYNC_OFFSET_STABLE_ALGO_THRESHOLD 15

## Functions
int8_t | TimeSync_drvInit (TimeSync_ParamsHandle_t timeSyncHandle)
| Initializes variables and timers & clocks, call once at the beginning. More...
int8_t | TimeSync_alloc_PktBuffer (TimeSync_ParamsHandle_t timeSyncHandle)
| Allocate Rx and Tx buffers for frames like Sync, Announce etc. More...
void | TimeSync_unAlloc_PktBuffer (TimeSync_ParamsHandle_t timeSyncHandle)
| Unallocate Rx and Tx buffers for frames like Sync, Announce etc. More...
void | TimeSync_drvEnable (TimeSync_ParamsHandle_t timeSyncHandle)
| Enable PTP firmware. More...
void | TimeSync_drvDisable (TimeSync_ParamsHandle_t timeSyncHandle)
| Disable PTP firmware. More...
void | TimeSync_dramInit (TimeSync_ParamsHandle_t timeSyncHandle)
| Initialize PTP stored variables in the DRAM. More...
void | TimeSync_setDefaultValue (TimeSync_ParamsHandle_t timeSyncHandle)
| Set Default values for the PTP Object based on clock type. More...
void | TimeSync_formatPTPFrames (TimeSync_ParamsHandle_t timeSyncHandle, uint8_t *ifMacID)
| Prepare PTP frames with fields, mac addresses etc. More...
void | TimeSync_initializeFollowUp (TimeSync_ParamsHandle_t timeSyncHandle)
| Populate MAC ID, clock identity etc in Follow Up frame. Should be called everytime we change to Master from Slave. More...
void | TimeSync_addIP (TimeSync_ParamsHandle_t timeSyncHandle, uint32_t IP)
| Update IP and Modify checksum whenever IP is assigned or changed. More...