A structure for storing device modes using period and skip factor (new default)
#include <xSens_MT3/cmtdef.h>
Public Member Functions | |
CmtDeviceMode2 (const CmtOutputMode mode=CMT_DEFAULT_OUTPUT_MODE, const CmtOutputSettings settings=CMT_DEFAULT_OUTPUT_SETTINGS, const uint16_t period=CMT_DEFAULT_PERIOD, const uint16_t skip=CMT_DEFAULT_SKIP) | |
default constructor, initializes to the given (default) MT settings More... | |
double | getRealSampleFrequency (void) const |
Return the real sample frequency in Hz. More... | |
uint16_t | getSampleFrequency (void) const |
Return the sample frequency in Hz. More... | |
void | setSampleFrequency (uint16_t freq) |
Compute the period and skip factor from a sample frequency. More... | |
bool | operator== (const CmtDeviceMode2 &dev) const |
Check if all fields of the two structures are equal. More... | |
Public Attributes | |
CmtOutputMode | m_outputMode |
CmtOutputSettings | m_outputSettings |
uint16_t | m_period |
uint16_t | m_skip |
|
inline |
double CmtDeviceMode2::getRealSampleFrequency | ( | void | ) | const |
Return the sample frequency in Hz.
This may be up to 2Hz different from the value that is set.
Definition at line 152 of file cmt3.cpp.
References m_period, and m_skip.
Referenced by xsens::Cmt3::getDeviceMode().
bool CmtDeviceMode2::operator== | ( | const CmtDeviceMode2 & | dev | ) | const |
Check if all fields of the two structures are equal.
Definition at line 191 of file cmt3.cpp.
References m_outputMode, m_outputSettings, m_period, and m_skip.
Compute the period and skip factor from a sample frequency.
This function does the reverse of the getPeriodAndSkipFactor function, storing the value in the m_period and m_skip field.
Definition at line 160 of file cmt3.cpp.
References freq, m_period, and m_skip.
Referenced by xsens::Cmt3::setDeviceMode().
CmtOutputMode CmtDeviceMode2::m_outputMode |
Definition at line 1018 of file cmtdef.h.
Referenced by xsens::Cmt3::getDeviceMode(), operator==(), and xsens::Cmt3::setDeviceMode().
CmtOutputSettings CmtDeviceMode2::m_outputSettings |
Definition at line 1019 of file cmtdef.h.
Referenced by xsens::Cmt3::getDeviceMode(), operator==(), and xsens::Cmt3::setDeviceMode().
uint16_t CmtDeviceMode2::m_period |
Definition at line 1020 of file cmtdef.h.
Referenced by getRealSampleFrequency(), getSampleFrequency(), operator==(), and setSampleFrequency().
uint16_t CmtDeviceMode2::m_skip |
Definition at line 1021 of file cmtdef.h.
Referenced by getRealSampleFrequency(), getSampleFrequency(), operator==(), and setSampleFrequency().
Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019 |