Go to the documentation of this file.
23 #include <etl/string.h>
27 #include "PB_ThreadStatus.hpp"
34 #ifndef SYSMON_THREADSTATUS_NAME_MAX_LENGTH
35 # define SYSMON_THREADSTATUS_NAME_MAX_LENGTH 64
44 using PB_Message = PB_ThreadStatus<SYSMON_THREADSTATUS_NAME_MAX_LENGTH>;
55 uint32_t
loops()
const {
return loops_; };
57 etl::string<SYSMON_THREADSTATUS_NAME_MAX_LENGTH>
name()
const {
return name_; };
61 uint32_t
pid()
const {
return pid_; };
65 void set_name(
const etl::string<SYSMON_THREADSTATUS_NAME_MAX_LENGTH> &
name) { name_ =
name; };
72 const PB_Message &
pb_message()
const {
return pb_message_; };
80 etl::string<SYSMON_THREADSTATUS_NAME_MAX_LENGTH> name_;
87 PB_Message pb_message_;
91 void display_heap_status();
93 void display_threads_status();
void inc_overshots()
Increment thread overshots number.
void update_pb_message()
Update Protobuf message.
void set_overshots(const uint32_t overshots)
Set thread overshots number.
uint32_t loops() const
Get thread loops number.
void set_pid(const uint32_t pid)
Set thread pid.
etl::string< SYSMON_THREADSTATUS_NAME_MAX_LENGTH > name() const
Get thread name.
Differential drive controller.
Generic CAN Protobuf communication class.
void set_loops(const uint32_t loops)
Set thread loops number.
ThreadStatus()
Constructor.
uint32_t pid() const
Get thread pid.
const PB_Message & pb_message() const
Return the Protobuf message.
void inc_loops()
Increment thread loops number.
Exchange Protobuf messages over CAN module.
void set_name(const etl::string< SYSMON_THREADSTATUS_NAME_MAX_LENGTH > &name)
Set thread name.
Public API for sysmon module.
uint32_t overshots() const
Get thread overshots number.