com.alarexgroup.m2mplf.adapters.hw
Class RTClockAdapter

java.lang.Object
  extended by com.alarexgroup.m2mplf.adapters.hw.RTClockAdapter
public class RTClockAdapter
extends java.lang.Object

Adapter for RTC handling

Method Summary
 java.lang.String getRTClock()
          Returns the actual value of RTC
static RTClockAdapter getRTClockAdapter()
          Returns active isntance of the adapter
 boolean setRTClock(java.lang.String datetime)
          Setup the RTC
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRTClockAdapter

public static RTClockAdapter getRTClockAdapter()
Returns active isntance of the adapter

Returns:
referrence to the adapter instance

setRTClock

public boolean setRTClock(java.lang.String datetime)
Setup the RTC

Parameters:
datetime - record of date and time in this format: YY/MM/DD,hh:mm:ss
e.g. 24.3.2007 10h 30m 15s = 07/03/24,10:30:15 YY - year
MM - month
DD - day
hh - hour
mm - minute
ss - seconds
Returns:
TRUE - time adjusted
FALSE - not adjusted

getRTClock

public java.lang.String getRTClock()
Returns the actual value of RTC

Returns:
Time record in YY/MM/DD,hh:mm:ss format