API
 
Loading...
Searching...
No Matches
MagAOX::logger::cred2_temps Struct Reference

Log entry recording the C-RED 2 detailed temperature channels. More...

#include <cred2_temps.hpp>

Inheritance diagram for MagAOX::logger::cred2_temps:
Inheritance graph
Collaboration diagram for MagAOX::logger::cred2_temps:
Collaboration graph

Classes

struct  messageT
 The type of the input message. More...
 

Static Public Member Functions

static bool verify (flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)
 
static std::string msgString (void *msgBuffer, flatlogs::msgLenT len)
 Get the message formatted for human consumption.
 
static float motherboard (void *msgBuffer)
 
static float frontend (void *msgBuffer)
 
static float powerboard (void *msgBuffer)
 
static float snake (void *msgBuffer)
 
static float setpoint (void *msgBuffer)
 
static float peltier (void *msgBuffer)
 
static float heatsink (void *msgBuffer)
 
static logMetaDetail getAccessor (const std::string &member)
 Get the logMetaDetail for a member by name.
 
static flatlogs::msgLenT length (const fbMessage &msg)
 Get the length of the message.
 
static int format (void *msgBuffer, const fbMessage &msg)
 Format the buffer given the input message.
 
static std::string msgJSON (void *msgBuffer, flatlogs::msgLenT len, const uint8_t *binarySchema, const unsigned int binarySchemaLength)
 

Static Public Attributes

static const flatlogs::eventCodeT eventCode = eventCodes::CRED2_TEMPS
 The event code.
 
static const flatlogs::logPrioT defaultLevel = flatlogs::logPrio::LOG_TELEM
 The default level.
 
static timespec lastRecord = { 0, 0 }
 The timestamp of the last time this log was recorded. Used by telemetry.
 

Detailed Description

Log entry recording the C-RED 2 detailed temperature channels.

Definition at line 24 of file cred2_temps.hpp.

Member Function Documentation

◆ format()

static int MagAOX::logger::flatbuffer_log::format ( void *  msgBuffer,
const fbMessage msg 
)
inlinestaticinherited

Format the buffer given the input message.

Todo:
this is an unneccesary memcpy from the FlatBufferBuilder, we need to figure out how to not do this.
Parameters
[out]msgBufferthe buffer, must be pre-allocated to size length(msg)
[in]msgthe message which contains a flatbuffer builder, from which the data are memcpy-ed.

Definition at line 54 of file flatbuffer_log.hpp.

◆ frontend()

static float MagAOX::logger::cred2_temps::frontend ( void *  msgBuffer)
inlinestatic
Parameters
[in]msgBufferbuffer containing the flatbuffer serialized message

Definition at line 101 of file cred2_temps.hpp.

References MagAOX::logger::GetCred2_temps_fb().

Referenced by MagAOX::logger::cred2_temps::messageT::messageT(), and getAccessor().

◆ getAccessor()

static logMetaDetail MagAOX::logger::cred2_temps::getAccessor ( const std::string &  member)
inlinestatic

Get the logMetaDetail for a member by name.

Returns
a logMetaDetail filled in with the appropriate details
an empty logMetaDetail if member not recognized
Parameters
[in]memberthe name of the member

Definition at line 142 of file cred2_temps.hpp.

References MagAOX::logger::logMeta::Continuous, MagAOX::logger::logMeta::Float, frontend(), heatsink(), motherboard(), peltier(), powerboard(), setpoint(), and snake().

Referenced by MagAOX::logger::logMemberAccessor().

◆ heatsink()

static float MagAOX::logger::cred2_temps::heatsink ( void *  msgBuffer)
inlinestatic
Parameters
[in]msgBufferbuffer containing the flatbuffer serialized message

Definition at line 131 of file cred2_temps.hpp.

References MagAOX::logger::GetCred2_temps_fb().

Referenced by MagAOX::logger::cred2_temps::messageT::messageT(), and getAccessor().

◆ length()

static flatlogs::msgLenT MagAOX::logger::flatbuffer_log::length ( const fbMessage msg)
inlinestaticinherited

Get the length of the message.

Parameters
[in]msgthe fbMessage type holding a FlatBufferBuilder

Definition at line 46 of file flatbuffer_log.hpp.

◆ motherboard()

static float MagAOX::logger::cred2_temps::motherboard ( void *  msgBuffer)
inlinestatic
Parameters
[in]msgBufferbuffer containing the flatbuffer serialized message

Definition at line 95 of file cred2_temps.hpp.

References MagAOX::logger::GetCred2_temps_fb().

Referenced by MagAOX::logger::cred2_temps::messageT::messageT(), and getAccessor().

◆ msgJSON()

static std::string MagAOX::logger::flatbuffer_log::msgJSON ( void *  msgBuffer,
flatlogs::msgLenT  len,
const uint8_t *  binarySchema,
const unsigned int  binarySchemaLength 
)
inlinestaticinherited
Parameters
[in]msgBufferBuffer containing the flatbuffer serialized message.
[in]len[unused] length of msgBuffer.
[in]binarySchemaflatbuffers binary schema for this log type
[in]binarySchemaLengthflatbuffers binary schema length

Definition at line 65 of file flatbuffer_log.hpp.

◆ msgString()

static std::string MagAOX::logger::cred2_temps::msgString ( void *  msgBuffer,
flatlogs::msgLenT  len 
)
inlinestatic

Get the message formatted for human consumption.

Parameters
[in]msgBufferbuffer containing the flatbuffer serialized message
[in]len[unused] length of msgBuffer

Definition at line 63 of file cred2_temps.hpp.

References MagAOX::logger::GetCred2_temps_fb().

◆ peltier()

static float MagAOX::logger::cred2_temps::peltier ( void *  msgBuffer)
inlinestatic
Parameters
[in]msgBufferbuffer containing the flatbuffer serialized message

Definition at line 125 of file cred2_temps.hpp.

References MagAOX::logger::GetCred2_temps_fb().

Referenced by MagAOX::logger::cred2_temps::messageT::messageT(), and getAccessor().

◆ powerboard()

static float MagAOX::logger::cred2_temps::powerboard ( void *  msgBuffer)
inlinestatic
Parameters
[in]msgBufferbuffer containing the flatbuffer serialized message

Definition at line 107 of file cred2_temps.hpp.

References MagAOX::logger::GetCred2_temps_fb().

Referenced by MagAOX::logger::cred2_temps::messageT::messageT(), and getAccessor().

◆ setpoint()

static float MagAOX::logger::cred2_temps::setpoint ( void *  msgBuffer)
inlinestatic
Parameters
[in]msgBufferbuffer containing the flatbuffer serialized message

Definition at line 119 of file cred2_temps.hpp.

References MagAOX::logger::GetCred2_temps_fb().

Referenced by MagAOX::logger::cred2_temps::messageT::messageT(), and getAccessor().

◆ snake()

static float MagAOX::logger::cred2_temps::snake ( void *  msgBuffer)
inlinestatic
Parameters
[in]msgBufferbuffer containing the flatbuffer serialized message

Definition at line 113 of file cred2_temps.hpp.

References MagAOX::logger::GetCred2_temps_fb().

Referenced by MagAOX::logger::cred2_temps::messageT::messageT(), and getAccessor().

◆ verify()

static bool MagAOX::logger::cred2_temps::verify ( flatlogs::bufferPtrT logBuff,
flatlogs::msgLenT  len 
)
inlinestatic
Parameters
[in]logBuffbuffer containing the flatbuffer serialized message
[in]lenlength of msgBuffer

Definition at line 53 of file cred2_temps.hpp.

References flatlogs::logHeader::messageBuffer(), and MagAOX::logger::VerifyCred2_temps_fbBuffer().

Referenced by MagAOX::logger::logVerify().

Member Data Documentation

◆ defaultLevel

const flatlogs::logPrioT MagAOX::logger::cred2_temps::defaultLevel = flatlogs::logPrio::LOG_TELEM
static

The default level.

Definition at line 30 of file cred2_temps.hpp.

◆ eventCode

const flatlogs::eventCodeT MagAOX::logger::cred2_temps::eventCode = eventCodes::CRED2_TEMPS
static

The event code.

Definition at line 27 of file cred2_temps.hpp.

◆ lastRecord

timespec MagAOX::logger::cred2_temps::lastRecord = { 0, 0 }
static

The timestamp of the last time this log was recorded. Used by telemetry.

Definition at line 32 of file cred2_temps.hpp.

Referenced by libXWCTest::cred2CtrlTest::TEST_CASE().


The documentation for this struct was generated from the following files: