API
 
Loading...
Searching...
No Matches
telem_tcsi_tiptilt.hpp
Go to the documentation of this file.
1/** \file telem_tcsi_tiptilt.hpp
2 * \brief The MagAO-X logger telem_tcsi_tiptilt log type.
3 * \author Jared R. Males (jaredmales@gmail.com)
4 *
5 * \ingroup logger_types_files
6 *
7 */
8#ifndef logger_types_telem_tcsi_tiptilt_hpp
9#define logger_types_telem_tcsi_tiptilt_hpp
10
12
13namespace MagAOX
14{
15namespace logger
16{
17
18/// Tip/tilt offload-control telemetry.
19/** \ingroup logger_types
20 */
22{
23 /// The event code
25
26 /// The default level
28
29 /// Format the message for human consumption.
30 static std::string msgString( void *msgBuffer, /**< [in] Buffer containing the flatbuffer serialized message.*/
31 flatlogs::msgLenT len /**< [in] [unused] length of msgBuffer.*/
32 )
33 {
34 return formatMsgString( "tcsi_tiptilt", msgBuffer, len );
35 }
36
37 static timespec lastRecord; ///< The time of the last time this log was recorded. Used by the telemetry system.
38};
39
40} // namespace logger
41} // namespace MagAOX
42
43#endif // logger_types_telem_tcsi_tiptilt_hpp
uint16_t eventCodeT
The type of an event code (16-bit unsigned int).
Definition logDefs.hpp:40
msgLen2T msgLenT
The type used to refer to the message length, regardless of length.
Definition logDefs.hpp:69
int8_t logPrioT
The type of the log priority code.
Definition logDefs.hpp:21
static constexpr flatlogs::eventCodeT TELEM_TCSI_TIPTILT
Definition logCodes.hpp:40
Definition dm.hpp:19
static constexpr logPrioT LOG_TELEM
A telemetry recording.
Shared base class for tcsInterface offload-control telemetry.
static std::string formatMsgString(const char *label, void *msgBuffer, flatlogs::msgLenT len)
Format a shared offload-control message body with a caller-supplied label.
Tip/tilt offload-control telemetry.
static const flatlogs::eventCodeT eventCode
The event code.
static timespec lastRecord
The time of the last time this log was recorded. Used by the telemetry system.
static const flatlogs::logPrioT defaultLevel
The default level.
static std::string msgString(void *msgBuffer, flatlogs::msgLenT len)
Format the message for human consumption.
Shared MagAO-X logger type for tcsInterface offload-control telemetry.