Franz Pucher / PCF8563
Embed: (wiki syntax)

« Back to documentation index

PCF8563 Class Reference

PCF8563 Class. More...

#include <PCF8563.h>

Public Member Functions

 PCF8563 ()
 Create a RTC object connected to the specified pin.
 PCF8563 (PinName sda, PinName scl)
 parameterized constructor with sda-pin, sdc-pin)
char read (char address)
 read value from I2C bus; ToDo --> Error()
void write (char address, char value)
 write value to I2C bus; ToDo --> Error()
void init ()
 initialize the RTC to a given date and time; ToDo --> Error()

Protected Member Functions

void error ()
 protected methodes for internal purposes only

Protected Attributes

I2C i2c
 I2C definition.

Detailed Description

PCF8563 Class.

name: rtc.h Version: 0.1 author: PE HTL BULME email: pe@bulme.at description: Definition portion of the class rtc

Definition at line 29 of file PCF8563.h.


Constructor & Destructor Documentation

PCF8563 (  )

Create a RTC object connected to the specified pin.

Parameters:
pinsda/scl pin to connect to default constructor; sda(p28), sdc(p27)

Definition at line 19 of file PCF8563.cpp.

PCF8563 ( PinName  sda,
PinName  scl 
)

parameterized constructor with sda-pin, sdc-pin)

Definition at line 30 of file PCF8563.cpp.


Member Function Documentation

void error (  ) [protected]

protected methodes for internal purposes only

Error: stops and all LEDs are blinking

Definition at line 95 of file PCF8563.cpp.

void init (  )

initialize the RTC to a given date and time; ToDo --> Error()

Definition at line 62 of file PCF8563.cpp.

char read ( char  address )

read value from I2C bus; ToDo --> Error()

Definition at line 39 of file PCF8563.cpp.

void write ( char  address,
char  value 
)

write value to I2C bus; ToDo --> Error()

Definition at line 52 of file PCF8563.cpp.


Field Documentation

I2C i2c [protected]

I2C definition.

Definition at line 33 of file PCF8563.h.