sbgECom Library
5.3.2276-stable
Interface SBG Systems IMU/AHRS/INS
|
Vibration monitoring FFT context management. More...
Go to the source code of this file.
Data Structures | |
struct | _SbgEComVibMonFftCtx |
Macros | |
#define | SBG_ECOM_VIB_MON_FFT_CTX_BUFFER_SIZE (8192) |
Typedefs | |
typedef struct _SbgEComVibMonFftCtx | SbgEComVibMonFftCtx |
Functions | |
void | sbgEComVibMonFftCtxConstruct (SbgEComVibMonFftCtx *pCtx) |
SbgErrorCode | sbgEComVibMonFftCtxProcess (SbgEComVibMonFftCtx *pCtx, uint16_t pageIndex, uint16_t nrPages, const void *pBuffer, size_t size) |
SbgErrorCode | sbgEComVibMonFftCtxGetStreamBuffer (const SbgEComVibMonFftCtx *pCtx, SbgStreamBuffer *pStreamBuffer) |
Vibration monitoring FFT context management.
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.
#define SBG_ECOM_VIB_MON_FFT_CTX_BUFFER_SIZE (8192) |
Vibration monitoring FFT buffer size, in bytes.
The buffer contains the FFT magnitudes for each bin, as 16-bits unsigned, and some additional data.
typedef struct _SbgEComVibMonFftCtx SbgEComVibMonFftCtx |
Vibration monitoring FFT context.
This object is used to reconstruct the FFT data from received chunks as the FFT is not transmitted in a single frame.
void sbgEComVibMonFftCtxConstruct | ( | SbgEComVibMonFftCtx * | pCtx | ) |
Vibration monitoring FFT constructor.
[in] | pCtx | Vibration monitoring FFT context. |
SbgErrorCode sbgEComVibMonFftCtxProcess | ( | SbgEComVibMonFftCtx * | pCtx, |
uint16_t | pageIndex, | ||
uint16_t | nrPages, | ||
const void * | pBuffer, | ||
size_t | size ) |
Process the content of a vibration monitoring FFT log.
[in] | pCtx | Vibration monitoring FFT context. |
[in] | pageIndex | Page index. |
[in] | nrPages | Total number of pages. |
[in] | pBuffer | Buffer. |
[in] | size | Buffer size, in bytes. |
SbgErrorCode sbgEComVibMonFftCtxGetStreamBuffer | ( | const SbgEComVibMonFftCtx * | pCtx, |
SbgStreamBuffer * | pStreamBuffer ) |
Get the stream buffer from a vibration monitoring FFT context.
If available, the stream buffer remains valid until the next call to the processing function.
[in] | pCtx | Vibration monitoring FFT context. |
[out] | pStreamBuffer | Stream buffer. |