Skip to content

Commit 84c1048

Browse files
authored
Update RTC_RX8025T.h
1 parent 726cbc6 commit 84c1048

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/RTC_RX8025T.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323

2424
#define _BV(bit) (1 << (bit))
2525

26-
//RX8025T I2C Address
26+
// RX8025T I2C Address
2727
#define RX8025T_ADDR 0x32
2828

29-
//RX8025T Register Addresses
29+
// RX8025T Register Addresses
3030
#define RX8025T_SECONDS 0x00
3131
#define RX8025T_MINUTES 0x01
3232
#define RX8025T_HOURS 0x02
@@ -44,7 +44,7 @@
4444
#define RX8025T_RTC_STATUS 0x0E
4545
#define RX8025T_RTC_CONTROL 0x0F
4646

47-
//Extension register bits
47+
// Extension register bits
4848
#define TSEL0 0
4949
#define TSEL1 1
5050
#define FSEL0 2
@@ -53,30 +53,30 @@
5353
#define USEL 5
5454
#define WADA 6
5555

56-
//Status register bits
56+
// Status register bits
5757
#define VDET 0
5858
#define VLF 1
5959
#define AF 3
6060
#define TF 4
6161
#define UF 5
6262

63-
//Control register bits
63+
// Control register bits
6464
#define RESET 0
6565
#define AIE 3
6666
#define TIE 4
6767
#define UIE 5
6868
#define CSEL0 6
6969
#define CSEL1 7
7070

71-
//Time update interrupt function
71+
// Time update interrupt function
7272
#define INT_SECOND 0x00
7373
#define INT_MINUTE 0x20
7474

75-
//Time update interrupt
75+
// Time update interrupt
7676
#define INT_ON 0x20
7777
#define INT_OFF 0x00
7878

79-
//Temperature compensation interval
79+
// Temperature compensation interval
8080
#define INT_0_5_SEC 0x00
8181
#define INT_2_SEC 0x40
8282
#define INT_10_SEC 0x80
@@ -92,24 +92,24 @@ class RX8025T
9292
public:
9393
RX8025T();
9494
void init(void);
95-
static time_t get(void); //must be static to work with setSyncProvider() in the Time library
95+
static time_t get(void); // Must be static to work with setSyncProvider() in the Time library
9696
uint8_t set(time_t t);
9797
static uint8_t read(tmElements_t &tm);
9898
uint8_t write(tmElements_t &tm);
9999
uint8_t writeRTC(uint8_t addr, uint8_t *values, uint8_t nBytes);
100100
uint8_t writeRTC(uint8_t addr, uint8_t value);
101101
uint8_t readRTC(uint8_t addr, uint8_t *values, uint8_t nBytes);
102102
uint8_t readRTC(uint8_t addr);
103-
void tempCompensation(uint8_t option);
104-
void initFOUT(uint8_t option);
103+
void tempCompensation(uint8_t option);
104+
void initFOUT(uint8_t option);
105105
void initTUI(uint8_t option);
106106
void statusTUI(uint8_t status);
107-
bool checkTUI(void);
107+
bool checkTUI(void);
108108

109109
private:
110-
uint8_t currentStateUIEbit;
111-
uint8_t wday2bin(uint8_t wday);
112-
static uint8_t bin2wday(uint8_t wday);
110+
uint8_t currentStateUIEbit;
111+
uint8_t wday2bin(uint8_t wday);
112+
static uint8_t bin2wday(uint8_t wday);
113113
uint8_t dec2bcd(uint8_t n);
114114
static uint8_t bcd2dec(uint8_t n);
115115
};

0 commit comments

Comments
 (0)