COSA
An Object-Oriented Platform for Arduino Programming
MCP7940N::config_t Union Reference

#include <MCP7940N.hh>

Collaboration diagram for MCP7940N::config_t:
Collaboration graph

Public Member Functions

 config_t (uint8_t value=0)
 

Public Attributes

uint8_t as_uint8
 Unsigned byte access. More...
 
struct {
   uint8_t   day:3
 < Bitfield access. More...
 
   uint8_t   vbaten:1
 External Battery Enable. More...
 
   uint8_t   vbat:1
 Battey Used Status. More...
 
   uint8_t   oscon:1
 Oscillator Running Status. More...
 
   uint8_t   reserved:2
 Reserved. More...
 
}; 
 

Detailed Description

The RTCC configuration/status bitfields. Embedded in day field (pp. 18).

Definition at line 42 of file MCP7940N.hh.

Constructor & Destructor Documentation

MCP7940N::config_t::config_t ( uint8_t  value = 0)
inline

Definition at line 51 of file MCP7940N.hh.

Member Data Documentation

struct { ... }
uint8_t MCP7940N::config_t::as_uint8

Unsigned byte access.

Definition at line 43 of file MCP7940N.hh.

uint8_t MCP7940N::config_t::day

< Bitfield access.

Day in 3 bits (1..7).

Definition at line 45 of file MCP7940N.hh.

uint8_t MCP7940N::config_t::oscon

Oscillator Running Status.

Definition at line 48 of file MCP7940N.hh.

uint8_t MCP7940N::config_t::reserved

Reserved.

Definition at line 49 of file MCP7940N.hh.

uint8_t MCP7940N::config_t::vbat

Battey Used Status.

Definition at line 47 of file MCP7940N.hh.

uint8_t MCP7940N::config_t::vbaten

External Battery Enable.

Definition at line 46 of file MCP7940N.hh.


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