#include "master.h"
#include "common.h"
#include "flexptp_options.h"
#include "format_utils.h"
#include "msg_utils.h"
#include "ptp_core.h"
#include "ptp_defs.h"
#include "ptp_profile_presets.h"
#include "ptp_sync_cycle_data.h"
#include "ptp_types.h"
#include "task_ptp.h"
#include "timeutils.h"
#include "tlv.h"
#include <string.h>
Go to the source code of this file.
◆ MAX
#define MAX |
( |
|
a, |
|
|
|
b |
|
) |
| (((a) > (b)) ? (a) : (b)) |
◆ MIN
#define MIN |
( |
|
a, |
|
|
|
b |
|
) |
| (((a) < (b)) ? (a) : (b)) |
◆ PTP_MASTER_P2P_SLAVE_STATE_LOG
◆ ptp_init_announce_header()
static void ptp_init_announce_header |
( |
| ) |
|
|
static |
◆ ptp_init_follow_up_message()
static void ptp_init_follow_up_message |
( |
| ) |
|
|
static |
◆ ptp_init_sync_header()
static void ptp_init_sync_header |
( |
| ) |
|
|
static |
◆ ptp_master_commence_mpd_computation()
static void ptp_master_commence_mpd_computation |
( |
| ) |
|
|
static |
◆ ptp_master_destroy()
void ptp_master_destroy |
( |
| ) |
|
Destroy th eMaster module.
Definition at line 369 of file master.c.
◆ ptp_master_disable()
void ptp_master_disable |
( |
| ) |
|
Disable the master module.
Definition at line 417 of file master.c.
◆ ptp_master_enable()
void ptp_master_enable |
( |
| ) |
|
Enable the master module.
Definition at line 393 of file master.c.
◆ ptp_master_init()
Initialize the Master module.
Definition at line 364 of file master.c.
◆ ptp_master_p2p_slave_reported()
static void ptp_master_p2p_slave_reported |
( |
uint64_t |
slClockId | ) |
|
|
static |
Function to track what's going on with the slave.
- Parameters
-
slClockId | clock ID of the slave that responded to our PDelay_Req message |
Definition at line 230 of file master.c.
◆ ptp_master_process_message()
Process a message by the master module.
- Parameters
-
pRawMsg | Pointer to the raw PTP message. |
pHeader | Pointer to the extracted PTP message header. |
Definition at line 304 of file master.c.
◆ ptp_master_reset()
void ptp_master_reset |
( |
| ) |
|
Reset the Master module.
Definition at line 373 of file master.c.
◆ ptp_master_tick()
Pass ticks to the Master module.
Definition at line 421 of file master.c.
◆ ptp_send_announce_message()
static void ptp_send_announce_message |
( |
| ) |
|
|
static |
◆ ptp_send_delay_resp_message()
◆ ptp_send_follow_up()
◆ ptp_send_sync_message()
static void ptp_send_sync_message |
( |
| ) |
|
|
static |
◆ announce
◆ announceHeader
◆ followUp
◆ P2P_SLAVE_STATE_HINTS
char* P2P_SLAVE_STATE_HINTS[] |
|
static |
Initial value:= {
"NONE",
"CANDIDATE",
"ESTABLISHED"}
Definition at line 217 of file master.c.
◆ sync
◆ syncHeader
◆ tlvChain