COSA
An Object-Oriented Platform for Arduino Programming
MCP7940N.cpp File Reference
#include "MCP7940N.hh"
Include dependency graph for MCP7940N.cpp:

Go to the source code of this file.

Functions

IOStreamoperator<< (IOStream &outs, MCP7940N::alarm_t &t)
 
IOStreamoperator<< (IOStream &outs, MCP7940N::rtcc_t &t)
 

Detailed Description

Version
1.0

License

Copyright (C) 2014-2015, Mikael Patel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

This file is part of the Arduino Che Cosa project.

Definition in file MCP7940N.cpp.

Function Documentation

IOStream& operator<< ( IOStream outs,
MCP7940N::alarm_t t 
)

Print the alarm to the given stream with the format (DD HH:MM). The values should be in BCD i.e. not converted to binary.

Parameters
[in]outsoutput stream.
[in]talarm time structure.
Returns
iostream.

Definition at line 174 of file MCP7940N.cpp.

IOStream& operator<< ( IOStream outs,
MCP7940N::rtcc_t t 
)

Print the RTCC structure to the given stream. The RTCC values should be in BCD i.e. not converted to binary.

Parameters
[in]outsoutput stream.
[in]talarm time structure.
Returns
iostream.

Definition at line 184 of file MCP7940N.cpp.