2#include "../../../../tests/catch2/catch.hpp"
3#include "../generated/logCodes.hpp"
4#include "../types/telem_fxngen.hpp"
5#include "../types/generated/telem_fxngen_generated.h"
6#include "../types/flatbuffer_log.hpp"
81 CTelemFxngen_0(uint8_t C1outp_,
double C1freq_,
double C1vpp_,
double C1ofst_,
double C1phse_, uint8_t C1wvtp_, uint8_t C2outp_,
double C2freq_,
double C2vpp_,
double C2ofst_,
double C2phse_, uint8_t C2wvtp_, uint8_t C1sync_, uint8_t C2sync_,
double C1wdth_,
double C2wdth_) {
101 auto tf =
MagAOX::logger::telem_fxngen::messageT(C1outp_, C1freq_, C1vpp_, C1ofst_, C1phse_, C1wvtp_, C2outp_, C2freq_, C2vpp_, C2ofst_, C2phse_, C2wvtp_, C1sync_, C2sync_, C1wdth_, C2wdth_);
104 void* buffPtr = tf.builder.GetBufferPointer();
147 flatlogs::logHeader::createLog<MagAOX::logger::telem_fxngen>(logBuffer
157 GIVEN(
"a telem_fxngen log code")
159 WHEN(
"random values for fields")
162 CTelemFxngen_0 tf =
CTelemFxngen_0(
telemFxngenC1outp_0,
telemFxngenC1freq_0,
telemFxngenC1vpp_0,
telemFxngenC1ofst_0,
telemFxngenC1phse_0,
telemFxngenC1wvtp_0,
telemFxngenC2outp_0,
telemFxngenC2freq_0,
telemFxngenC2vpp_0,
telemFxngenC2ofst_0,
telemFxngenC2phse_0,
telemFxngenC2wvtp_0,
telemFxngenC1sync_0,
telemFxngenC2sync_0,
telemFxngenC1wdth_0,
telemFxngenC2wdth_0);
bool verify(const typename MagAOX::logger::telem_fxngen::messageT &msg)
CTelemFxngen_0(uint8_t C1outp_, double C1freq_, double C1vpp_, double C1ofst_, double C1phse_, uint8_t C1wvtp_, uint8_t C2outp_, double C2freq_, double C2vpp_, double C2ofst_, double C2phse_, uint8_t C2wvtp_, uint8_t C1sync_, uint8_t C2sync_, double C1wdth_, double C2wdth_)
int8_t logPrioT
The type of the log priority code.
std::shared_ptr< char > bufferPtrT
The log entry buffer smart pointer.
const MagAOX::logger::Telem_fxngen_fb * GetTelem_fxngen_fb(const void *buf)
static constexpr logPrioT LOG_DEFAULT
Used to denote "use the default level for this log type".
static flatlogs::msgLenT length(const fbMessage &msg)
Get the length of the message.
The type of the input message.
static bool verify(flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)
A fixed-width timespec structure.
const double telemFxngenC1wdth_0
const uint8_t telemFxngenC2outp_0
SCENARIO("Create telem_fxngen 0", "[a log item]")
const uint8_t telemFxngenC2wvtp_0
const uint8_t telemFxngenC1outp_0
const uint8_t telemFxngenC1wvtp_0
const double telemFxngenC1vpp_0
const double telemFxngenC1phse_0
const double telemFxngenC2phse_0
const double telemFxngenC1ofst_0
const uint8_t telemFxngenC1sync_0
const double telemFxngenC2freq_0
const double telemFxngenC1freq_0
const double telemFxngenC2ofst_0
const uint8_t telemFxngenC2sync_0
const double telemFxngenC2vpp_0
const double telemFxngenC2wdth_0