//----------------------------------------------
//
// Sketch Generated by Visuino
// www.visuino.com
// Version 8.0.0.101
//
//------------------ Source --------------------
//
// auto gps tracker 4.visuino
//
//----------------------------------------------
#define VISUINO_ARDUINO_NANO
#include <OpenWire.h>
#include <Mitov.h>
#include <Mitov_StandardSerial.h>
#include <SPI.h>
#include <Mitov_Arduino_SPI.h>
#include <Mitov_Timing.h>
#include <Mitov_LogicGates.h>
#include <Mitov_GPS.h>
#include <Mitov_SPI_MicroSDCard.h>
#ifndef SEEEDUINO_WIO_TERMINAL
#define private public
#undef private
#endif // SEEEDUINO_WIO_TERMINAL
#include <SD.h> // The 'SD' Arduino library https://github.com/arduino-libraries/SD needs to be installed trough the Arduino IDE for this Scetch to compile!
#include <Mitov_MicroSDCard.h>
#include <Mitov_Memory.h>
#include <Mitov_Converters.h>
#include <Mitov_FormattedText.h>
#include <Mitov_BinaryGenerators.h>
#include <Mitov_Math.h>
#include <Mitov_Counter.h>
#include <Mitov_Button.h>
#include <Mitov_DateTime.h>
#include <Mitov_Text.h>
// Shared Component Member Variables
namespace ComponentVariables
{
class
{
public:
int32_t Value12 : 32;
int32_t Value10 : 32;
int32_t Value11 : 11;
int32_t Value13 : 11;
uint32_t Value7 : 10;
uint32_t Value5 : 6;
uint32_t Value6 : 6;
uint32_t Value4 : 5;
bool Value1 : 1;
bool Value2 : 1;
uint32_t Value3 : 1;
bool Value8 : 1;
bool Value9 : 1;
bool Value14 : 1;
bool Value15 : 1;
bool Value16 : 1;
bool Value17 : 1;
bool Value18 : 1;
bool Value19 : 1;
bool Value20 : 1;
bool Value21 : 1;
bool Value22 : 1;
bool Value23 : 1;
uint32_t Value24 : 1;
bool Value25 : 1;
bool Value26 : 1;
bool Value27 : 1;
bool Value28 : 1;
bool Value29 : 1;
bool Value30 : 1;
bool Value31 : 1;
bool Value32 : 1;
bool Value33 : 1;
bool Value34 : 1;
bool Value35 : 1;
bool Value36 : 1;
bool Value37 : 1;
bool Value38 : 1;
bool Value39 : 1;
bool Value40 : 1;
bool Value41 : 1;
bool Value42 : 1;
bool Value43 : 1;
} BitFields;
class Variable12
{
public:
inline static int32_t GetValue() { return BitFields.Value12; }
inline static void SetValue( int32_t AValue ) { BitFields.Value12 = AValue; }
};
class Variable10
{
public:
inline static int32_t GetValue() { return BitFields.Value10; }
inline static void SetValue( int32_t AValue ) { BitFields.Value10 = AValue; }
};
class Variable11
{
public:
inline static int32_t GetValue() { return BitFields.Value11; }
inline static void SetValue( int32_t AValue ) { BitFields.Value11 = AValue; }
};
class Variable13
{
public:
inline static int32_t GetValue() { return BitFields.Value13; }
inline static void SetValue( int32_t AValue ) { BitFields.Value13 = AValue; }
};
class Variable7
{
public:
inline static uint32_t GetValue() { return BitFields.Value7; }
inline static void SetValue( uint32_t AValue ) { BitFields.Value7 = AValue; }
};
class Variable5
{
public:
inline static uint32_t GetValue() { return BitFields.Value5; }
inline static void SetValue( uint32_t AValue ) { BitFields.Value5 = AValue; }
};
class Variable6
{
public:
inline static uint32_t GetValue() { return BitFields.Value6; }
inline static void SetValue( uint32_t AValue ) { BitFields.Value6 = AValue; }
};
class Variable4
{
public:
inline static uint32_t GetValue() { return BitFields.Value4; }
inline static void SetValue( uint32_t AValue ) { BitFields.Value4 = AValue; }
};
class Variable1
{
public:
inline static bool GetValue() { return BitFields.Value1; }
inline static void SetValue( bool AValue ) { BitFields.Value1 = AValue; }
};
class Variable2
{
public:
inline static bool GetValue() { return BitFields.Value2; }
inline static void SetValue( bool AValue ) { BitFields.Value2 = AValue; }
};
class Variable3
{
public:
inline static uint32_t GetValue() { return BitFields.Value3; }
inline static void SetValue( uint32_t AValue ) { BitFields.Value3 = AValue; }
};
class Variable8
{
public:
inline static bool GetValue() { return BitFields.Value8; }
inline static void SetValue( bool AValue ) { BitFields.Value8 = AValue; }
};
class Variable9
{
public:
inline static bool GetValue() { return BitFields.Value9; }
inline static void SetValue( bool AValue ) { BitFields.Value9 = AValue; }
};
class Variable14
{
public:
inline static bool GetValue() { return BitFields.Value14; }
inline static void SetValue( bool AValue ) { BitFields.Value14 = AValue; }
};
class Variable15
{
public:
inline static bool GetValue() { return BitFields.Value15; }
inline static void SetValue( bool AValue ) { BitFields.Value15 = AValue; }
};
class Variable16
{
public:
inline static bool GetValue() { return BitFields.Value16; }
inline static void SetValue( bool AValue ) { BitFields.Value16 = AValue; }
};
class Variable17
{
public:
inline static bool GetValue() { return BitFields.Value17; }
inline static void SetValue( bool AValue ) { BitFields.Value17 = AValue; }
};
class Variable18
{
public:
inline static bool GetValue() { return BitFields.Value18; }
inline static void SetValue( bool AValue ) { BitFields.Value18 = AValue; }
};
class Variable19
{
public:
inline static bool GetValue() { return BitFields.Value19; }
inline static void SetValue( bool AValue ) { BitFields.Value19 = AValue; }
};
class Variable20
{
public:
inline static bool GetValue() { return BitFields.Value20; }
inline static void SetValue( bool AValue ) { BitFields.Value20 = AValue; }
};
class Variable21
{
public:
inline static bool GetValue() { return BitFields.Value21; }
inline static void SetValue( bool AValue ) { BitFields.Value21 = AValue; }
};
class Variable22
{
public:
inline static bool GetValue() { return BitFields.Value22; }
inline static void SetValue( bool AValue ) { BitFields.Value22 = AValue; }
};
class Variable23
{
public:
inline static bool GetValue() { return BitFields.Value23; }
inline static void SetValue( bool AValue ) { BitFields.Value23 = AValue; }
};
class Variable24
{
public:
inline static uint32_t GetValue() { return BitFields.Value24; }
inline static void SetValue( uint32_t AValue ) { BitFields.Value24 = AValue; }
};
class Variable25
{
public:
inline static bool GetValue() { return BitFields.Value25; }
inline static void SetValue( bool AValue ) { BitFields.Value25 = AValue; }
};
class Variable26
{
public:
inline static bool GetValue() { return BitFields.Value26; }
inline static void SetValue( bool AValue ) { BitFields.Value26 = AValue; }
};
class Variable27
{
public:
inline static bool GetValue() { return BitFields.Value27; }
inline static void SetValue( bool AValue ) { BitFields.Value27 = AValue; }
};
class Variable28
{
public:
inline static bool GetValue() { return BitFields.Value28; }
inline static void SetValue( bool AValue ) { BitFields.Value28 = AValue; }
};
class Variable29
{
public:
inline static bool GetValue() { return BitFields.Value29; }
inline static void SetValue( bool AValue ) { BitFields.Value29 = AValue; }
};
class Variable30
{
public:
inline static bool GetValue() { return BitFields.Value30; }
inline static void SetValue( bool AValue ) { BitFields.Value30 = AValue; }
};
class Variable31
{
public:
inline static bool GetValue() { return BitFields.Value31; }
inline static void SetValue( bool AValue ) { BitFields.Value31 = AValue; }
};
class Variable32
{
public:
inline static bool GetValue() { return BitFields.Value32; }
inline static void SetValue( bool AValue ) { BitFields.Value32 = AValue; }
};
class Variable33
{
public:
inline static bool GetValue() { return BitFields.Value33; }
inline static void SetValue( bool AValue ) { BitFields.Value33 = AValue; }
};
class Variable34
{
public:
inline static bool GetValue() { return BitFields.Value34; }
inline static void SetValue( bool AValue ) { BitFields.Value34 = AValue; }
};
class Variable35
{
public:
inline static bool GetValue() { return BitFields.Value35; }
inline static void SetValue( bool AValue ) { BitFields.Value35 = AValue; }
};
class Variable36
{
public:
inline static bool GetValue() { return BitFields.Value36; }
inline static void SetValue( bool AValue ) { BitFields.Value36 = AValue; }
};
class Variable37
{
public:
inline static bool GetValue() { return BitFields.Value37; }
inline static void SetValue( bool AValue ) { BitFields.Value37 = AValue; }
};
class Variable38
{
public:
inline static bool GetValue() { return BitFields.Value38; }
inline static void SetValue( bool AValue ) { BitFields.Value38 = AValue; }
};
class Variable39
{
public:
inline static bool GetValue() { return BitFields.Value39; }
inline static void SetValue( bool AValue ) { BitFields.Value39 = AValue; }
};
class Variable40
{
public:
inline static bool GetValue() { return BitFields.Value40; }
inline static void SetValue( bool AValue ) { BitFields.Value40 = AValue; }
};
class Variable41
{
public:
inline static bool GetValue() { return BitFields.Value41; }
inline static void SetValue( bool AValue ) { BitFields.Value41 = AValue; }
};
class Variable42
{
public:
inline static bool GetValue() { return BitFields.Value42; }
inline static void SetValue( bool AValue ) { BitFields.Value42 = AValue; }
};
class Variable43
{
public:
inline static bool GetValue() { return BitFields.Value43; }
inline static void SetValue( bool AValue ) { BitFields.Value43 = AValue; }
};
class Shared_bool_0 : public ::ComponentVariables::Variable8
{
protected:
static bool FValue;
public:
inline static bool GetVariableValue( const bool AInitialValue )
{
if( ::ComponentVariables::Variable8::GetValue() )
return FValue;
return AInitialValue;
}
inline static void SetVariableValue( const bool AValue ) { FValue = AValue; ::ComponentVariables::Variable8::SetValue( true ); }
inline static bool &GetReference() { return FValue; }
inline Shared_bool_0() { ::ComponentVariables::Variable8::SetValue( false ); }
};
bool Shared_bool_0::FValue;
} // ComponentVariables
// Arduino Constant Declarations
namespace VisuinoConstants
{
class FloatValue2
{
public:
inline static constexpr float GetValue() { return 1.85199999809265; }
};
class FloatValue1
{
public:
inline static constexpr float GetValue() { return 0; }
};
class FloatValue0
{
public:
inline static constexpr float GetValue() { return 0.5; }
};
class FloatValue3
{
public:
inline static constexpr float GetValue() { return 2; }
};
class TextValue2
{
public:
inline static constexpr const char *GetValue() { return ""; }
};
class TextValue4
{
public:
inline static constexpr const char *GetValue() { return ":"; }
};
class TextValue7
{
public:
inline static constexpr const char *GetValue() { return " "; }
};
class TextValue1
{
public:
inline static constexpr const char *GetValue() { return "DTS"; }
};
class TextValue6
{
public:
inline static constexpr const char *GetValue() { return " "; }
};
class TextValue3
{
public:
inline static constexpr const char *GetValue() { return ","; }
};
class TextValue0
{
public:
inline static constexpr const char *GetValue() { return "GPS"; }
};
class TextValue8
{
public:
inline static constexpr const char *GetValue() { return "Km/h"; }
};
class TextValue5
{
public:
inline static constexpr const char *GetValue() { return "/"; }
};
} // VisuinoConstants
// Pin Call Declarations
namespace PinCalls
{
class PinCallerReceive0
{
public:
void Notify( void *_Data );
};
class PinCallerReceive1
{
public:
void Notify( void *_Data );
};
class PinCallerReceive2
{
public:
void Notify( void *_Data );
};
class PinCallerReceive3
{
public:
void Notify( void *_Data );
};
class PinCallerReceive4
{
public:
void Notify( void *_Data );
};
class PinCallerReceive5
{
public:
void Notify( void *_Data );
};
class PinCallerReceive6
{
public:
void Notify( void *_Data );
};
class PinCallerReceive7
{
public:
void Notify( void *_Data );
};
class PinCallerReceive8
{
public:
void Notify( void *_Data );
};
class PinCallerReceive9
{
public:
void Notify( void *_Data );
};
class PinCallerReceive10
{
public:
void Notify( void *_Data );
};
class PinCallerReceive11
{
public:
void Notify( void *_Data );
};
class PinCallerReceive12
{
public:
void Notify( void *_Data );
};
class PinCallerReceive13
{
public:
void Notify( void *_Data );
};
class PinCallerReceive14
{
public:
void Notify( void *_Data );
};
class PinCallerReceive15
{
public:
void Notify( void *_Data );
};
class PinCallerReceive16
{
public:
void Notify( void *_Data );
};
class PinCallerReceive17
{
public:
void Notify( void *_Data );
};
class PinCallerReceive18
{
public:
void Notify( void *_Data );
};
class PinCallerReceive19
{
public:
void Notify( void *_Data );
};
class PinCallerReceive20
{
public:
void Notify( void *_Data );
};
class PinCallerReceive21
{
public:
void Notify( void *_Data );
};
class PinCallerReceive22
{
public:
void Notify( void *_Data );
};
class PinCallerReceive23
{
public:
void Notify( void *_Data );
};
class PinCallerReceive24
{
public:
void Notify( void *_Data );
};
class PinCallerReceive25
{
public:
void Notify( void *_Data );
};
class PinCallerReceive26
{
public:
void Notify( void *_Data );
};
class PinCallerReceive27
{
public:
void Notify( void *_Data );
};
class PinCallerReceive28
{
public:
void Notify( void *_Data );
};
class PinCallerReceive29
{
public:
void Notify( void *_Data );
};
class PinCallerReceive30
{
public:
void Notify( void *_Data );
};
class PinCallerReceive31
{
public:
void Notify( void *_Data );
};
class PinCallerReceive32
{
public:
void Notify( void *_Data );
};
class PinCallerReceive33
{
public:
void Notify( void *_Data );
};
class PinCallerReceive34
{
public:
void Notify( void *_Data );
};
class PinCallerReceive35
{
public:
void Notify( void *_Data );
};
} // PinCalls
// Call Chains
namespace CallChains
{
class Processed1
{
public:
inline static constexpr uint32_t Count() { return 2; }
static void Call();
};
class CanProcess1
{
public:
inline static constexpr uint32_t Count() { return 2; }
static void Call( bool & AResult );
};
class Process1
{
public:
inline static constexpr uint32_t Count() { return 2; }
static void Call( Mitov::String &AText );
};
class PeriodicCall1
{
public:
inline static constexpr uint32_t Count() { return 0; }
static void Call();
};
class Processed2
{
public:
inline static constexpr uint32_t Count() { return 7; }
static void Call();
};
class CanProcess2
{
public:
inline static constexpr uint32_t Count() { return 7; }
static void Call( bool & AResult );
};
class Process2
{
public:
inline static constexpr uint32_t Count() { return 8; }
static void Call( Mitov::String &AText );
};
class TryActive1
{
public:
inline static constexpr uint32_t Count() { return 0; }
static void Call( bool & AResult );
};
} // CallChains
// System Objects Declarations
namespace BoardDeclarations
{
Mitov::TPeriodMicros<2000000, ::CallChains::PeriodicCall1> SystemPeriodMicros_2000000;
} // BoardDeclarations
// Arduino Board Declarations
namespace BoardDeclarations
{
namespace Types
{
typedef ::Mitov::ArduinoSPI<
SPI // 1_SPI
> BoardSPI0;
} // namespace Types
namespace Instances
{
BoardDeclarations::Types::BoardSPI0 BoardSPI0;
} // namespace Instances
namespace Types
{
typedef Mitov::ArduinoDigitalOutputChannel<
Mitov::ConstantProperty<22, bool, false >, // IsAnalog = 0
Mitov::ConstantProperty<24, bool, false >, // IsCombinedInOut = 0
Mitov::ConstantProperty<21, bool, false >, // IsOpenDrain = 0
Mitov::ConstantProperty<26, bool, false >, // IsOutput = 0
Mitov::ConstantProperty<20, bool, false >, // IsPullDown = 0
Mitov::ConstantProperty<5, bool, true >, // IsPullUp = True
Mitov::ConstantProperty<23, bool, false >, // IsRawInput = 0
Mitov::DigitalPin_EmbeddedPinImplementation<6, ::PinCalls::PinCallerReceive0 >, // OutputPin
2 // PIN_DIGITAL
> ArduinoDigitalChannel_2;
} // Types
namespace Instances
{
Types::ArduinoDigitalChannel_2 ArduinoDigitalChannel_2;
} // Instances
namespace Types
{
typedef Mitov::ArduinoDigitalInputChannel<
Mitov::ConstantProperty<51, bool, false >, // InitialValue = 0
Mitov::ConstantProperty<25, bool, false >, // IsOpenDrain = 0
Mitov::ConstantProperty<25, bool, true >, // IsOutput = -1
Mitov::ConstantProperty<20, bool, false >, // IsPullDown = 0
Mitov::ConstantProperty<5, bool, false >, // IsPullUp = False (Default)
Mitov::DigitalPin_NoImplementation<6 >, // OutputPin
7 // PIN_DIGITAL
> ArduinoDigitalChannel_7;
} // Types
namespace Instances
{
Types::ArduinoDigitalChannel_7 ArduinoDigitalChannel_7;
} // Instances
namespace Types
{
typedef Mitov::SerialPort<
SERIAL_TYPE, // 0_T_TYPE
Serial, // 1_C_OBJECT
Mitov::ConstantProperty<4, uint32_t, 0 >, // AfterSendingDelay = 0 (Default)
Mitov::ConstantProperty<7, uint32_t, 8 >, // DataBits = 8 (Default)
Mitov::ConstantProperty<2, bool, true >, // Enabled = True (Default)
Mitov::ConstantProperty<12, uint32_t, 0 >, // FEndTime = 0
Mitov::ConstantProperty<10, bool, false >, // FSending = False
Mitov::GenericPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive1 >, // OutputPin
Mitov::ConstantProperty<9, Mitov::TArduinoStandardSerialParity, Mitov::spNone >, // Parity = spNone (Default)
Mitov::DigitalPin_NoImplementation<3 >, // SendingOutputPin
Mitov::ConstantProperty<6, uint32_t, 9600 >, // Speed = 9600 (Default)
Mitov::ConstantProperty<8, uint32_t, 1 > // StopBits = 1 (Default)
> SerialPort0;
} // Types
namespace Instances
{
Types::SerialPort0 SerialPort0;
} // Instances
} // BoardDeclarations
// Declarations
namespace Declarations
{
namespace Types
{
typedef Mitov::Timer<
Mitov::ConstantProperty<6, bool, false >, // AutoRepeat = False (Default)
Mitov::ConstantProperty<7, bool, true >, // CanRestart = True (Default)
Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default)
Mitov::TypedVariable<10, bool, ::ComponentVariables::Variable1 >, // FValue = 0
Mitov::ConstantProperty<5, uint32_t, 4293918719 >, // Interval = 4293918719
Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive2 > // OutputPin
> Timer1; // TArduinoTimer
} // Types
namespace Instances
{
Types::Timer1 Timer1; // TArduinoTimer
} // Instances
namespace Types
{
typedef Mitov::BooleanInverter<
Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default)
Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive3 > // OutputPin
> Inverter1; // TArduinoBooleanInverter
} // Types
namespace Instances
{
Types::Inverter1 Inverter1; // TArduinoBooleanInverter
} // Instances
namespace Types
{
typedef Mitov::MitovSerialGPS<
Mitov::ConstantProperty<10, uint32_t, 2000 >, // BaseYear = 2000 (Default)
Mitov::AnalogPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive4 >, // CourseOutputPins_0
Mitov::AnalogPin_NoImplementation<6 >, // CourseOutputPins_1
Mitov::TypedPin_EmbeddedPinImplementation<7, ::PinCalls::PinCallerReceive5, Mitov::TDateTime >, // DateTimeOutputPin
Mitov::ConstantProperty<3, bool, true >, // Enabled = True (Default)
Mitov::TypedVariableValue<34, uint32_t, ::ComponentVariables::Variable4, 0 >, // FHour = 0
Mitov::TypedVariableValue<40, uint32_t, ::ComponentVariables::Variable7, 0 >, // FMilliSeconds = 0
Mitov::TypedVariableValue<36, uint32_t, ::ComponentVariables::Variable5, 0 >, // FMinutes = 0
Mitov::TypedVariableValue<38, uint32_t, ::ComponentVariables::Variable6, 0 >, // FSeconds = 0
Mitov::TypedVariable<32, uint32_t, ::ComponentVariables::Variable3 >, // FState = 1
Mitov::TypedVariable<30, bool, ::ComponentVariables::Variable2 >, // FValuePopulated = 0
Mitov::AnalogPin_NoImplementation<29 >, // HorizontalPrecisionOutputPin
Mitov::DigitalPin_NoImplementation<8 >, // InvalidOutputPin
Mitov::AnalogPin_EmbeddedPinImplementation<14, ::PinCalls::PinCallerReceive6 >, // LocationOutputPins_0
Mitov::AnalogPin_EmbeddedPinImplementation<15, ::PinCalls::PinCallerReceive7 >, // LocationOutputPins_1
Mitov::AnalogPin_NoImplementation<16 >, // LocationOutputPins_2
Mitov::AnalogPin_NoImplementation<17 >, // LocationOutputPins_3
Mitov::AnalogPin_NoImplementation<18 >, // LocationOutputPins_4
Mitov::DigitalPin_NoImplementation<9 >, // MessageErrorOutputPin
Mitov::TypedPin_NoImplementation<27, uint32_t >, // ModeOutputPin
Mitov::TypedPin_NoImplementation<28, uint32_t >, // NavigationStatusOutputPin
Mitov::TypedPin_EmbeddedPinImplementation<20, ::PinCalls::PinCallerReceive8, uint32_t >, // SatellitesOutputPins_0
Mitov::ClockPin_NoImplementation<21 >, // SatellitesOutputPins_1
Mitov::TypedPin_NoImplementation<22, uint32_t >, // SatellitesOutputPins_2
Mitov::TypedPin_NoImplementation<23, uint32_t >, // SatellitesOutputPins_3
Mitov::TypedPin_NoImplementation<24, uint32_t >, // SatellitesOutputPins_4
Mitov::TypedPin_NoImplementation<25, uint32_t >, // SatellitesOutputPins_5
Mitov::ClockPin_NoImplementation<26 > // SatellitesOutputPins_6
> GPS1; // TArduinoSerialGPS
} // Types
namespace Instances
{
Types::GPS1 GPS1; // TArduinoSerialGPS
} // Instances
namespace Types
{
typedef Mitov::MicroSDCard<
10, // ChipSelectOutputPin
Mitov::SharedVariableProperty<3, bool, true, ::ComponentVariables::Shared_bool_0 >, // Enabled = True (Default)
Mitov::TextPin_NoImplementation<7 >, // ErrorInfoOutputPin
Mitov::TypedVariable<10, bool, ::ComponentVariables::Variable9 >, // FRunning = 0
Mitov::ClockPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive9 >, // FailedOutputPin
Mitov::ClockPin_EmbeddedPinImplementation<6, ::PinCalls::PinCallerReceive10 >, // SuccessOutputPin
SDClass // TYPE
> SDCard1; // TArduinoMicroSDCard
...
This file has been truncated, please download it to see its full contents.
Comments
Please log in or sign up to comment.