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

#include <L3G4200D.hh>

Collaboration diagram for L3G4200D::status_reg_t:
Collaboration graph

Public Member Functions

 status_reg_t (uint8_t value=0)
 
 operator uint8_t ()
 

Public Attributes

uint8_t as_uint8
 As a byte. More...
 
struct {
   uint8_t   XDA:1
 < As bitfields. More...
 
   uint8_t   YDA:1
 Y axis new data available. More...
 
   uint8_t   ZDA:1
 Z axis new data available. More...
 
   uint8_t   XYZDA:1
 X,Y,Z-axis new data available. More...
 
   uint8_t   XOR:1
 X axis data overrun. More...
 
   uint8_t   YOR:1
 Y axis data overrun. More...
 
   uint8_t   ZOR:1
 Z axis data overrun. More...
 
   uint8_t   XYZOR:1
 X,Y,Z-axis data overrun. More...
 
}; 
 

Detailed Description

Register STATUS_REG bitfields.

Definition at line 270 of file L3G4200D.hh.

Constructor & Destructor Documentation

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

Definition at line 282 of file L3G4200D.hh.

Member Function Documentation

L3G4200D::status_reg_t::operator uint8_t ( )
inline

Definition at line 286 of file L3G4200D.hh.

Member Data Documentation

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

As a byte.

Definition at line 271 of file L3G4200D.hh.

uint8_t L3G4200D::status_reg_t::XDA

< As bitfields.

X axis new data available.

Definition at line 273 of file L3G4200D.hh.

uint8_t L3G4200D::status_reg_t::XOR

X axis data overrun.

Definition at line 277 of file L3G4200D.hh.

uint8_t L3G4200D::status_reg_t::XYZDA

X,Y,Z-axis new data available.

Definition at line 276 of file L3G4200D.hh.

uint8_t L3G4200D::status_reg_t::XYZOR

X,Y,Z-axis data overrun.

Definition at line 280 of file L3G4200D.hh.

uint8_t L3G4200D::status_reg_t::YDA

Y axis new data available.

Definition at line 274 of file L3G4200D.hh.

uint8_t L3G4200D::status_reg_t::YOR

Y axis data overrun.

Definition at line 278 of file L3G4200D.hh.

uint8_t L3G4200D::status_reg_t::ZDA

Z axis new data available.

Definition at line 275 of file L3G4200D.hh.

uint8_t L3G4200D::status_reg_t::ZOR

Z axis data overrun.

Definition at line 279 of file L3G4200D.hh.


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