Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BSP_DISCO_L476VG COMPASS_DISCO_L476VG mbed vcdLogger vcdSignal
sync.cpp
00001 #include "sync.hpp" 00002 00003 Sync::Sync(const string& name, Logger& logger) : Signal(name,1,logger), m_State(0) 00004 { 00005 } 00006 00007 Sync& Sync::operator=(unsigned int value) 00008 { 00009 m_State = value; 00010 return *this; 00011 } 00012 00013 void Sync::PrintState() 00014 { 00015 string suffix(""); 00016 int32_t time_ref = 0; 00017 if (!m_State) 00018 { 00019 /* Do nothing */ 00020 } 00021 else 00022 { 00023 string msg("Sync triggered"); 00024 PrintEvent(msg, time_ref); 00025 } 00026 }
Generated on Wed Jul 13 2022 21:23:50 by
1.7.2