4 #ifndef FLATBUFFERS_GENERATED_FXNGENPARAMS_MAGAOX_LOGGER_H_ 5 #define FLATBUFFERS_GENERATED_FXNGENPARAMS_MAGAOX_LOGGER_H_ 7 #include "flatbuffers/flatbuffers.h" 12 struct Fxngen_params_fb;
30 return GetField<uint8_t>(VT_C1OUTP, 0);
33 return GetField<double>(VT_C1FREQ, 0.0);
36 return GetField<double>(VT_C1VPP, 0.0);
39 return GetField<double>(VT_C1OFST, 0.0);
42 return GetField<double>(VT_C1PHSE, 0.0);
45 return GetField<uint8_t>(VT_C1WVTP, 0);
48 return GetField<uint8_t>(VT_C2OUTP, 0);
51 return GetField<double>(VT_C2FREQ, 0.0);
54 return GetField<double>(VT_C2VPP, 0.0);
57 return GetField<double>(VT_C2OFST, 0.0);
60 return GetField<double>(VT_C2PHSE, 0.0);
63 return GetField<uint8_t>(VT_C2WVTP, 0);
65 bool Verify(flatbuffers::Verifier &verifier)
const {
66 return VerifyTableStart(verifier) &&
67 VerifyField<uint8_t>(verifier, VT_C1OUTP) &&
68 VerifyField<double>(verifier, VT_C1FREQ) &&
69 VerifyField<double>(verifier, VT_C1VPP) &&
70 VerifyField<double>(verifier, VT_C1OFST) &&
71 VerifyField<double>(verifier, VT_C1PHSE) &&
72 VerifyField<uint8_t>(verifier, VT_C1WVTP) &&
73 VerifyField<uint8_t>(verifier, VT_C2OUTP) &&
74 VerifyField<double>(verifier, VT_C2FREQ) &&
75 VerifyField<double>(verifier, VT_C2VPP) &&
76 VerifyField<double>(verifier, VT_C2OFST) &&
77 VerifyField<double>(verifier, VT_C2PHSE) &&
78 VerifyField<uint8_t>(verifier, VT_C2WVTP) &&
84 flatbuffers::FlatBufferBuilder &
fbb_;
87 fbb_.AddElement<uint8_t>(Fxngen_params_fb::VT_C1OUTP, C1outp, 0);
90 fbb_.AddElement<
double>(Fxngen_params_fb::VT_C1FREQ, C1freq, 0.0);
93 fbb_.AddElement<
double>(Fxngen_params_fb::VT_C1VPP, C1vpp, 0.0);
96 fbb_.AddElement<
double>(Fxngen_params_fb::VT_C1OFST, C1ofst, 0.0);
99 fbb_.AddElement<
double>(Fxngen_params_fb::VT_C1PHSE, C1phse, 0.0);
102 fbb_.AddElement<uint8_t>(Fxngen_params_fb::VT_C1WVTP, C1wvtp, 0);
105 fbb_.AddElement<uint8_t>(Fxngen_params_fb::VT_C2OUTP, C2outp, 0);
108 fbb_.AddElement<
double>(Fxngen_params_fb::VT_C2FREQ, C2freq, 0.0);
111 fbb_.AddElement<
double>(Fxngen_params_fb::VT_C2VPP, C2vpp, 0.0);
114 fbb_.AddElement<
double>(Fxngen_params_fb::VT_C2OFST, C2ofst, 0.0);
117 fbb_.AddElement<
double>(Fxngen_params_fb::VT_C2PHSE, C2phse, 0.0);
120 fbb_.AddElement<uint8_t>(Fxngen_params_fb::VT_C2WVTP, C2wvtp, 0);
124 start_ = fbb_.StartTable();
127 flatbuffers::Offset<Fxngen_params_fb>
Finish() {
128 const auto end = fbb_.EndTable(start_);
129 auto o = flatbuffers::Offset<Fxngen_params_fb>(end);
135 flatbuffers::FlatBufferBuilder &_fbb,
147 uint8_t C2wvtp = 0) {
165 return flatbuffers::GetRoot<MagAOX::logger::Fxngen_params_fb>(buf);
169 return flatbuffers::GetSizePrefixedRoot<MagAOX::logger::Fxngen_params_fb>(buf);
173 flatbuffers::Verifier &verifier) {
174 return verifier.VerifyBuffer<MagAOX::logger::Fxngen_params_fb>(
nullptr);
178 flatbuffers::Verifier &verifier) {
179 return verifier.VerifySizePrefixedBuffer<MagAOX::logger::Fxngen_params_fb>(
nullptr);
183 flatbuffers::FlatBufferBuilder &fbb,
184 flatbuffers::Offset<MagAOX::logger::Fxngen_params_fb> root) {
189 flatbuffers::FlatBufferBuilder &fbb,
190 flatbuffers::Offset<MagAOX::logger::Fxngen_params_fb> root) {
191 fbb.FinishSizePrefixed(root);
197 #endif // FLATBUFFERS_GENERATED_FXNGENPARAMS_MAGAOX_LOGGER_H_ void add_C2wvtp(uint8_t C2wvtp)
bool VerifySizePrefixedFxngen_params_fbBuffer(flatbuffers::Verifier &verifier)
void add_C1outp(uint8_t C1outp)
flatbuffers::Offset< Fxngen_params_fb > Finish()
const MagAOX::logger::Fxngen_params_fb * GetSizePrefixedFxngen_params_fb(const void *buf)
flatbuffers::FlatBufferBuilder & fbb_
void add_C2outp(uint8_t C2outp)
Fxngen_params_fbBuilder(flatbuffers::FlatBufferBuilder &_fbb)
void add_C1phse(double C1phse)
void add_C1ofst(double C1ofst)
bool Verify(flatbuffers::Verifier &verifier) const
void add_C1wvtp(uint8_t C1wvtp)
flatbuffers::uoffset_t start_
flatbuffers::Offset< Fxngen_params_fb > CreateFxngen_params_fb(flatbuffers::FlatBufferBuilder &_fbb, uint8_t C1outp=0, double C1freq=0.0, double C1vpp=0.0, double C1ofst=0.0, double C1phse=0.0, uint8_t C1wvtp=0, uint8_t C2outp=0, double C2freq=0.0, double C2vpp=0.0, double C2ofst=0.0, double C2phse=0.0, uint8_t C2wvtp=0)
void add_C1vpp(double C1vpp)
void add_C2freq(double C2freq)
void add_C2vpp(double C2vpp)
bool VerifyFxngen_params_fbBuffer(flatbuffers::Verifier &verifier)
void add_C2phse(double C2phse)
void add_C2ofst(double C2ofst)
void FinishFxngen_params_fbBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< MagAOX::logger::Fxngen_params_fb > root)
void add_C1freq(double C1freq)
void FinishSizePrefixedFxngen_params_fbBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< MagAOX::logger::Fxngen_params_fb > root)
const MagAOX::logger::Fxngen_params_fb * GetFxngen_params_fb(const void *buf)