コード例 #1
0
ファイル: common_port.hpp プロジェクト: ni/Open-AVB
	/**
	 * @brief  Gets the ClockIdentity string
	 * @param  id [out] Pointer to an array of octets.
	 * @return void
	 */
	void getClockIdentityString(uint8_t *id)
	{
		clock_id.getIdentityString(id);
	}
コード例 #2
0
  /**
   * @brief  Sets a new GM clock ID
   * @param  id New id
   * @return void
   */
  void setGrandmasterClockIdentity(ClockIdentity id) {
	  if (id != grandmaster_clock_identity) {
		  GPTP_LOG_STATUS("New Grandmaster \"%s\" (previous \"%s\")", id.getIdentityString().c_str(), grandmaster_clock_identity.getIdentityString().c_str());
		  grandmaster_clock_identity = id;
	  }
  }