FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
Loading...
Searching...
No Matches
devices::magneto::INTStatus Class Reference

The structure of the Interrupt Status register (register map §4.16). More...

#include <fastarduino/devices/mpu6050.h>

Public Member Functions

constexpr INTStatus (bool data_ready=false, bool overflow=false)
 Create a new INTStatus configuration value. More...
 
bool data_ready () const
 If true, the Data Ready interrupt is enabled. More...
 
bool overflow () const
 If true, a FIFO buffer overflow will generate an interrupt. More...
 

Detailed Description

The structure of the Interrupt Status register (register map §4.16).

Note that this structure is also used as INTEnable type in order to enable or disable interrupts.

See also
MPU6050::interrupt_status()
INTEnable

Definition at line 207 of file mpu6050.h.

Constructor & Destructor Documentation

◆ INTStatus()

constexpr devices::magneto::INTStatus::INTStatus ( bool  data_ready = false,
bool  overflow = false 
)
inlineconstexpr

Create a new INTStatus configuration value.

Parameters
data_readytrue to enable Data Ready interrupt
overflowtrue to enable FIFO buffer overflow interrupt

Definition at line 215 of file mpu6050.h.

Member Function Documentation

◆ data_ready()

bool devices::magneto::INTStatus::data_ready ( ) const
inline

If true, the Data Ready interrupt is enabled.

Definition at line 219 of file mpu6050.h.

◆ overflow()

bool devices::magneto::INTStatus::overflow ( ) const
inline

If true, a FIFO buffer overflow will generate an interrupt.

Definition at line 225 of file mpu6050.h.


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