FastArduino  v1.7
C++ library to build fast but small Arduino/AVR projects
ds1307.h File Reference

API to handle Real-Time Clock DS1307 I2C chip. More...

#include "../array.h"
#include "../i2c.h"
#include "../future.h"
#include "../utilities.h"
#include "../i2c_handler.h"
#include "../i2c_device.h"
Include dependency graph for ds1307.h:

Go to the source code of this file.

Classes

struct  devices::rtc::tm
 The datetime structure used by the RTC API. More...
 
class  devices::rtc::DS1307< MANAGER >
 I2C device driver for the DS1307 RTC chip. More...
 
class  devices::rtc::DS1307< MANAGER >::SetDatetimeFuture
 Create a future to be used by asynchronous method set_datetime(SetDatetimeFuture&). More...
 
class  devices::rtc::DS1307< MANAGER >::GetDatetimeFuture
 Create a future to be used by asynchronous method get_datetime(GetDatetimeFuture&). More...
 
class  devices::rtc::DS1307< MANAGER >::SetRamFuture< SIZE_ >
 Create a future to be used by asynchronous method set_ram(SetRamFuture<SIZE>&). More...
 
class  devices::rtc::DS1307< MANAGER >::SetRam1Future
 Create a future to be used by asynchronous method set_ram(SetRam1Future&). More...
 
class  devices::rtc::DS1307< MANAGER >::GetRamFuture< SIZE_ >
 Create a future to be used by asynchronous method get_ram(GetRamFuture<SIZE>&). More...
 
class  devices::rtc::DS1307< MANAGER >::GetRam1Future
 Create a future to be used by asynchronous method get_ram(GetRam1Future&). More...
 
class  devices::rtc::DS1307< MANAGER >::HaltClockFuture
 Create a future to be used by asynchronous method halt_clock(HaltClockFuture&). More...
 
class  devices::rtc::DS1307< MANAGER >::EnableOutputFuture
 Create a future to be used by asynchronous method enable_output(EnableOutputFuture&). More...
 
class  devices::rtc::DS1307< MANAGER >::DisableOutputFuture
 Create a future to be used by asynchronous method disable_output(DisableOutputFuture&). More...
 

Namespaces

 devices
 Defines all API for all external devices supported by FastArduino.
 
 devices::rtc
 Defines API for Real-Time Clock chips usage.
 

Enumerations

enum  devices::rtc::WeekDay : uint8_t {
  SUNDAY = 1,
  MONDAY,
  TUESDAY,
  WEDNESDAY,
  THURSDAY,
  FRIDAY,
  SATURDAY
}
 Days of the week.
 
enum  devices::rtc::SquareWaveFrequency : uint8_t {
  FREQ_1HZ = 0x00,
  FREQ_4096HZ = 0x01,
  FREQ_8192HZ = 0x02,
  FREQ_32768HZ = 0x03
}
 The possible frequencies that can be generated by DS1307 RTC SQW/OUT pin. More...
 

Detailed Description

API to handle Real-Time Clock DS1307 I2C chip.

Definition in file ds1307.h.