|
sketchbook
|
#include <stdio.h>#include <stdlib.h>#include <stdint.h>#include <stdarg.h>#include <wiringPi.h>#include "ds1302.h"Macros | |
| #define | RTC_SECS 0 |
| #define | RTC_MINS 1 |
| #define | RTC_HOURS 2 |
| #define | RTC_DATE 3 |
| #define | RTC_MONTH 4 |
| #define | RTC_DAY 5 |
| #define | RTC_YEAR 6 |
| #define | RTC_WP 7 |
| #define | RTC_TC 8 |
| #define | RTC_BM 31 |
Functions | |
| unsigned int | ds1302rtcRead (const int reg) |
| void | ds1302rtcWrite (int reg, unsigned int data) |
| unsigned int | ds1302ramRead (const int addr) |
| void | ds1302ramWrite (const int addr, const unsigned int data) |
| void | ds1302clockRead (int clockData[8]) |
| void | ds1302clockWrite (const int clockData[8]) |
| void | ds1302trickleCharge (const int diodes, const int resistors) |
| void | ds1302setup (const int clockPin, const int dataPin, const int csPin) |
| #define RTC_BM 31 |
| #define RTC_DATE 3 |
| #define RTC_DAY 5 |
| #define RTC_HOURS 2 |
| #define RTC_MINS 1 |
| #define RTC_MONTH 4 |
| #define RTC_SECS 0 |
| #define RTC_TC 8 |
| #define RTC_WP 7 |
| #define RTC_YEAR 6 |
| void ds1302clockRead | ( | int | clockData[8] | ) |
| void ds1302clockWrite | ( | const int | clockData[8] | ) |
| unsigned int ds1302ramRead | ( | const int | addr | ) |
| void ds1302ramWrite | ( | const int | addr, |
| const unsigned int | data | ||
| ) |
| unsigned int ds1302rtcRead | ( | const int | reg | ) |
| void ds1302rtcWrite | ( | int | reg, |
| unsigned int | data | ||
| ) |
| void ds1302setup | ( | const int | clockPin, |
| const int | dataPin, | ||
| const int | csPin | ||
| ) |
| void ds1302trickleCharge | ( | const int | diodes, |
| const int | resistors | ||
| ) |
1.8.6