sbgECom Library
5.3.2276-stable
Interface SBG Systems IMU/AHRS/INS
|
Vibration monitoring related logs. More...
Go to the source code of this file.
Data Structures | |
struct | _SbgEComLogVibMonFft |
struct | _SbgEComLogVibMonBand |
struct | _SbgEComLogVibMonReport |
Typedefs | |
typedef enum _SbgEComVibMonAxis | SbgEComVibMonAxis |
typedef enum _SbgEComVibMonWindow | SbgEComVibMonWindow |
typedef struct _SbgEComLogVibMonFft | SbgEComLogVibMonFft |
typedef struct _SbgEComLogVibMonBand | SbgEComLogVibMonBand |
typedef struct _SbgEComLogVibMonReport | SbgEComLogVibMonReport |
Enumerations | |
enum | _SbgEComVibMonAxis { SBG_ECOM_VIB_MON_AXIS_X = 0 , SBG_ECOM_VIB_MON_AXIS_Y = 1 , SBG_ECOM_VIB_MON_AXIS_Z = 2 } |
enum | _SbgEComVibMonWindow { SBG_ECOM_VIB_MON_WINDOW_RECTANGULAR = 0 , SBG_ECOM_VIB_MON_WINDOW_HANNING = 1 , SBG_ECOM_VIB_MON_WINDOW_FLAT_TOP = 2 } |
Vibration monitoring related logs.
The MIT license
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
typedef enum _SbgEComVibMonAxis SbgEComVibMonAxis |
Axes.
typedef enum _SbgEComVibMonWindow SbgEComVibMonWindow |
Windows.
typedef struct _SbgEComLogVibMonFft SbgEComLogVibMonFft |
Log structure for vibration monitoring FFT data.
typedef struct _SbgEComLogVibMonBand SbgEComLogVibMonBand |
Structure for a frequency band.
typedef struct _SbgEComLogVibMonReport SbgEComLogVibMonReport |
Log structure for vibration monitoring report information.
enum _SbgEComVibMonAxis |
enum _SbgEComVibMonWindow |
void sbgEComLogVibMonFftZeroInit | ( | SbgEComLogVibMonFft * | pLogData | ) |
Zero initialize the message struct.
[out] | pLogData | Structure instance to zero init. |
SbgErrorCode sbgEComLogVibMonFftReadFromStream | ( | SbgEComLogVibMonFft * | pLogData, |
SbgStreamBuffer * | pStreamBuffer ) |
Parse data for the SBG_ECOM_LOG_VIB_MON_FFT message and fill the corresponding structure.
[out] | pLogData | Log structure instance to fill. |
[in] | pStreamBuffer | Input stream buffer to read the log from. |
SbgErrorCode sbgEComLogVibMonFftWriteToStream | ( | const SbgEComLogVibMonFft * | pLogData, |
SbgStreamBuffer * | pStreamBuffer ) |
Write data for the SBG_ECOM_LOG_VIB_MON_FFT message to the output stream buffer from the provided structure.
[in] | pLogData | Log structure instance to write. |
[out] | pStreamBuffer | Output stream buffer to write the log to. |
void sbgEComLogVibMonReportZeroInit | ( | SbgEComLogVibMonReport * | pLogData | ) |
Zero initialize the message struct.
[out] | pLogData | Structure instance to zero init. |
SbgErrorCode sbgEComLogVibMonReportReadFromStream | ( | SbgEComLogVibMonReport * | pLogData, |
SbgStreamBuffer * | pStreamBuffer ) |
Parse data for the SBG_ECOM_LOG_VIB_MON_REPORT message and fill the corresponding structure.
[out] | pLogData | Log structure instance to fill. |
[in] | pStreamBuffer | Input stream buffer to read the log from. |
SbgErrorCode sbgEComLogVibMonReportWriteToStream | ( | const SbgEComLogVibMonReport * | pLogData, |
SbgStreamBuffer * | pStreamBuffer ) |
Write data for the SBG_ECOM_LOG_VIB_MON_REPORT message to the output stream buffer from the provided structure.
[in] | pLogData | Log structure instance to write. |
[out] | pStreamBuffer | Output stream buffer to write the log to. |
SbgEComVibMonAxis sbgEComLogVibMonReportGetAxis | ( | const SbgEComLogVibMonReport * | pLogData | ) |
Returns the vibration monitoring axis status.
[in] | pLogData | Log instance. |
SbgEComVibMonWindow sbgEComLogVibMonReportGetWindow | ( | const SbgEComLogVibMonReport * | pLogData | ) |
Returns the vibration monitoring window status.
[in] | pLogData | Log instance. |
const SbgEComLogVibMonBand * sbgEComLogVibMonReportGetMaxPeakBand | ( | const SbgEComLogVibMonReport * | pLogData | ) |
Returns a pointer to the frequency band with the highest peak amplitude.
This function scans all frequency bands in the given vibration monitoring report and returns a pointer to the band where the signal peak is the highest.
[in] | pLogData | Pointer to the vibration monitoring report log. |
SbgEComVibMonAxis sbgEComLogVibMonStatusGetAxis | ( | uint16_t | status | ) |
Returns the vibration monitoring axis status.
[in] | status | Vibration monitoring status. |
SbgEComVibMonWindow sbgEComLogVibMonStatusGetWindow | ( | uint16_t | status | ) |
Returns the vibration monitoring window status.
[in] | status | Vibration monitoring status. |
uint16_t sbgEComLogVibMonMakeStatus | ( | SbgEComVibMonAxis | axis, |
SbgEComVibMonWindow | window ) |
Make a vibration monitoring status.
[in] | axis | Axis. |
[in] | window | Window. |