libptpmgmt  1.4
libptpmgmt library that provides the functionality of linuxptp pmc
Public Member Functions | Public Attributes | List of all members
SUBSCRIBE_EVENTS_NP_t Struct Reference

#include <proc.h>

Inheritance diagram for SUBSCRIBE_EVENTS_NP_t:
Inheritance graph
[legend]
Collaboration diagram for SUBSCRIBE_EVENTS_NP_t:
Collaboration graph
[legend]

Public Member Functions

void setEvent (int event)
 
void clearEvent (int event)
 
void clearAll ()
 
bool getEvent (int event) const
 

Public Attributes

uint16_t duration
 
uint8_t bitmask [EVENT_BITMASK_CNT]
 

Detailed Description

Subscribe events TLV

Note
linuxptp implementation specific

Member Function Documentation

◆ clearAll()

void SUBSCRIBE_EVENTS_NP_t::clearAll ( )
inline

Clear all events in bitmask

◆ clearEvent()

void SUBSCRIBE_EVENTS_NP_t::clearEvent ( int  event)
inline

Clear event bit in bitmask

Parameters
[in]eventto clear

◆ getEvent()

bool SUBSCRIBE_EVENTS_NP_t::getEvent ( int  event) const
inline

Get bit value in bitmask

Parameters
[in]eventto query
Returns
true if event set

◆ setEvent()

void SUBSCRIBE_EVENTS_NP_t::setEvent ( int  event)
inline

Set event bit in bitmask

Parameters
[in]eventto set

Member Data Documentation

◆ bitmask

uint8_t SUBSCRIBE_EVENTS_NP_t::bitmask[EVENT_BITMASK_CNT]

bitmask of events state Default constructor We need to zero the bitmask, as we do not set it explicity!

◆ duration

uint16_t SUBSCRIBE_EVENTS_NP_t::duration

duration in seconds


The documentation for this struct was generated from the following file: