VIRTUTECH CONFIDENTIAL    Previous - Up - Next

MK48T08

Provided by
MK48T08
Class Hierarchy
conf-objectlog-objectMK48T08
Interfaces Implemented
log_object, event_poster, io_memory
Description
The MK48T08device implements a real time clock and non-volatile storage (NVRAM). The watchdog functionality is not implemented.

Attributes

Attributes inherited from class conf-object
attributes, classname, component, iface, name, object_id, queue
Attributes inherited from class log-object
access_count, log_buffer, log_buffer_last, log_buffer_size, log_group_mask, log_groups, log_level, log_type_mask
Attribute List
creg
Optional attribute; read/write access; type: Integer.

Control register.

hour
Pseudo attribute; read/write access; type: Integer.

Current hour [0,23].

mday
Pseudo attribute; read/write access; type: Integer.

Current day of the month [1,31].

minute
Pseudo attribute; read/write access; type: Integer.

Current minute [0,59].

month
Pseudo attribute; read/write access; type: Integer.

Current month [1,12].

nvram
Optional attribute; read/write access; type: Data; persistent attribute.

The non-volatile RAM; 0x1ff0 bytes of raw data.

second
Pseudo attribute; read/write access; type: Integer.

Current second [0,59].

time
Required attribute; read/write access; type: String; persistent attribute.

The time stored in the rtc. When written to, the syntax understood is "%Y-%m-%d %H:%M:%S" as per the strptime(3) man page. The string may optionally be followed by "UTC", or it will be interpreted as local time. When read from, the format is "yyyy-mm-dd hh:mm:ss UTC".

time_last_tick
Optional attribute; read/write access; type: Float.

The time when the last clock tick occurred.

wdog
Optional attribute; read/write access; type: Integer.

Watchdog timer. Currently not used.

year
Pseudo attribute; read/write access; type: Integer.

Current year (full four-digit format).

Command List

Commands defined by interface log_object
log, log-group, log-level, log-size, log-type
Commands
get-timeget date and time
set-timeset date and time
set-time-currentset date and time to the current (real) time

Command Descriptions

<MK48T08>.get-time
Synopsis
<MK48T08>.get-time
Description
Return the date and time of the realtime clock (UTC).
<MK48T08>.set-time
Synopsis
<MK48T08>.set-time "time"
Description
Set the date and time of the realtime clock (UTC). Format is: "YYYY-MM-DD HH:MM:SS".
<MK48T08>.set-time-current
Synopsis
<MK48T08>.set-time-current
Description
Set the date and time to the actual wall clock time.

VIRTUTECH CONFIDENTIAL    Previous - Up - Next