Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
PCF8563 Class Reference
#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:
-
pin sda/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
Generated on Tue Jul 12 2022 18:57:21 by
1.7.2