COSA
An Object-Oriented Platform for Arduino Programming
MCP7940N::alarm_t Struct Reference

#include <MCP7940N.hh>

Collaboration diagram for MCP7940N::alarm_t:
Collaboration graph

Classes

union  config_t
 

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-7 Day. More...
 
uint8_t date
 01-31 Date. More...
 
uint8_t month
 01-12 Month. More...
 

Detailed Description

The Alarm setting (pp. 9-11).

Definition at line 90 of file MCP7940N.hh.

Member Function Documentation

void MCP7940N::alarm_t::to_bcd ( )
inline

Convert time to BCD representation (from binary). Apply after setting new value and writing to the device.

Definition at line 112 of file MCP7940N.hh.

void MCP7940N::alarm_t::to_binary ( )
inline

Convert time to binary representation (from BCD). Apply after reading from device and before any calculation.

Definition at line 102 of file MCP7940N.hh.

Member Data Documentation

uint8_t MCP7940N::alarm_t::date

01-31 Date.

Definition at line 95 of file MCP7940N.hh.

uint8_t MCP7940N::alarm_t::day

01-7 Day.

Definition at line 94 of file MCP7940N.hh.

uint8_t MCP7940N::alarm_t::hours

00-23 Hours.

Definition at line 93 of file MCP7940N.hh.

uint8_t MCP7940N::alarm_t::minutes

00-59 Minutes.

Definition at line 92 of file MCP7940N.hh.

uint8_t MCP7940N::alarm_t::month

01-12 Month.

Definition at line 96 of file MCP7940N.hh.

uint8_t MCP7940N::alarm_t::seconds

00-59 Seconds.

Definition at line 91 of file MCP7940N.hh.


The documentation for this struct was generated from the following file: