#include "ptp_core.h"
#include <math.h>
#include <stdint.h>
#include <string.h>
#include "FreeRTOS.h"
#include "common.h"
#include "event.h"
#include "logging.h"
#include "master.h"
#include "portmacro.h"
#include "slave.h"
#include "timers.h"
#include "bmca.h"
#include "cli_cmds.h"
#include "clock_utils.h"
#include "format_utils.h"
#include "msg_utils.h"
#include "network_stack_driver.h"
#include "ptp_defs.h"
#include "ptp_types.h"
#include "settings_interface.h"
#include "stats.h"
#include "task_ptp.h"
#include "timeutils.h"
#include <flexptp_options.h>
Go to the source code of this file.
|
#define | MIN(a, b) (((a) < (b)) ? (a) : (b)) |
|
◆ MIN
#define MIN |
( |
|
a, |
|
|
|
b |
|
) |
| (((a) < (b)) ? (a) : (b)) |
◆ ptp_common_init()
static void ptp_common_init |
( |
const uint8_t * |
hwa | ) |
|
|
static |
◆ ptp_create_heartbeat_tmr()
static void ptp_create_heartbeat_tmr |
( |
| ) |
|
|
static |
Construct the heartbeat timer.
Definition at line 66 of file ptp_core.c.
◆ ptp_deinit()
Deinitialize flexPTP module.
Definition at line 140 of file ptp_core.c.
◆ ptp_heartbeat_tmr_cb()
static void ptp_heartbeat_tmr_cb |
( |
TimerHandle_t |
timer | ) |
|
|
static |
Heartbeat callback.
- Parameters
-
Definition at line 58 of file ptp_core.c.
◆ ptp_init()
void ptp_init |
( |
const uint8_t * |
hwa | ) |
|
Initialize flexPTP module.
- Parameters
-
hwa | network interface hardware address over which the flexPTP operates |
Definition at line 113 of file ptp_core.c.
◆ ptp_process_event()
Process a core event.
- Parameters
-
event | pointer to an event object |
Definition at line 250 of file ptp_core.c.
◆ ptp_process_packet()
Process a PTP packet.
- Parameters
-
pRawMsg | pointer to raw PTP message |
Definition at line 209 of file ptp_core.c.
◆ ptp_remove_heartbeat_tmr()
static void ptp_remove_heartbeat_tmr |
( |
| ) |
|
|
static |
Remove the heartbeat timer.
Definition at line 77 of file ptp_core.c.
◆ ptp_reset()
◆ ptp_set_sync_callback()
Set callback invoked each synchronization cycle.
- Parameters
-
syncCB | callback function pointer |
Definition at line 278 of file ptp_core.c.
◆ ptp_set_user_event_callback()
Set user event callback.
- Parameters
-
userEventCb | callback function pointer |
Definition at line 282 of file ptp_core.c.
◆ ptp_start_heartbeat_tmr()
static void ptp_start_heartbeat_tmr |
( |
| ) |
|
|
static |
◆ ptp_stop_heartbeat_tmr()
static void ptp_stop_heartbeat_tmr |
( |
| ) |
|
|
static |