libptpmgmt
1.4
libptpmgmt library that provides the functionality of linuxptp pmc
|
PTP management TLV structures. More...
Go to the source code of this file.
Macros | |
#define | LIBPTPMGMT_EVENT_BITMASK_CNT (64) |
#define | LIBPTPMGMT_MAX_MESSAGE_TYPES (16) |
Functions | |
void | ptpmgmt_setEvent_lnp (struct ptpmgmt_SUBSCRIBE_EVENTS_NP_t *tlv, int event) |
void | ptpmgmt_clearEvent_lnp (struct ptpmgmt_SUBSCRIBE_EVENTS_NP_t *tlv, int event) |
void | ptpmgmt_clearAll_lnp (struct ptpmgmt_SUBSCRIBE_EVENTS_NP_t *tlv) |
bool | ptpmgmt_getEvent_lnp (const struct ptpmgmt_SUBSCRIBE_EVENTS_NP_t *tlv, int event) |
PTP management TLV structures.
#define LIBPTPMGMT_EVENT_BITMASK_CNT (64) |
SUBSCRIBE_EVENTS_NP.bitmask size
#define LIBPTPMGMT_MAX_MESSAGE_TYPES (16) |
size of PORT_STATS_NP rxMsgType and txMsgType
void ptpmgmt_clearAll_lnp | ( | struct ptpmgmt_SUBSCRIBE_EVENTS_NP_t * | tlv | ) |
Clear all events in bitmask
[in,out] | tlv | with the events storage |
void ptpmgmt_clearEvent_lnp | ( | struct ptpmgmt_SUBSCRIBE_EVENTS_NP_t * | tlv, |
int | event | ||
) |
Clear event bit in bitmask
[in,out] | tlv | with the events storage |
[in] | event | to clear |
bool ptpmgmt_getEvent_lnp | ( | const struct ptpmgmt_SUBSCRIBE_EVENTS_NP_t * | tlv, |
int | event | ||
) |
Get bit value in bitmask
[in,out] | tlv | with the events storage |
[in] | event | to query |
void ptpmgmt_setEvent_lnp | ( | struct ptpmgmt_SUBSCRIBE_EVENTS_NP_t * | tlv, |
int | event | ||
) |
Set event bit in bitmask
[in,out] | tlv | with the events storage |
[in] | event | to set |