Commit f8514eac authored by Maximilian Gerhard's avatar Maximilian Gerhard
Browse files

sbem_def_h

parent 3af01be6
#pragma once
#include "sbem_types.h"
#include "common/core/dbgassert.h"
DECLARE_GROUP(MEAS_ACC_SAMPLERATE_ARRAYACC_)
DECLARE_GROUP(MEAS_ACC_SAMPLERATE_1)
DECLARE_GROUP(MEAS_ACC_SAMPLERATE_2)
DECLARE_GROUP(MEAS_ACC_SAMPLERATE_3)
DECLARE_GROUP(MEAS_ACC_SAMPLERATE_4)
DECLARE_GROUP(MEAS_ACC_SAMPLERATE_5)
DECLARE_GROUP(MEAS_ACC_SAMPLERATE_6)
DECLARE_GROUP(MEAS_ACC_SAMPLERATE_7)
DECLARE_GROUP(MEAS_ACC_SAMPLERATE_8)
DECLARE_GROUP(MEAS_ECG_REQUIREDSAMPLERATE_1)
DECLARE_GROUP(MEAS_ECG_REQUIREDSAMPLERATE_2)
DECLARE_GROUP(MEAS_ECG_REQUIREDSAMPLERATE_3)
DECLARE_GROUP(MEAS_ECG_REQUIREDSAMPLERATE_4)
DECLARE_GROUP(MEAS_ECG_REQUIREDSAMPLERATE_5)
DECLARE_GROUP(MEAS_ECG_REQUIREDSAMPLERATE_6)
DECLARE_GROUP(MEAS_ECG_REQUIREDSAMPLERATE_7)
DECLARE_GROUP(MEAS_ECG_REQUIREDSAMPLERATE_8)
DECLARE_GROUP(MEAS_GYRO_SAMPLERATE_ARRAYGYRO_)
DECLARE_GROUP(MEAS_GYRO_SAMPLERATE_1)
DECLARE_GROUP(MEAS_GYRO_SAMPLERATE_2)
DECLARE_GROUP(MEAS_GYRO_SAMPLERATE_3)
DECLARE_GROUP(MEAS_GYRO_SAMPLERATE_4)
DECLARE_GROUP(MEAS_GYRO_SAMPLERATE_5)
DECLARE_GROUP(MEAS_GYRO_SAMPLERATE_6)
DECLARE_GROUP(MEAS_GYRO_SAMPLERATE_7)
DECLARE_GROUP(MEAS_GYRO_SAMPLERATE_8)
DECLARE_GROUP(MEAS_HR_1)
DECLARE_GROUP(MEAS_HR_2)
DECLARE_GROUP(MEAS_HR_3)
DECLARE_GROUP(MEAS_HR_4)
DECLARE_GROUP(MEAS_HR_5)
DECLARE_GROUP(MEAS_HR_6)
DECLARE_GROUP(MEAS_HR_7)
DECLARE_GROUP(MEAS_HR_8)
DECLARE_GROUP(MEAS_IMU6_SAMPLERATE_ARRAYACC_)
DECLARE_GROUP(MEAS_IMU6_SAMPLERATE_ARRAYGYRO_)
DECLARE_GROUP(MEAS_IMU6_SAMPLERATE_1)
DECLARE_GROUP(MEAS_IMU6_SAMPLERATE_2)
DECLARE_GROUP(MEAS_IMU6_SAMPLERATE_3)
DECLARE_GROUP(MEAS_IMU6_SAMPLERATE_4)
DECLARE_GROUP(MEAS_IMU6_SAMPLERATE_5)
DECLARE_GROUP(MEAS_IMU6_SAMPLERATE_6)
DECLARE_GROUP(MEAS_IMU6_SAMPLERATE_7)
DECLARE_GROUP(MEAS_IMU6_SAMPLERATE_8)
DECLARE_GROUP(MEAS_IMU6M_SAMPLERATE_ARRAYACC_)
DECLARE_GROUP(MEAS_IMU6M_SAMPLERATE_ARRAYMAGN_)
DECLARE_GROUP(MEAS_IMU6M_SAMPLERATE_1)
DECLARE_GROUP(MEAS_IMU6M_SAMPLERATE_2)
DECLARE_GROUP(MEAS_IMU6M_SAMPLERATE_3)
DECLARE_GROUP(MEAS_IMU6M_SAMPLERATE_4)
DECLARE_GROUP(MEAS_IMU6M_SAMPLERATE_5)
DECLARE_GROUP(MEAS_IMU6M_SAMPLERATE_6)
DECLARE_GROUP(MEAS_IMU6M_SAMPLERATE_7)
DECLARE_GROUP(MEAS_IMU6M_SAMPLERATE_8)
DECLARE_GROUP(MEAS_IMU9_SAMPLERATE_ARRAYACC_)
DECLARE_GROUP(MEAS_IMU9_SAMPLERATE_ARRAYGYRO_)
DECLARE_GROUP(MEAS_IMU9_SAMPLERATE_ARRAYMAGN_)
DECLARE_GROUP(MEAS_IMU9_SAMPLERATE_1)
DECLARE_GROUP(MEAS_IMU9_SAMPLERATE_2)
DECLARE_GROUP(MEAS_IMU9_SAMPLERATE_3)
DECLARE_GROUP(MEAS_IMU9_SAMPLERATE_4)
DECLARE_GROUP(MEAS_IMU9_SAMPLERATE_5)
DECLARE_GROUP(MEAS_IMU9_SAMPLERATE_6)
DECLARE_GROUP(MEAS_IMU9_SAMPLERATE_7)
DECLARE_GROUP(MEAS_IMU9_SAMPLERATE_8)
DECLARE_GROUP(MEAS_MAGN_SAMPLERATE_ARRAYMAGN_)
DECLARE_GROUP(MEAS_MAGN_SAMPLERATE_1)
DECLARE_GROUP(MEAS_MAGN_SAMPLERATE_2)
DECLARE_GROUP(MEAS_MAGN_SAMPLERATE_3)
DECLARE_GROUP(MEAS_MAGN_SAMPLERATE_4)
DECLARE_GROUP(MEAS_MAGN_SAMPLERATE_5)
DECLARE_GROUP(MEAS_MAGN_SAMPLERATE_6)
DECLARE_GROUP(MEAS_MAGN_SAMPLERATE_7)
DECLARE_GROUP(MEAS_MAGN_SAMPLERATE_8)
DECLARE_GROUP(MEAS_TEMP_)
DECLARE_GROUP(SAMPLE_HELLOWORLD_)
DECLARE_GROUP(WHITEBOARD_METRICS_COMM_)
extern const DescriptorItem_t s_possibleSbemItems[49];
enum SbemValueIds_e {
COMMON_DESCRIPTOR = CommonValueIds_e::DESCRIPTOR,
COMMON_SOURCE = CommonValueIds_e::SOURCE,
COMMON_TIMEISO8601 = CommonValueIds_e::TIMEISO8601,
NET,
TIME,
MEAS_ACC_SAMPLERATE_ARRAYACC_X,
MEAS_ACC_SAMPLERATE_ARRAYACC_Y,
MEAS_ACC_SAMPLERATE_ARRAYACC_Z,
MEAS_ACC_SAMPLERATE_TIMESTAMP,
MEAS_ECG_REQUIREDSAMPLERATE_SAMPLES,
MEAS_ECG_REQUIREDSAMPLERATE_TIMESTAMP,
MEAS_GYRO_SAMPLERATE_ARRAYGYRO_X,
MEAS_GYRO_SAMPLERATE_ARRAYGYRO_Y,
MEAS_GYRO_SAMPLERATE_ARRAYG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OARD_METRICS_COMM_RECEIVEDBYTES,
WHITEBOARD_METRICS_COMM_SENTBYTES,
ARRAY_BEGIN,
ARRAY_END,
SbemValueIds_COUNT,
};
enum SbemGroupIds_e {
BEFORE_GROUPS_ID = SbemValueIds_COUNT-1,
MEAS_ACC_SAMPLERATE_ARRAYACC_,
MEAS_ACC_SAMPLERATE_1,
MEAS_ACC_SAMPLERATE_2,
MEAS_ACC_SAMPLERATE_3,
MEAS_ACC_SAMPLERATE_4,
MEAS_ACC_SAMPLERATE_5,
MEAS_ACC_SAMPLERATE_6,
MEAS_ACC_SAMPLERATE_7,
MEAS_ACC_SAMPLERATE_8,
MEAS_ECG_REQUIREDSAMPLERATE_1,
MEAS_ECG_REQUIREDSAMPLERATE_2,
MEAS_ECG_REQUIREDSAMPLERATE_3,
MEAS_ECG_REQUIREDSAMPLERATE_4,
MEAS_ECG_REQUIREDSAMPLERATE_5,
MEAS_ECG_REQUIREDSAMPLERATE_6,
MEAS_ECG_REQUIREDSAMPLERATE_7,
MEAS_ECG_REQUIREDSAMPLERATE_8,
MEAS_GYRO_SAMPLERATE_ARRAYGYRO_,
MEAS_GYRO_SAMPLERATE_1,
MEAS_GYRO_SAMPLERATE_2,
MEAS_GYRO_SAMPLERATE_3,
MEAS_GYRO_SAMPLERATE_4,
MEAS_GYRO_SAMPLERATE_5,
MEAS_GYRO_SAMPLERATE_6,
MEAS_GYRO_SAMPLERATE_7,
MEAS_GYRO_SAMPLERATE_8,
MEAS_HR_1,
MEAS_HR_2,
MEAS_HR_3,
MEAS_HR_4,
MEAS_HR_5,
MEAS_HR_6,
MEAS_HR_7,
MEAS_HR_8,
MEAS_IMU6_SAMPLERATE_ARRAYACC_,
MEAS_IMU6_SAMPLERATE_ARRAYGYRO_,
MEAS_IMU6_SAMPLERATE_1,
MEAS_IMU6_SAMPLERATE_2,
MEAS_IMU6_SAMPLERATE_3,
MEAS_IMU6_SAMPLERATE_4,
MEAS_IMU6_SAMPLERATE_5,
MEAS_IMU6_SAMPLERATE_6,
MEAS_IMU6_SAMPLERATE_7,
MEAS_IMU6_SAMPLERATE_8,
MEAS_IMU6M_SAMPLERATE_ARRAYACC_,
MEAS_IMU6M_SAMPLERATE_ARRAYMAGN_,
MEAS_IMU6M_SAMPLERATE_1,
MEAS_IMU6M_SAMPLERATE_2,
MEAS_IMU6M_SAMPLERATE_3,
MEAS_IMU6M_SAMPLERATE_4,
MEAS_IMU6M_SAMPLERATE_5,
MEAS_IMU6M_SAMPLERATE_6,
MEAS_IMU6M_SAMPLERATE_7,
MEAS_IMU6M_SAMPLERATE_8,
MEAS_IMU9_SAMPLERATE_ARRAYACC_,
MEAS_IMU9_SAMPLERATE_ARRAYGYRO_,
MEAS_IMU9_SAMPLERATE_ARRAYMAGN_,
MEAS_IMU9_SAMPLERATE_1,
MEAS_IMU9_SAMPLERATE_2,
MEAS_IMU9_SAMPLERATE_3,
MEAS_IMU9_SAMPLERATE_4,
MEAS_IMU9_SAMPLERATE_5,
MEAS_IMU9_SAMPLERATE_6,
MEAS_IMU9_SAMPLERATE_7,
MEAS_IMU9_SAMPLERATE_8,
MEAS_MAGN_SAMPLERATE_ARRAYMAGN_,
MEAS_MAGN_SAMPLERATE_1,
MEAS_MAGN_SAMPLERATE_2,
MEAS_MAGN_SAMPLERATE_3,
MEAS_MAGN_SAMPLERATE_4,
MEAS_MAGN_SAMPLERATE_5,
MEAS_MAGN_SAMPLERATE_6,
MEAS_MAGN_SAMPLERATE_7,
MEAS_MAGN_SAMPLERATE_8,
MEAS_TEMP_,
SAMPLE_HELLOWORLD_,
WHITEBOARD_METRICS_COMM_,
};
extern const DescriptorGroup_t s_possibleSbemGroups[77];
size_t writeToSbemBuffer_MEAS_ACC_SAMPLERATE(void *buffer, size_t bufferLen, size_t startOffset, const WB_RES::LOCAL::MEAS_ACC_SAMPLERATE::EVENT::NotificationType &data);
size_t writeToSbemBuffer_MEAS_ECG_REQUIREDSAMPLERATE(void *buffer, size_t bufferLen, size_t startOffset, const WB_RES::LOCAL::MEAS_ECG_REQUIREDSAMPLERATE::EVENT::NotificationType &data);
size_t writeToSbemBuffer_MEAS_GYRO_SAMPLERATE(void *buffer, size_t bufferLen, size_t startOffset, const WB_RES::LOCAL::MEAS_GYRO_SAMPLERATE::EVENT::NotificationType &data);
size_t writeToSbemBuffer_MEAS_HR(void *buffer, size_t bufferLen, size_t startOffset, const WB_RES::LOCAL::MEAS_HR::EVENT::NotificationType &data);
size_t writeToSbemBuffer_MEAS_IMU6_SAMPLERATE(void *buffer, size_t bufferLen, size_t startOffset, const WB_RES::LOCAL::MEAS_IMU6_SAMPLERATE::EVENT::NotificationType &data);
size_t writeToSbemBuffer_MEAS_IMU6M_SAMPLERATE(void *buffer, size_t bufferLen, size_t startOffset, const WB_RES::LOCAL::MEAS_IMU6M_SAMPLERATE::EVENT::NotificationType &data);
size_t writeToSbemBuffer_MEAS_IMU9_SAMPLERATE(void *buffer, size_t bufferLen, size_t startOffset, const WB_RES::LOCAL::MEAS_IMU9_SAMPLERATE::EVENT::NotificationType &data);
size_t writeToSbemBuffer_MEAS_MAGN_SAMPLERATE(void *buffer, size_t bufferLen, size_t startOffset, const WB_RES::LOCAL::MEAS_MAGN_SAMPLERATE::EVENT::NotificationType &data);
size_t writeToSbemBuffer_MEAS_TEMP(void *buffer, size_t bufferLen, size_t startOffset, const WB_RES::LOCAL::MEAS_TEMP::EVENT::NotificationType &data);
size_t writeToSbemBuffer_TIME(void *buffer, size_t bufferLen, size_t startOffset, const WB_RES::LOCAL::TIME::EVENT::NotificationType &data);
size_t writeToSbemBuffer_WHITEBOARD_METRICS_COMM(void *buffer, size_t bufferLen, size_t startOffset, const WB_RES::LOCAL::WHITEBOARD_METRICS_COMM::EVENT::NotificationType &data);
size_t getSbemLength_MEAS_ACC_SAMPLERATE(const WB_RES::LOCAL::MEAS_ACC_SAMPLERATE::EVENT::NotificationType &data);
size_t getSbemLength_MEAS_ECG_REQUIREDSAMPLERATE(const WB_RES::LOCAL::MEAS_ECG_REQUIREDSAMPLERATE::EVENT::NotificationType &data);
size_t getSbemLength_MEAS_GYRO_SAMPLERATE(const WB_RES::LOCAL::MEAS_GYRO_SAMPLERATE::EVENT::NotificationType &data);
size_t getSbemLength_MEAS_HR(const WB_RES::LOCAL::MEAS_HR::EVENT::NotificationType &data);
size_t getSbemLength_MEAS_IMU6_SAMPLERATE(const WB_RES::LOCAL::MEAS_IMU6_SAMPLERATE::EVENT::NotificationType &data);
size_t getSbemLength_MEAS_IMU6M_SAMPLERATE(const WB_RES::LOCAL::MEAS_IMU6M_SAMPLERATE::EVENT::NotificationType &data);
size_t getSbemLength_MEAS_IMU9_SAMPLERATE(const WB_RES::LOCAL::MEAS_IMU9_SAMPLERATE::EVENT::NotificationType &data);
size_t getSbemLength_MEAS_MAGN_SAMPLERATE(const WB_RES::LOCAL::MEAS_MAGN_SAMPLERATE::EVENT::NotificationType &data);
size_t getSbemLength_MEAS_TEMP(const WB_RES::LOCAL::MEAS_TEMP::EVENT::NotificationType &data);
size_t getSbemLength_TIME(const WB_RES::LOCAL::TIME::EVENT::NotificationType &data);
size_t getSbemLength_WHITEBOARD_METRICS_COMM(const WB_RES::LOCAL::WHITEBOARD_METRICS_COMM::EVENT::NotificationType &data);
extern const SbemResID2ItemIdMapping s_sbemResID2ItemIdMap[1];
extern const SbemResID2GrpIdMapping s_sbemResID2GrpIdMap[66];
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment