COSA
An Object-Oriented Platform for Arduino Programming
L3G4200D::ctrl_reg1_t Union Reference

#include <L3G4200D.hh>

Collaboration diagram for L3G4200D::ctrl_reg1_t:
Collaboration graph

Public Member Functions

 ctrl_reg1_t (uint8_t value=0)
 
 operator uint8_t ()
 

Public Attributes

uint8_t as_uint8
 As a byte. More...
 
struct {
   uint8_t   Xen:1
 < As bitfields. More...
 
   uint8_t   Yen:1
 Y axis enable. More...
 
   uint8_t   Zen:1
 Z axis enable. More...
 
   uint8_t   PD:1
 Power down enable. More...
 
   uint8_t   BW:2
 Bandwidth selection. More...
 
   uint8_t   DR:2
 Output Data Rate selection. More...
 
}; 
 

Detailed Description

Register CTRL_REG1 bitfields.

Definition at line 140 of file L3G4200D.hh.

Constructor & Destructor Documentation

L3G4200D::ctrl_reg1_t::ctrl_reg1_t ( uint8_t  value = 0)
inline

Definition at line 150 of file L3G4200D.hh.

Member Function Documentation

L3G4200D::ctrl_reg1_t::operator uint8_t ( )
inline

Definition at line 154 of file L3G4200D.hh.

Member Data Documentation

struct { ... }
uint8_t L3G4200D::ctrl_reg1_t::as_uint8

As a byte.

Definition at line 141 of file L3G4200D.hh.

uint8_t L3G4200D::ctrl_reg1_t::BW

Bandwidth selection.

Definition at line 147 of file L3G4200D.hh.

uint8_t L3G4200D::ctrl_reg1_t::DR

Output Data Rate selection.

Definition at line 148 of file L3G4200D.hh.

uint8_t L3G4200D::ctrl_reg1_t::PD

Power down enable.

Definition at line 146 of file L3G4200D.hh.

uint8_t L3G4200D::ctrl_reg1_t::Xen

< As bitfields.

X axis enable.

Definition at line 143 of file L3G4200D.hh.

uint8_t L3G4200D::ctrl_reg1_t::Yen

Y axis enable.

Definition at line 144 of file L3G4200D.hh.

uint8_t L3G4200D::ctrl_reg1_t::Zen

Z axis enable.

Definition at line 145 of file L3G4200D.hh.


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