|
gPTP Documentation
|
#include <linux_hal_common.hpp>


Public Member Functions | |
| LinuxSharedMemoryIPC () | |
| ~LinuxSharedMemoryIPC () | |
| virtual bool | init (OS_IPC_ARG *barg=NULL) |
| Initializes shared memory with DEFAULT_GROUPNAME case arg is null. More... | |
| virtual bool | update (int64_t ml_phoffset, int64_t ls_phoffset, FrequencyRatio ml_freqoffset, FrequencyRatio ls_freqoffset, uint64_t local_time, uint32_t sync_count, uint32_t pdelay_count, PortState port_state) |
| Updates IPC values. More... | |
| void | stop () |
| unmaps and unlink shared memory More... | |
Linux shared memory interface
|
inline |
Initializes the internal flags
| LinuxSharedMemoryIPC::~LinuxSharedMemoryIPC | ( | ) |
Destroys and unlinks shared memory
|
virtual |
Initializes shared memory with DEFAULT_GROUPNAME case arg is null.
| barg | Groupname of the shared memory |
Implements OS_IPC.
| void LinuxSharedMemoryIPC::stop | ( | ) |
unmaps and unlink shared memory
|
virtual |
Updates IPC values.
| ml_phoffset | Master to local phase offset |
| ls_phoffset | Local to slave phase offset |
| ml_freqoffset | Master to local frequency offset |
| ls_freqoffset | Local to slave frequency offset |
| local_time | Local time |
| sync_count | Count of syncs |
| pdelay_count | Count of pdelays |
| port_state | Port's state |
Implements OS_IPC.