|
struct UInteger112 | __attribute__ ((packed, aligned(1))) UInteger112 |
| UInteger112 (802.1AS, 10.3.2 systemIdentity) More...
|
|
int | gptpmasterclock_init (const char *shmem_name) |
| initialize to get gptp clock from gptp2 daemon. if previously initialized, it will simply return 0. More...
|
|
int | gptpmasterclock_close (void) |
| close gptpmasterclcock More...
|
|
int | gptpmasterclock_gm_domainIndex (void) |
| return the domainIndex which is currently used as systeme wide gptp clock. More...
|
|
int | gptpmasterclock_gm_domainNumber (void) |
| return the domainNumber which is currently used as system wide gptp clock. More...
|
|
int64_t | gptpmasterclock_getts64 (void) |
| get 64-bit nsec unit ts of system wide gptp clock More...
|
|
int | gptpmasterclock_wait_until_ts64 (int64_t tts, int64_t vclose, int64_t toofar) |
| Wait until tts comes. More...
|
|
uint64_t | gptpmasterclock_expand_timestamp (uint32_t timestamp) |
| expand 32-bit nsec time to 64 bit with aligning to gptp clock. More...
|
|
int | gptpmasterclock_gmchange_ind (void) |
| get GM change indicator, the number is incremented whenever GM is changed More...
|
|
int | gptpmasterclock_get_max_domains (void) |
| get maximum number of domains More...
|
|
int | gptpmasterclock_get_domain_ts64 (int64_t *ts64, int domainIndex) |
| get a synchronized clock value on specific domain More...
|
|
void | gptpmasterclock_dump_offset (void) |
| print phase offset for all domains More...
|
|
struct gptpipc_notice_data | __attribute__ ((packed)) gptpipc_notice_data_t |
| gptp notice data type More...
|
|
int | send_ipc_request (int ipcfd, int domainNumber, int portIndex, gptp_ipc_command_t cmd) |
| request IPC data More...
|
|
int | gptpipc_init (gptpipc_thread_data_t *ipctd, int wait_toutsec) |
| run gptp2d ipc thread More...
|
|
int | gptpipc_close (gptpipc_thread_data_t *ipctd) |
| close IPC thread. More...
|
|
|
enum | TimeSource {
ATOMIC_CLOCK = 0x10,
GPS = 0x20,
TERRESTRIAL_RADIO = 0x30,
PTP = 0x40,
NTP = 0x50,
HAND_SET = 0x60,
OTHER = 0x90,
INTERNAL_OSCILLATOR = 0xA0
} |
| the type of source of time used by a ClockMaster(802.1AS, 8.6.2.7 timeSource) More...
|
|
enum | PTPPortState { DisabledPort = 3,
MasterPort = 6,
PassivePort = 7,
SlavePort = 9
} |
| value of the port state (802.1AS 14.8.3 portState) More...
|
|
enum | gptp_ipc_command_t {
GPTPIPC_CMD_NOP =0,
GPTPIPC_CMD_REQ_NDPORT_INFO,
GPTPIPC_CMD_REQ_GPORT_INFO,
GPTPIPC_CMD_REQ_CLOCK_INFO,
GPTPIPC_CMD_ACTIVE_DOMAINT_SWITCH,
GPTPIPC_CMD_RUN_EXT_SCRIPT,
GPTPIPC_CMD_TSN_SCHEDULE_CONTROL,
GPTPIPC_CMD_REQ_STAT_INFO,
GPTPIPC_CMD_REQ_STAT_INFO_RESET,
GPTPIPC_CMD_REG_ABNORMAL_EVENT,
GPTPIPC_CMD_DISCONNECT
} |
| command for gptp ipc. More...
|
|
enum | gptpipc_event_t {
GPTPIPC_EVENT_CLOCK_NETDEV_DOWN = 0,
GPTPIPC_EVENT_CLOCK_NETDEV_UP,
GPTPIPC_EVENT_CLOCK_PHASE_UPDATE,
GPTPIPC_EVENT_CLOCK_FREQ_UPDATE,
GPTPIPC_EVENT_CLOCK_GM_SYNCED,
GPTPIPC_EVENT_CLOCK_GM_UNSYNCED,
GPTPIPC_EVENT_CLOCK_GM_CHANGE,
GPTPIPC_EVENT_PORT_AS_CAPABLE_DOWN,
GPTPIPC_EVENT_PORT_AS_CAPABLE_UP,
GPTPIPC_EVENT_CLOCK_ACTIVE_DOMAIN,
GPTPIPC_EVENT_CLOCK_TIMELEAP_FUTURE,
GPTPIPC_EVENT_CLOCK_TIMELEAP_PAST
} |
| Enumeration for GPTP IPC events. More...
|
|
enum | gptpd_data_type_t {
GPTPIPC_GPTPD_NOTICE = 0,
GPTPIPC_GPTPD_NDPORTD,
GPTPIPC_GPTPD_GPORTD,
GPTPIPC_GPTPD_CLOCKD,
GPTPIPC_GPTPD_STATSD,
GPTPIPC_GPTPD_STATTD
} |
| data from gptp2d to connected clients More...
|
|
gptp notice data type
data type to be used in IPC.
gptp clock data.
grand master port data. this structure formed with following details:
to retreive netlink status. this structure has nlstatus type of gptpipc_data_netlinnk_t. for more details read
gptp ipc client request data. this structure formed with following details:
gptp ipc client request, register/deregister abnormal event.
- subcmd -> 0: register, 1:deregister
- msgtype -> use the same number as PTPMsgType, -1 means all types for deregister subcmd
- eventtype -> use the same number as md_abn_event_type
- eventrate -> rate of event happening, 0.0 to 1.0
- repeat -> repeat times of the event
- interval -> interval times whtn it has repeat number
- eventpara -> integer parameter for the event
- cmd -> it is used for give command to IPC.
- domainNumber -> integer used for domain number.
- domainIndex -> integer used for domain index.
- portNumber -> integer used for port index.
- See also
- gptp_ipc_command_t
-
gptpipc_data_netlink_t
- domainNumber -> used to hold domain number of clock.
- portIndex -> integer used to hold port index of clock.
- asCapable -> this port in tis time-awaer system can interoperate to the other end of port via the IEEE 802.1AS protocol.
- portOper -> True if the port is up and able to send and receive messages.
- gmClockId -> If gmPresent is TRUE, gmClockId is the ClockIdentity of the current grandmaster. If gmPresent is FALSE, the value of gmIdentity is 0x0.
- annPathSequenceCount -> number of path sequence to grand master
- annPathSequence -> array of path sequence to grand master
- domainNumber -> The domain number of a gPTP domain
- portIndex -> index number of the clock port
- lastGmPhaseChange_nsec -> the most recent change in timeBaseIndicator
- clockId -> the clock identiy of this clock port
- gmClockId -> the clock identiy of the current grand master clock
- lastSyncReceiptTime_nsec ->
- lastSyncReceiptLocalTime_nsec ->
- adjppb -> adjustment value
- gmTimeBaseIndicator -> timeBaseIndicator of the current grand master
- lastSyncSeqID -> sequence number of the last Sync/FollowUp received
- gmsync -> True if synchronized to grand master
- domainActive -> True if this domain is providing the gptp clock
- lastGmFreqChangePk -> the last
gptp notice data type