50 #if defined( _USE_PACK ) 51 #pragma pack( 1 ) // set byte alignment 52 #define _USING_BYTE_ALIGNMENT 84 uint32_t role_mask = 0;
178 #if defined( _USING_BYTE_ALIGNMENT ) 179 #pragma pack() // set default alignment 180 #undef _USING_BYTE_ALIGNMENT #define PTP_CFG_MSK_CAN_BE_TIME_MONITOR
see PTP_CFG_CAN_BE_TIME_MONITOR
#define PTP_CFG_MSK_CAN_BE_MULTICAST_AUTO
see PTP_CFG_CAN_BE_MULTICAST_AUTO
The MAC address of a network interface.
see PTP_ROLE_MULTICAST_SLAVE
#define PTP_CFG_MSK_NTP_HW_TS_MASTER
see PTP_CFG_NTP_HW_TS_MASTER
#define PTP_CFG_MSK_CAN_BE_UNICAST_SLAVE
see PTP_CFG_CAN_BE_UNICAST_SLAVE
see PTP_ROLE_MULTICAST_MASTER
static __mbg_inline uint32_t get_supp_ptp_role_mask(uint32_t flags)
Derive a "supported PTP roles" bit mask from PTP_CFG_INFO::supp_flags.
#define PTP_CFG_MSK_CAN_BE_MULTICAST_MASTER
see PTP_CFG_CAN_BE_MULTICAST_MASTER
#define PTP_CFG_MSK_CAN_BE_V1_SLAVE
see PTP_CFG_CAN_BE_V1_SLAVE
#define PTP_CFG_MSK_CAN_BE_BOTH_MASTER
see PTP_CFG_CAN_BE_BOTH_MASTER
void ptp_clock_id_from_mac(PTP_CLOCK_ID *p_clock_id, const MBG_MAC_ADDR *p_mac_addr)
Get the PTP clock ID from the MAC addr.
see PTP_ROLE_TIME_MONITOR
void ptp_clock_id_from_str(PTP_CLOCK_ID *p_clock_id, const char *p_str)
Get the PTP clock ID from a string.
#define PTP_CFG_MSK_SUPP_MCAST_SLAVE_FLAG
see PTP_CFG_SUPP_MCAST_SLAVE_FLAG
see PTP_ROLE_MULTICAST_MASTER
#define PTP_CFG_MSK_CAN_BE_V1_MASTER
see PTP_CFG_CAN_BE_V1_MASTER
#define PTP_CFG_MSK_CAN_BE_MULTICAST_SLAVE
see PTP_CFG_CAN_BE_MULTICAST_SLAVE
see PTP_ROLE_UNICAST_SLAVE
#define PTP_CFG_MSK_CAN_BE_UNICAST_MASTER
see PTP_CFG_CAN_BE_UNICAST_MASTER
see PTP_ROLE_UNICAST_SLAVE
see PTP_ROLE_UNICAST_MASTER
void mac_from_ptp_clock_id(MBG_MAC_ADDR *p_mac_addr, const PTP_CLOCK_ID *p_clock_id)
Get the MAC addr from a PTP clock ID.
see PTP_ROLE_MULTICAST_AUTO
#define PTP_CFG_MSK_NTP_HW_TS_SLAVE
see PTP_CFG_NTP_HW_TS_SLAVE