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.
Dependents: TYBLE16_simple_data_logger Check_external_RTC
Diff: RX8025NB.h
- Revision:
- 4:d8ce59684dfa
- Parent:
- 3:d59c12d14ca9
- Child:
- 5:e8e8b1b6c103
--- a/RX8025NB.h Wed May 04 05:42:25 2016 +0000
+++ b/RX8025NB.h Thu May 05 02:13:03 2016 +0000
@@ -7,7 +7,7 @@
* http://www.page.sannet.ne.jp/kenjia/index.html
* http://mbed.org/users/kenjiArai/
* Created: June 3rd, 2015
- * Revised: May 4th, 2016
+ * Revised: May 5th, 2016
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
@@ -42,16 +42,16 @@
#define RTC_Wk_Saturday ((uint8_t)0x06)
// Register definition
-#define RX8025_REG_SEC 0
-#define RX8025_REG_MIN 1
-#define RX8025_REG_HOUR 2
-#define RX8025_REG_WDAY 3
-#define RX8025_REG_DAY 4
-#define RX8025_REG_MON 5
-#define RX8025_REG_YEAR 6
-#define RX8025_REG_OFFSET 7
-#define RX8025_REG_ALARMW_MIN 8
-#define RX8025_REG_ALARMW_HOUR 9
+#define RX8025_REG_SEC 0x0
+#define RX8025_REG_MIN 0x1
+#define RX8025_REG_HOUR 0x2
+#define RX8025_REG_WDAY 0x3
+#define RX8025_REG_DAY 0x4
+#define RX8025_REG_MON 0x5
+#define RX8025_REG_YEAR 0x6
+#define RX8025_REG_OFFSET 0x7
+#define RX8025_REG_ALARMW_MIN 0x8
+#define RX8025_REG_ALARMW_HOUR 0x9
#define RX8025_REG_ALARMW_WDAY 0xa
#define RX8025_REG_ALARMD_MIN 0xb
#define RX8025_REG_ALARMD_HOUR 0xc
@@ -131,7 +131,7 @@
void set_time_rtc(tm *);
/** Set Alarm-D / INTA time
- * @param next time (unit: minutes) from now on
+ * @param next time (unit: minutes) from now on minimum = 2 minutes!!
* @return none
*/
void set_next_alarmD_INTA(uint16_t time);
@@ -177,6 +177,7 @@
uint8_t bin2bcd(uint8_t);
uint8_t bcd2bin(uint8_t);
+ uint8_t set_alarmD_reg (uint16_t time);
void init(void);
private: