MRPT
1.9.9
|
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 161 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 201 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 170 of file cmt3.cpp.
References m_period, and m_skip.
Referenced by xsens::Cmt3::setDeviceMode().
CmtOutputMode CmtDeviceMode2::m_outputMode |
Definition at line 1053 of file cmtdef.h.
Referenced by xsens::Cmt3::getDeviceMode(), operator==(), and xsens::Cmt3::setDeviceMode().
CmtOutputSettings CmtDeviceMode2::m_outputSettings |
Definition at line 1054 of file cmtdef.h.
Referenced by xsens::Cmt3::getDeviceMode(), operator==(), and xsens::Cmt3::setDeviceMode().
uint16_t CmtDeviceMode2::m_period |
Definition at line 1055 of file cmtdef.h.
Referenced by getRealSampleFrequency(), getSampleFrequency(), operator==(), and setSampleFrequency().
uint16_t CmtDeviceMode2::m_skip |
Definition at line 1056 of file cmtdef.h.
Referenced by getRealSampleFrequency(), getSampleFrequency(), operator==(), and setSampleFrequency().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020 |