COSA
An Object-Oriented Platform for Arduino Programming
DS1307::control_t Union Reference

#include <DS1307.hh>

Collaboration diagram for DS1307::control_t:
Collaboration graph

Public Member Functions

 operator uint8_t ()
 
 control_t ()
 

Public Attributes

uint8_t as_uint8
 Unsigned byte access. More...
 
struct {
   uint8_t   rs:2
 < Bitfield access. More...
 
   uint8_t   reserved1:2
 Reserved/1. More...
 
   uint8_t   sqwe:1
 Square-Ware Enable. More...
 
   uint8_t   reserved2:2
 Reserved/2. More...
 
   uint8_t   out:1
 Output Control. More...
 
}; 
 

Detailed Description

The Timekeeper Control Register bitfields (pp. 9).

Definition at line 55 of file DS1307.hh.

Constructor & Destructor Documentation

DS1307::control_t::control_t ( )
inline

Default constructor.

Definition at line 77 of file DS1307.hh.

Member Function Documentation

DS1307::control_t::operator uint8_t ( )
inline

Cast control register bit-field to byte.

Returns
byte representation.

Definition at line 69 of file DS1307.hh.

Member Data Documentation

struct { ... }
uint8_t DS1307::control_t::as_uint8

Unsigned byte access.

Definition at line 56 of file DS1307.hh.

uint8_t DS1307::control_t::out

Output Control.

Definition at line 62 of file DS1307.hh.

uint8_t DS1307::control_t::reserved1

Reserved/1.

Definition at line 59 of file DS1307.hh.

uint8_t DS1307::control_t::reserved2

Reserved/2.

Definition at line 61 of file DS1307.hh.

uint8_t DS1307::control_t::rs

< Bitfield access.

Rate Select.

Definition at line 58 of file DS1307.hh.

uint8_t DS1307::control_t::sqwe

Square-Ware Enable.

Definition at line 60 of file DS1307.hh.


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