#include <modm/driver/inertial/l3gd20.hpp>
 | 
| 
typedef FlagsGroup< Control1_t, Control2_t, Control3_t, Control4_t, Control5_t, FifoControl_t, IntConfig_t >  | Control_t | 
|   | 
 | 
| enum   | Register : uint8_t  | 
|   | 
| enum   | Control1 : uint8_t  | 
|   | CTRL_REG1 default value is 0x07. 
  | 
|   | 
| enum   | Control2 : uint8_t  | 
|   | CTRL_REG2 default value is 0x00. 
  | 
|   | 
| enum   | Control3 : uint8_t  | 
|   | CTRL_REG3 default value is 0x00. 
  | 
|   | 
| enum   | Control4 : uint8_t  | 
|   | CTRL_REG4 default value is 0x00. 
  | 
|   | 
| enum   | Control5 : uint8_t  | 
|   | CTRL_REG5 default value is 0x00. 
  | 
|   | 
| enum   | Status : uint8_t  | 
|   | STATUS is read-only. 
  | 
|   | 
| enum   | FifoControl : uint8_t  | 
|   | FIFO_CTRL default value is 0x00. 
  | 
|   | 
| enum   | FifoSource : uint8_t  | 
|   | FIFO_SRC is read-only. 
  | 
|   | 
| enum   | IntConfig : uint8_t  | 
|   | INT1_CFG default value is 0x00. 
  | 
|   | 
| enum   | IntSource : uint8_t  | 
|   | INT1_SRC default value is 0x00. 
  | 
|   | 
| enum   | FifoMode : uint8_t  | 
|   | 
| enum   | MeasurementRate : uint8_t  | 
|   | 
| enum   | Scale : uint8_t  | 
|   | 
 | 
| 
  | MODM_FLAGS8 (Control1) | 
|   | 
| 
  | MODM_FLAGS8 (Control2) | 
|   | 
| 
  | MODM_FLAGS8 (Control3) | 
|   | 
| 
  | MODM_FLAGS8 (Control4) | 
|   | 
| 
  | MODM_FLAGS8 (Control5) | 
|   | 
| 
  | MODM_FLAGS8 (Status) | 
|   | 
| 
  | MODM_FLAGS8 (FifoControl) | 
|   | 
| 
  | MODM_FLAGS8 (FifoSource) | 
|   | 
| 
  | MODM_FLAGS8 (IntConfig) | 
|   | 
| 
  | MODM_FLAGS8 (IntSource) | 
|   | 
|   | L3gd20 (Data &data, uint8_t address=0x35) | 
|   | 
| 
bool  | configureBlocking (Scale scale, MeasurementRate rate=MeasurementRate::Hz380) | 
|   | 
| 
bool  | configure (Scale scale, MeasurementRate rate=MeasurementRate::Hz380) | 
|   | 
| 
bool  | updateControl (Control1_t setMask, Control1_t clearMask=Control1_t (0xff)) | 
|   | 
| 
bool  | updateControl (Control2_t setMask, Control2_t clearMask=Control2_t (0xff)) | 
|   | 
| 
bool  | updateControl (Control3_t setMask, Control3_t clearMask=Control3_t (0xff)) | 
|   | 
| 
bool  | updateControl (Control4_t setMask, Control4_t clearMask=Control4_t (0xff)) | 
|   | 
| 
bool  | updateControl (Control5_t setMask, Control5_t clearMask=Control5_t (0xff)) | 
|   | 
| 
bool  | updateFifoControl (FifoControl_t setMask, FifoControl_t clearMask=FifoControl_t (0xff)) | 
|   | 
| 
bool  | updateInterruptConfiguration (IntConfig_t setMask, IntConfig_t clearMask=IntConfig_t (0xff)) | 
|   | 
| 
bool  | readRotation () | 
|   | 
| 
Control1_t  | getControl1 () | 
|   | 
| 
Control2_t  | getControl2 () | 
|   | 
| 
Control3_t  | getControl3 () | 
|   | 
| 
Control4_t  | getControl4 () | 
|   | 
| 
Control5_t  | getControl5 () | 
|   | 
| 
uint8_t  | getReference () | 
|   | 
| 
FifoControl_t  | getFifoControl () | 
|   | 
| 
IntConfig_t  | getIntConfig () | 
|   | 
| 
Status_t  | getStatus () | 
|   | 
| 
FifoSource_t  | getFifoSource () | 
|   | 
| 
IntSource_t  | getIntSource () | 
|   | 
| 
Data &  | getData () | 
|   | Get the data object for this sensor. 
  | 
|   | 
template<class Transport>
class modm::L3gd20< Transport >
- Template Parameters
 - 
  
    | Transport | Either the I2C or SPI Transport Layer.  | 
  
   
- See also
 - Lis3TransportI2c 
 
- 
Lis3TransportSpi
 
- Author
 - Niklas Hauser 
 
 
template<class Transport > 
      
        
          | modm::L3gd20< Transport >::L3gd20  | 
          ( | 
          Data &  | 
          data,  | 
        
        
           | 
           | 
          uint8_t  | 
          address = 0x35  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor, requires a l3gd20::Data object. For I2c this also sets the address to 0b110101 (alternative: 0x1C). 
 
 
The documentation for this class was generated from the following file: