Home
last modified time | relevance | path

Searched refs:Timestamp (Results 1 – 22 of 22) sorted by relevance

/openthread-latest/src/core/meshcop/
Dtimestamp.cpp43 void Timestamp::ConvertTo(Info &aInfo) const in ConvertTo()
50 void Timestamp::SetFrom(const Info &aInfo) in SetFrom()
57 void Timestamp::SetToInvalid(void) in SetToInvalid()
64 bool Timestamp::IsValid(void) const in IsValid()
70 void Timestamp::SetToOrphanAnnounce(void) in SetToOrphanAnnounce()
77 bool Timestamp::IsOrphanAnnounce(void) const in IsOrphanAnnounce()
82 uint64_t Timestamp::GetSeconds(void) const in GetSeconds()
87 void Timestamp::SetSeconds(uint64_t aSeconds) in SetSeconds()
93 void Timestamp::SetTicks(uint16_t aTicks) in SetTicks()
98 void Timestamp::SetAuthoritative(bool aAuthoritative) in SetAuthoritative()
[all …]
Dtimestamp.hpp55 class Timestamp : public Clearable<Timestamp> class
165 static int Compare(const Timestamp &aFirst, const Timestamp &aSecond);
168 bool operator==(const Timestamp &aOther) const { return Compare(*this, aOther) == 0; } in operator ==()
169 bool operator!=(const Timestamp &aOther) const { return Compare(*this, aOther) != 0; } in operator !=()
170 bool operator>(const Timestamp &aOther) const { return Compare(*this, aOther) > 0; } in operator >()
171 bool operator<(const Timestamp &aOther) const { return Compare(*this, aOther) < 0; } in operator <()
172 bool operator>=(const Timestamp &aOther) const { return Compare(*this, aOther) >= 0; } in operator >=()
173 bool operator<=(const Timestamp &aOther) const { return Compare(*this, aOther) <= 0; } in operator <=()
Ddataset.hpp479 Error ReadTimestamp(Type aType, Timestamp &aTimestamp) const;
492 Error WriteTimestamp(Type aType, const Timestamp &aTimestamp);
700 template <> struct Dataset::TypeFor<Dataset::kActiveTimestamp> { using Type = Timestamp; };
701 template <> struct Dataset::TypeFor<Dataset::kPendingTimestamp> { using Type = Timestamp; };
759 template <> inline void Dataset::Info::Get<Dataset::kActiveTimestamp>(Timestamp &aTimestamp) const in Get()
764 template <> inline void Dataset::Info::Get<Dataset::kPendingTimestamp>(Timestamp &aTimestamp) const in Get()
769 template <> inline void Dataset::Info::Set<Dataset::kActiveTimestamp>(const Timestamp &aTimestamp) in Set()
775 template <> inline void Dataset::Info::Set<Dataset::kPendingTimestamp>(const Timestamp &aTimestamp) in Set()
Ddataset_updater.cpp62 Timestamp activeTimestamp; in RequestUpdate()
63 Timestamp pendingTimestamp; in RequestUpdate()
160 Timestamp newTimestamp; in HandleDatasetChanged()
161 Timestamp requestedTimestamp; in HandleDatasetChanged()
Ddataset_manager.hpp82 const Timestamp &GetTimestamp(void) const { return mNetworkTimestamp; } in GetTimestamp()
316 Timestamp mLocalTimestamp;
317 Timestamp mNetworkTimestamp;
428 Error ReadActiveTimestamp(Timestamp &aTimestamp) const;
Ddataset_manager_ftd.cpp55 Timestamp activeTimestamp; in ProcessSetOrReplaceRequest()
76 Timestamp pendingTimestamp; in ProcessSetOrReplaceRequest()
272 Timestamp timestamp; in GenerateLocal()
410 Timestamp activeTimestamp; in ApplyActiveDataset()
Ddataset.cpp427 Timestamp activeTimestamp; in WriteTlvsFrom()
435 Timestamp pendingTimestamp; in WriteTlvsFrom()
544 Error Dataset::ReadTimestamp(Type aType, Timestamp &aTimestamp) const in ReadTimestamp()
561 Error Dataset::WriteTimestamp(Type aType, const Timestamp &aTimestamp) in WriteTimestamp()
563 return WriteTlv(TimestampTlvFor(aType), &aTimestamp, sizeof(Timestamp)); in WriteTimestamp()
Ddataset_manager.cpp280 compare = Timestamp::Compare(mNetworkTimestamp, mLocalTimestamp); in Save()
449 Timestamp timestamp; in SyncLocalWithLeader()
898 Error PendingDatasetManager::ReadActiveTimestamp(Timestamp &aTimestamp) const in ReadActiveTimestamp()
960 Timestamp activeTimestamp; in HandleDelayTimer()
Dmeshcop_tlvs.hpp508 typedef SimpleTlvInfo<Tlv::kActiveTimestamp, Timestamp> ActiveTimestampTlv;
546 typedef SimpleTlvInfo<Tlv::kPendingTimestamp, Timestamp> PendingTimestampTlv;
/openthread-latest/tests/unit/
Dtest_meshcop.cpp118 MeshCoP::Timestamp t1; in TestTimestamp()
119 MeshCoP::Timestamp t2; in TestTimestamp()
120 MeshCoP::Timestamp::Info info; in TestTimestamp()
127 VerifyOrQuit(MeshCoP::Timestamp::Compare(t1, t1) == 0); in TestTimestamp()
136 VerifyOrQuit(MeshCoP::Timestamp::Compare(t2, t2) == 0); in TestTimestamp()
143 VerifyOrQuit(MeshCoP::Timestamp::Compare(t1, t2) > 0); in TestTimestamp()
144 VerifyOrQuit(MeshCoP::Timestamp::Compare(t2, t1) < 0); in TestTimestamp()
147 VerifyOrQuit(MeshCoP::Timestamp::Compare(t1, t2) == 0); in TestTimestamp()
154 VerifyOrQuit(MeshCoP::Timestamp::Compare(t1, t2) > 0); in TestTimestamp()
155 VerifyOrQuit(MeshCoP::Timestamp::Compare(t2, t1) < 0); in TestTimestamp()
[all …]
/openthread-latest/src/cli/
DREADME_DATASET.md20 - Active Timestamp
36 - Pending Timestamp
48 Active Timestamp: 1
108 Active Timestamp: 1
161 Active Timestamp: 10
186 Active Timestamp: 1691070443
218 Pending Timestamp: 1696177379
219 Active Timestamp: 1696177379
244 Pending Timestamp: 1696177379
245 Active Timestamp: 1696177379
[all …]
DREADME_COMMISSIONING.md19 Active Timestamp: 1
105 Active Timestamp: 1
DREADME_SRP.md19 Active Timestamp: 1
DREADME_NETDATA.md21 Active Timestamp: 1
DREADME_HISTORY.md25 ## Timestamp Format
/openthread-latest/src/core/utils/
Dhistory_tracker.hpp303 class Timestamp class in ot::Utils::HistoryTracker
326 uint16_t Add(uint16_t aMaxSize, Timestamp aTimestamps[]);
327 void UpdateAgedEntries(uint16_t aMaxSize, Timestamp aTimestamps[]);
330 const Timestamp aTimestamps[],
362 Timestamp mTimestamps[kMaxSize];
Dhistory_tracker.cpp486 void HistoryTracker::Timestamp::SetToNow(void) in SetToNow()
499 uint32_t HistoryTracker::Timestamp::GetDurationTill(TimeMilli aTime) const in GetDurationTill()
519 uint16_t HistoryTracker::List::Add(uint16_t aMaxSize, Timestamp aTimestamps[]) in Add()
537 const Timestamp aTimestamps[], in Iterate()
573 void HistoryTracker::List::UpdateAgedEntries(uint16_t aMaxSize, Timestamp aTimestamps[]) in UpdateAgedEntries()
/openthread-latest/examples/apps/cli/
DREADME.md27 Active Timestamp: 1
/openthread-latest/src/core/thread/
Dmle_tlvs.hpp205 typedef SimpleTlvInfo<Tlv::kActiveTimestamp, MeshCoP::Timestamp> ActiveTimestampTlv;
210 typedef SimpleTlvInfo<Tlv::kPendingTimestamp, MeshCoP::Timestamp> PendingTimestampTlv;
Dmle.hpp1055 Error ReadAndSaveActiveDataset(const MeshCoP::Timestamp &aActiveTimestamp) const;
1056 Error ReadAndSavePendingDataset(const MeshCoP::Timestamp &aPendingTimestamp) const;
1066 …Error ReadAndSaveDataset(MeshCoP::Dataset::Type aDatasetType, const MeshCoP::Timestamp &aTimestamp…
Dmle.cpp2151 MeshCoP::Timestamp activeTimestamp; in SendAnnounce()
2844 MeshCoP::Timestamp activeTimestamp; in HandleLeaderData()
2845 MeshCoP::Timestamp pendingTimestamp; in HandleLeaderData()
3254 MeshCoP::Timestamp timestamp; in HandleChildIdResponse()
3655 MeshCoP::Timestamp timestamp; in HandleAnnounce()
3656 MeshCoP::Timestamp pendingActiveTimestamp; in HandleAnnounce()
3674 …timestampCompare = MeshCoP::Timestamp::Compare(timestamp, Get<MeshCoP::ActiveDatasetManager>()… in HandleAnnounce()
5129 const MeshCoP::Timestamp &timestamp = Get<MeshCoP::ActiveDatasetManager>().GetTimestamp(); in AppendActiveTimestampTlv()
5141 const MeshCoP::Timestamp &timestamp = Get<MeshCoP::PendingDatasetManager>().GetTimestamp(); in AppendPendingTimestampTlv()
5474 Error Mle::RxMessage::ReadAndSaveActiveDataset(const MeshCoP::Timestamp &aActiveTimestamp) const in ReadAndSaveActiveDataset()
[all …]
Dmle_router.cpp2080 MeshCoP::Timestamp timestamp; in HandleChildIdRequest()
2598 MeshCoP::Timestamp timestamp; in HandleDataRequest()