AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | List of all members
MikroCortexA8SystemBusinessLogic Class Reference

#include <MikroCortexA8SystemBusinessLogic.h>

Inheritance diagram for MikroCortexA8SystemBusinessLogic:
Inheritance graph
[legend]
Collaboration diagram for MikroCortexA8SystemBusinessLogic:
Collaboration graph
[legend]

Classes

class  DataClass
 

Public Member Functions

 MikroCortexA8SystemBusinessLogic ()
 
virtual ~MikroCortexA8SystemBusinessLogic ()
 
virtual bool GetConnectionBoardNumber (long &connectionBoardNumber) const
 
virtual bool GetConnectionBoardNumber (QString &connectionBoardNumberText) const
 
virtual bool GetIPAddress (const QString &device, QString &ipAddressOut) const
 
virtual bool SetIPAddress (const QString &device, const QString &ipAddress) const
 
virtual bool GetMacAddress (const QString &device, QString &macAddressOut) const
 
virtual bool GetOSVersion (QString &osVersion) const
 
virtual bool GetDeviceSerialNumber (QString &serialNumber) const
 
virtual bool GetDeviceSerialNumber (int64_t &serialNumber) const
 
virtual bool GetCompanyID (int32_t &companyId) const
 
virtual bool GetCompanyID (QString &companyId) const
 
virtual bool GetWlanIface (QString &wlanInterface, int8_t id=0) const
 
virtual bool GetGsmInterface (QString &gsmInterface) const
 
virtual bool GetChipsetVersion (QString &chipsetVersion) const
 
virtual bool GetRootFSVersion (QString &rootFileSystemVersion) const
 
virtual bool GetBrightness (int &brightness) const
 
virtual bool SetBrightness (int brightness)
 
virtual bool GetBrightnessTable (std::vector< int > &brightnessTable) const
 
virtual bool GetLightSensorValueInLux (int &value) const
 
virtual bool GetPowerSupplyState (bool &isPowerLoss) const
 
virtual bool GetBatteryVoltage (uint16_t &batteryVoltage) const
 
virtual void SlaveDeviceServoUnlock () const
 
virtual void SlaveDeviceServoLock () const
 
virtual bool SetDevicesBlockOut (bool blockoutEnabled) const
 SetDevicesBlockOut - sets BlockOut signal on deviceInterface. More...
 
virtual void ApplicationUIReady () const
 
virtual bool IsWlanIfaceOnline (bool &isWlanIfaceOnline) const
 
virtual bool GetWakeupInput (bool &stayRunning) const
 GetWakeupInput - check if wakeupInput is true (engine is running) More...
 
virtual bool GetEngineIgnitionState (bool &engineIsRunning) const
 GetEngineIgnitionState - returns current engine ignition state / ignition switch state (it is analogy to block signal on 2.4 a 2.6 slaves) More...
 
virtual bool SetPowerOffTime (const int powerOffValueInSeconds) const
 SetPowerOffTime - sets device power off time value. More...
 
virtual bool SetSystemFeature (FeatureType feature, bool enable) const
 SetSystemFeature - sets device feature. More...
 
virtual bool SetShutdownTimeOnBattery (const int seconds) const
 SetShutdownTimeOnBattery. More...
 
- Public Member Functions inherited from SystemBusinessLogic
 SystemBusinessLogic ()
 
virtual ~SystemBusinessLogic ()
 
virtual bool GetBuildNumber (QString &buildNumber, QString specificFilePath="")
 
virtual bool GetReleaseNumber (QString &releaseNumber)
 
virtual bool GetJenkinsBuildNumber (QString &jenkinsBuildNumber)
 
virtual bool GetBuildTime (QDateTime &buildTime)
 
virtual bool GetWlanSignalStrength (bool &present, int &signalStrength) const
 
virtual bool GetGPRSSignalStrength (bool &present, int &signalStrength) const
 
 SystemBusinessLogic ()
 
virtual ~SystemBusinessLogic ()
 
virtual bool GetBuildNumber (QString &buildNumber, QString specificFilePath="")
 
virtual bool GetReleaseNumber (QString &releaseNumber)
 
virtual bool GetJenkinsBuildNumber (QString &jenkinsBuildNumber)
 
virtual bool GetBuildTime (QDateTime &buildTime)
 
virtual bool GetWlanSignalStrength (bool &present, int &signalStrength) const
 
virtual bool GetGPRSSignalStrength (bool &present, int &signalStrength) const
 

Additional Inherited Members

- Public Types inherited from SystemBusinessLogic
enum  FeatureType {
  FeaturePowerDownKey = 0, FeatureCtrAltDelKey = 1, FeatureSpecialPowerNotifyKeys = 3, FeatureDisableUi = 4,
  FeaturePowerWatchdog = 5, FeatureKeyboardAutorepeat = 6, FeatureEnableKeyboard = 10, FeaturePowerDownKey = 0,
  FeatureCtrAltDelKey = 1, FeatureSpecialPowerNotifyKeys = 3, FeatureDisableUi = 4, FeaturePowerWatchdog = 5,
  FeatureKeyboardAutorepeat = 6, FeatureEnableKeyboard = 10
}
 
enum  FeatureType {
  FeaturePowerDownKey = 0, FeatureCtrAltDelKey = 1, FeatureSpecialPowerNotifyKeys = 3, FeatureDisableUi = 4,
  FeaturePowerWatchdog = 5, FeatureKeyboardAutorepeat = 6, FeatureEnableKeyboard = 10, FeaturePowerDownKey = 0,
  FeatureCtrAltDelKey = 1, FeatureSpecialPowerNotifyKeys = 3, FeatureDisableUi = 4, FeaturePowerWatchdog = 5,
  FeatureKeyboardAutorepeat = 6, FeatureEnableKeyboard = 10
}
 
- Protected Member Functions inherited from SystemBusinessLogic
bool GetDataFromBuildTXT (QString &output, QString prefix, QString delimiter, QString path="", bool valueOnNewLine=false)
 
bool GetDataFromBuildTXT (QString &output, QString prefix, QString delimiter, QString path="", bool valueOnNewLine=false)
 

Constructor & Destructor Documentation

MikroCortexA8SystemBusinessLogic::MikroCortexA8SystemBusinessLogic ( )
MikroCortexA8SystemBusinessLogic::~MikroCortexA8SystemBusinessLogic ( )
virtual

Member Function Documentation

void MikroCortexA8SystemBusinessLogic::ApplicationUIReady ( ) const
virtual
Note
only Vesna

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetBatteryVoltage ( uint16_t &  batteryVoltage) const
virtual
Note
only Vesna

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetBrightness ( int &  brightness) const
virtual
Note
only Vesna

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetBrightnessTable ( std::vector< int > &  brightnessTable) const
virtual
Note
only Vesna

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetChipsetVersion ( QString &  chipsetVersion) const
virtual

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetCompanyID ( int32_t &  companyId) const
virtual

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetCompanyID ( QString &  companyId) const
virtual

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetConnectionBoardNumber ( long &  connectionBoardNumber) const
virtual

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetConnectionBoardNumber ( QString &  connectionBoardNumberText) const
virtual

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetDeviceSerialNumber ( QString &  serialNumber) const
virtual

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetDeviceSerialNumber ( int64_t &  serialNumber) const
virtual

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetEngineIgnitionState ( bool &  engineIsRunning) const
virtual

GetEngineIgnitionState - returns current engine ignition state / ignition switch state (it is analogy to block signal on 2.4 a 2.6 slaves)

Note
only for mikro_cortexa8
Parameters
engineIsRunning- true if engine is currently running, false otherwise
Returns
true od success, false on failure (or in case of empty implementation - incorrect platform )

Reimplemented from SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetGsmInterface ( QString &  gsmInterface) const
virtual

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetIPAddress ( const QString &  device,
QString &  ipAddressOut 
) const
virtual

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetLightSensorValueInLux ( int &  value) const
virtual
Note
only Vesna

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetMacAddress ( const QString &  device,
QString &  macAddressOut 
) const
virtual

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetOSVersion ( QString &  osVersion) const
virtual

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetPowerSupplyState ( bool &  isPowerLoss) const
virtual
Note
only Vesna and Mikroelektronika SSV

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetRootFSVersion ( QString &  rootFileSystemVersion) const
virtual

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetWakeupInput ( bool &  stayRunning) const
virtual

GetWakeupInput - check if wakeupInput is true (engine is running)

Note
Only for transdata_cortexa9 and IzmirDemo
Parameters
stayRunning- true if application should remain running, false if application should change state to suspend
Returns
true if successful, false otherwise

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::GetWlanIface ( QString &  wlanInterface,
int8_t  id = 0 
) const
virtual

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::IsWlanIfaceOnline ( bool &  isWlanIfaceOnline) const
virtual
Note
only for emtest_xscale_26 and transdata_cortexa9
In case that wlan interface have static connection type( non DHCP ), wlan interface is active for all time but connection is invalid.

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::SetBrightness ( int  brightness)
virtual
Note
only Vesna

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::SetDevicesBlockOut ( bool  blockoutEnabled) const
virtual

SetDevicesBlockOut - sets BlockOut signal on deviceInterface.

Parameters
blockoutEnabled
Note
devices can be restarted by setting blockOut first to false, then true
devices may not restart if delay between setting blockout is too small (one second should be enough)
currently only implemented in Vesna & XScale26
Returns

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::SetIPAddress ( const QString &  device,
const QString &  ipAddress 
) const
virtual

Implements SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::SetPowerOffTime ( const int  powerOffValueInSeconds) const
virtual

SetPowerOffTime - sets device power off time value.

Note
only for mikro_cortexa8
Parameters
powerOffValueInSeconds- power off timer value, when time runs out, device will power off itself
Returns
true if successful, false otherwise

Reimplemented from SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::SetShutdownTimeOnBattery ( const int  seconds) const
virtual

SetShutdownTimeOnBattery.

Note
only for mikro_cortexa8
Parameters
seconds- shutdown time when device has lost input voltage
Returns

Reimplemented from SystemBusinessLogic.

bool MikroCortexA8SystemBusinessLogic::SetSystemFeature ( FeatureType  feature,
bool  enable 
) const
virtual

SetSystemFeature - sets device feature.

Note
only for emtest_xscale26
Parameters
feature- device feature based on
See also
FeatureType
Parameters
enable- true if device feature will be enabled
Returns
true of successful, false otherwise

Implements SystemBusinessLogic.

void MikroCortexA8SystemBusinessLogic::SlaveDeviceServoLock ( ) const
virtual

Implements SystemBusinessLogic.

void MikroCortexA8SystemBusinessLogic::SlaveDeviceServoUnlock ( ) const
virtual

Implements SystemBusinessLogic.


The documentation for this class was generated from the following files: