REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
#include <Arduino.h>
#include <array>
#include <ostream>
#include <type_traits>
#include <vector>
#include "protocol/jsonl_logging.h"
#include "StreamUtils.h"


Go to the source code of this file.
Macros | |
#define | LOG_TARGET msg::Log::get() |
#define | __LOG(message) |
#define | LOG(LOG_FLAG, message) |
#define | LOG_ERROR(message) |
#define | LOG_ALWAYS(message) |
#define | LOG_ANABRID_DEBUG(message) |
#define | LOG_ANABRID_DEBUG_INIT(message) |
#define | LOG_ANABRID_DEBUG_STATE(message) |
#define | LOG_ANABRID_DEBUG_DAQ(message) |
#define | LOG_ANABRID_PEDANTIC(message) |
#define | LOG_ANABRID_DEBUG_CALIBRATION(message) |
#define | _ERROR_OUT_ |
#define | LOGV(message, ...) |
#define | LOGMEV(message, ...) |
#define | LOG2(a, b) |
#define | LOG3(a, b, c) |
#define | LOG4(a, b, c, d) |
#define | LOG5(a, b, c, d, e) |
#define | LOG_START(message) |
#define | LOG_ITEM(message) |
#define | LOG_END(message) |
Functions | |
template<typename T , size_t size> | |
std::ostream & | operator<< (std::ostream &os, const std::array< T, size > &arr) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const std::vector< T > &vec) |
Macro Definition Documentation
◆ __LOG
#define __LOG | ( | message | ) |
◆ _ERROR_OUT_
#define _ERROR_OUT_ |
◆ LOG
#define LOG | ( | LOG_FLAG, | |
message ) |
Definition at line 36 of file logging.h.
Referenced by blocks::MIntBlock_V_1_1_X::_gain_calibration(), net::StartupConfig::begin_ip(), blocks::MIntBlock_V_1_1_X::calibrate(), blocks::MMulBlock::calibrate(), blocks::MMulBlock_FullAutoCalibration::calibrate(), daq::calibrate(), carrier::Carrier::calibrate_mblock(), entities::detect(), blocks::IBlock::init(), bus::init(), carrier::Carrier::init(), platform::Cluster::init(), platform::LUCIDAC::init(), platform::REDAC::init(), platform::REDAC::init_backpanel_tblock(), setup(), blocks::IBlockHAL_V_1_2_X::write_outputs(), blocks::CBlock::write_to_hardware(), blocks::MIntBlock::write_to_hardware(), blocks::UBlock::write_to_hardware(), and platform::Cluster::write_to_hardware().
◆ LOG2
#define LOG2 | ( | a, | |
b ) |
Definition at line 97 of file logging.h.
Referenced by net::StartupConfig::begin_ip(), and msg::JsonLinesProtocol::process_tcp_input().
◆ LOG3
#define LOG3 | ( | a, | |
b, | |||
c ) |
Definition at line 103 of file logging.h.
Referenced by websocket_upgrade().
◆ LOG4
#define LOG4 | ( | a, | |
b, | |||
c, | |||
d ) |
Definition at line 110 of file logging.h.
Referenced by net::StartupConfig::begin_ip(), msg::JsonlServer::loop(), web::LucidacWebServer::loop(), msg::JsonLinesProtocol::process_serial_input(), nvmconfig::PersistentSettingsWriter::read_from_eeprom(), and utils::status::status().
◆ LOG5
#define LOG5 | ( | a, | |
b, | |||
c, | |||
d, | |||
e ) |
Definition at line 118 of file logging.h.
Referenced by msg::JsonlServer::loop(), and web::LucidacWebServer::loop().
◆ LOG_ALWAYS
#define LOG_ALWAYS | ( | message | ) |
Definition at line 38 of file logging.h.
Referenced by platform::LUCIDAC::_config_acl_from_json(), net::StartupConfig::begin_ip(), loader::FirmwareFlasher::complete(), msg::JsonLinesProtocol::handleMessage(), net::auth::Gatekeeper::login(), web::LucidacWebServer::loop(), onWebsocketMessageCallback(), net::auth::UserPasswordAuthentification::reset_defaults(), net::StartupConfig::reset_defaults(), run::RunManager::run_next(), setup(), utils::status::status(), and msg::handlers::ManualControlHandler::toMinion().
◆ LOG_ANABRID_DEBUG
◆ LOG_ANABRID_DEBUG_CALIBRATION
#define LOG_ANABRID_DEBUG_CALIBRATION | ( | message | ) |
Definition at line 78 of file logging.h.
Referenced by platform::Cluster::calibrate_offsets(), platform::Cluster::calibrate_routes(), and carrier::Carrier::calibrate_routes_in_cluster().
◆ LOG_ANABRID_DEBUG_DAQ
◆ LOG_ANABRID_DEBUG_INIT
◆ LOG_ANABRID_DEBUG_STATE
◆ LOG_ANABRID_PEDANTIC
◆ LOG_END
#define LOG_END | ( | message | ) |
◆ LOG_ERROR
#define LOG_ERROR | ( | message | ) |
Definition at line 37 of file logging.h.
Referenced by net::StartupConfig::begin_ip(), client::RunDataNotificationHandler::handle(), mode::FlexIOControl::init(), platform::Cluster::init(), nvmconfig::PersistentSettingsWriter::read_from_eeprom(), run::RunManager::run_next(), run::RunManager::run_next_flexio(), run::RunManager::run_next_traditional(), and setup().
◆ LOG_ITEM
#define LOG_ITEM | ( | message | ) |
◆ LOG_START
#define LOG_START | ( | message | ) |
◆ LOG_TARGET
#define LOG_TARGET msg::Log::get() |
◆ LOGMEV
#define LOGMEV | ( | message, | |
... ) |
Definition at line 93 of file logging.h.
Referenced by firmware_buffer_init(), loader::GlobalPluginLoader::GlobalPluginLoader(), onWebsocketMessageCallback(), run::RunManager::run_next_traditional(), serve_static(), serve_static(), and nvmconfig::PersistentSettingsWriter::write_to_eeprom().
◆ LOGV
#define LOGV | ( | message, | |
... ) |
Definition at line 91 of file logging.h.
Referenced by setup(), and loader::FirmwareFlasher::stream().
Function Documentation
◆ operator<<() [1/2]
std::ostream & operator<< | ( | std::ostream & | os, |
const std::array< T, size > & | arr ) |