COSA
An Object-Oriented Platform for Arduino Programming
|
#include <MCP7940N.hh>
Public Member Functions | |
void | to_binary () |
void | to_bcd () |
Public Attributes | |
uint8_t | seconds |
00-59 Seconds. More... | |
uint8_t | minutes |
00-59 Minutes. More... | |
uint8_t | hours |
00-23 Hours. More... | |
uint8_t | day |
01-07 Day. More... | |
uint8_t | date |
01-31 Date. More... | |
uint8_t | month |
01-12 Month. More... | |
Timestamp type (pp. 9-10). Same as time_t except without year.
Definition at line 151 of file MCP7940N.hh.
|
inline |
Convert time to BCD representation (from binary). Apply after setting new value and writing to the device.
Definition at line 173 of file MCP7940N.hh.
|
inline |
Convert time to binary representation (from BCD). Apply after reading from device and before any calculation.
Definition at line 163 of file MCP7940N.hh.
uint8_t MCP7940N::timestamp_t::date |
01-31 Date.
Definition at line 156 of file MCP7940N.hh.
uint8_t MCP7940N::timestamp_t::day |
01-07 Day.
Definition at line 155 of file MCP7940N.hh.
uint8_t MCP7940N::timestamp_t::hours |
00-23 Hours.
Definition at line 154 of file MCP7940N.hh.
uint8_t MCP7940N::timestamp_t::minutes |
00-59 Minutes.
Definition at line 153 of file MCP7940N.hh.
uint8_t MCP7940N::timestamp_t::month |
01-12 Month.
Definition at line 157 of file MCP7940N.hh.
uint8_t MCP7940N::timestamp_t::seconds |
00-59 Seconds.
Definition at line 152 of file MCP7940N.hh.