libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
LibXR Namespace Reference

LibXR 命名空间 More...

Data Structures

class  ADC
 模拟数字转换器(ADC)基类 More...
 
class  Application
 应用模块抽象类,需实现 OnMonitor 方法 More...
 
class  ApplicationManager
 应用模块管理器 More...
 
class  Assert
 运行时错误检查的断言工具类。 Provides assertion mechanisms for runtime error checking. More...
 
class  ASync
 异步任务处理类。 Asynchronous task processing class. More...
 
class  Axis
 三维坐标轴类,继承自 Eigen::Matrix<Scalar, 3, 1>。 A 3D axis class, inheriting from Eigen::Matrix<Scalar, 3, 1>. More...
 
class  BaseQueue
 基础队列类,提供固定大小的循环缓冲区 (Base queue class providing a fixed-size circular buffer). More...
 
class  Callback
 提供一个通用的回调包装,支持动态参数传递。 Provides a generic callback wrapper, supporting dynamic argument passing. More...
 
class  CallbackBlock
 提供一个回调函数的封装,实现参数绑定和回调执行。 Provides a wrapper for callback functions, enabling argument binding and invocation. More...
 
class  CAN
 CAN通信接口,定义标准CAN通信结构,支持不同类型的消息 (CAN communication interface that defines a standard CAN structure supporting different message types). More...
 
class  CenterOfMass
 质心信息表示类。Represents the center of mass information. More...
 
class  CH32GPIO
 
class  CH32Timebase
 
class  CH32UART
 
class  ConstRawData
 常量原始数据封装类。 A class for encapsulating constant raw data. More...
 
class  CRC16
 16 位循环冗余校验(CRC-16)计算类 / CRC-16 checksum computation class More...
 
class  CRC32
 32 位循环冗余校验(CRC-32)计算类 / CRC-32 checksum computation class More...
 
class  CRC8
 8 位循环冗余校验(CRC-8)计算类 / CRC-8 checksum computation class More...
 
class  CycleValue
 角度循环处理类,用于处理周期性角度计算。 A cyclic angle handling class for periodic angle calculations. More...
 
class  Database
 数据库接口,提供键值存储和管理功能 (Database interface providing key-value storage and management). More...
 
class  DatabaseRaw
 适用于最小写入单元受限的 Flash 存储的数据库实现 (Database implementation for Flash storage with minimum write unit restrictions). More...
 
class  DatabaseRawSequential
 适用于不支持逆序写入的 Flash 存储的数据库实现 (Database implementation for Flash storage that does not support reverse writing). More...
 
class  DoubleBuffer
 双缓冲区管理类 / Double buffer manager class More...
 
struct  Entry
 
class  ESP32ADC
 
class  ESP32GPIO
 
class  ESP32NvsFlashDatabase
 
class  ESP32PWM
 
class  ESP32Timebase
 基于 esp_timer 的时间基准实现(微秒与毫秒) Timebase implementation using esp_timer (microseconds and milliseconds) More...
 
class  ESP32UART
 
class  ESP32UARTReadPort
 
class  ESP32UARTWritePort
 
class  ESP32VirtualUART
 
class  ESP32WifiClient
 ESP32 平台的 WiFi 客户端实现 / WiFi client implementation for ESP32. More...
 
class  EulerAngle
 表示欧拉角的类,用于描述3D旋转。Class representing Euler angles for 3D rotation. More...
 
class  Event
 事件管理系统,允许基于事件 ID 注册和触发回调函数。 Event management system that allows registration and triggering of callbacks based on event IDs. More...
 
class  FDCAN
 FDCAN 通信接口,扩展 CAN 功能,支持灵活数据速率(FD)CAN 消息 (FDCAN communication interface that extends CAN functionality by supporting Flexible Data-Rate (FD) CAN messages). More...
 
class  Flash
 Abstract base class representing a flash memory interface. 抽象基类,表示闪存接口。 More...
 
struct  FlashSector
 STM32Flash 通用类,构造时传入扇区列表,自动判断编程粒度。 More...
 
class  FloatEncoder
 浮点数编码器,将浮点值映射到定长无符号整数。 A generic float encoder mapping a float value to N-bit unsigned integer. More...
 
class  GPIO
 通用输入输出(GPIO)接口类。General Purpose Input/Output (GPIO) interface class. More...
 
class  HardwareContainer
 
class  I2C
 I2C(Inter-Integrated Circuit)接口类。 I2C (Inter-Integrated Circuit) interface class. More...
 
class  Inertia
 表示刚体的惯性张量和质量信息的类。Provides a class to represent the inertia tensor and mass of a rigid body. More...
 
struct  IPAddressRaw
 原始 IPv4 地址 / Raw IPv4 address More...
 
struct  IPAddressStr
 字符串形式 IPv4 地址 / IPv4 address as string More...
 
class  LinuxBinaryFileFlash
 LinuxBinaryFileFlash 类,用于从二进制文件加载闪存数据 LinuxBinaryFileFlash class for loading flash data from a binary file. More...
 
class  LinuxPowerManager
 基于 Linux 的电源管理器实现 / Linux implementation of PowerManager More...
 
class  LinuxTimebase
 LinuxTimebase 类,用于获取 Linux 系统的时间基准。Provides a timebase for Linux systems. More...
 
class  LinuxUART
 
class  List
 链表实现,用于存储和管理数据节点。 A linked list implementation for storing and managing data nodes. More...
 
class  LockFreeList
 链表实现,用于存储和管理数据节点。 A linked list implementation for storing and managing data nodes. More...
 
class  LockFreeQueue
 无锁队列实现 / Lock-free queue implementation More...
 
class  LockQueue
 线程安全的锁队列类,提供同步和异步操作支持 Thread-safe lock queue class with synchronous and asynchronous operation support More...
 
struct  LogData
 日志数据结构体 / Log data structure More...
 
class  Logger
 日志管理器 / LibXR Logger Manager More...
 
struct  MACAddressRaw
 原始 MAC 地址 / Raw MAC address More...
 
struct  MACAddressStr
 字符串形式 MAC 地址 / MAC address as string More...
 
class  Mutex
 互斥锁类,提供线程同步机制 (Mutex class providing thread synchronization mechanisms). More...
 
class  NetworkInterface
 抽象网络接口类 / Abstract base for network interfaces More...
 
class  Operation
 Defines an operation with different execution modes. More...
 
class  PID
 通用 PID 控制器类。 Generic PID controller. More...
 
class  Position
 三维空间中的位置向量 / 3D position vector More...
 
class  PowerManager
 电源管理器基类 / Abstract base class for Power Manager More...
 
class  PWM
 Abstract base class for PWM (Pulse Width Modulation) control. PWM(脉冲宽度调制)控制的抽象基类。 More...
 
class  Quaternion
 四元数表示与运算,继承自 Eigen::Quaternion / Quaternion representation and operations, inheriting from Eigen::Quaternion More...
 
class  Queue
 基于 BaseQueue 的泛型队列模板类 (Generic queue template class based on BaseQueue). More...
 
class  RamFS
 轻量级的内存文件系统,实现基本的文件、目录和设备管理 A lightweight in-memory file system implementing basic file, directory, and device management More...
 
class  RawData
 原始数据封装类。 A class for encapsulating raw data. More...
 
class  RBTree
 红黑树实现,支持泛型键和值,并提供线程安全操作 (Red-Black Tree implementation supporting generic keys and values with thread-safe operations). More...
 
struct  ReadInfoBlock
 Read information block structure. More...
 
class  ReadPort
 ReadPort class for handling read operations. More...
 
class  RotationMatrix
 旋转矩阵类,继承自 Eigen::Matrix<Scalar, 3, 3>。 Rotation matrix class, inheriting from Eigen::Matrix<Scalar, 3, 3>. More...
 
class  Semaphore
 信号量类,实现线程同步机制 Semaphore class implementing thread synchronization More...
 
class  SPI
 串行外设接口(SPI)抽象类。Abstract class for Serial Peripheral Interface (SPI). More...
 
class  Stack
 线程安全的栈数据结构 / Thread-safe stack data structure More...
 
class  STDIO
 STDIO interface for read/write ports. More...
 
class  STM32ADC
 STM32ADC 类,用于处理 STM32 系统的 ADC 通道。 Provides handling for STM32 ADC channels. More...
 
class  STM32CAN
 STM32CAN 类,用于处理 STM32 系统的 CAN 通道。 Provides handling for STM32 CAN channels. More...
 
class  STM32CANFD
 STM32CANFD 类,用于处理 STM32 系统的 CANFD 通道。 Provides handling for STM32 CANFD. More...
 
class  STM32Flash
 STM32Flash 通用类,构造时传入扇区列表,自动判断编程粒度。 More...
 
class  STM32GPIO
 
class  STM32I2C
 
class  STM32PowerManager
 
class  STM32PWM
 
class  STM32SPI
 
class  STM32Timebase
 获取基于STM32 SysTick计数器的时间基准(微秒与毫秒) / Provides a timebase using STM32 SysTick timer (microseconds and milliseconds) More...
 
class  STM32TimerTimebase
 基于硬件定时器的时间基准类 / Provides a timebase using hardware timer (TIM) More...
 
class  STM32UART
 
class  STM32VirtualUART
 
class  STM32Watchdog
 STM32 IWDG 独立看门狗 / Independent Watchdog. More...
 
class  String
 A fixed-length string class with safe operations. More...
 
class  Terminal
 终端类,实现一个基于 RamFS 的基本命令行接口 Terminal class implementing a basic command-line interface based on RamFS More...
 
class  Thread
 线程管理类,封装 POSIX 线程创建和调度 Thread management class encapsulating POSIX thread creation and scheduling More...
 
class  Timebase
 时间基类,用于提供高精度时间戳。 Timebase class for providing high-precision timestamps. More...
 
class  Timer
 定时器类,实现周期性任务调度 Timer class for scheduling periodic tasks More...
 
class  TimestampMS
 表示毫秒级时间戳的类。Class representing a timestamp in milliseconds. More...
 
class  TimestampUS
 表示微秒级时间戳的类。Class representing a timestamp in microseconds. More...
 
class  TinyUSBUARTReadPort
 
class  TinyUSBUARTWritePort
 
class  TinyUSBVirtualUART
 
class  Topic
 主题(Topic)管理类 / Topic management class More...
 
class  Transform
 表示三维空间中的刚体变换,包括旋转和位移。Represents rigid body transformations in 3D space, including rotation and translation. More...
 
class  TypeID
 类型标识符生成器,替代 typeid More...
 
class  UART
 通用异步收发传输(UART)基类 / Abstract base class for Universal Asynchronous Receiver-Transmitter (UART) More...
 
class  Watchdog
 通用看门狗(Watchdog)抽象接口 General Watchdog interface for both thread and task style usage More...
 
class  WebAsmTimebase
 WebAsmTimebase 类,用于获取 WebAssembly 系统的时间基准。 More...
 
class  WifiClient
 WiFi 客户端接口 / WiFi Client Interface. More...
 
struct  WriteInfoBlock
 
class  WritePort
 WritePort class for handling write operations. More...
 

Typedefs

typedef pthread_mutex_t libxr_mutex_handle
 
typedef sem_t * libxr_semaphore_handle
 
typedef pthread_t libxr_thread_handle
 
typedef Operation< ErrorCode > ReadOperation
 Read operation type.
 
typedef Operation< ErrorCode > WriteOperation
 Write operation type.
 
typedef ErrorCode(* WriteFun) (WritePort &port)
 Function pointer type for write operations.
 
typedef ErrorCode(* ReadFun) (ReadPort &port)
 Function pointer type for read operations.
 
using DefaultScalar = double
 

Enumerations

enum  ch32_gpio_group_t { CH32_GPIO_NUMBER }
 
enum class  Format : uint8_t {
  NONE = 0 , RESET , BOLD , DARK ,
  UNDERLINE , BLINK , REVERSE , CONCEALED ,
  CLEAR_LINE , COUNT
}
 Terminal text format (Format) / 终端文本格式 (Format) More...
 
enum class  Font : uint8_t {
  NONE = 0 , BLACK , RED , GREEN ,
  YELLOW , BLUE , MAGENTA , CYAN ,
  WHITE , COUNT
}
 Terminal font color (Font) / 终端字体颜色 (Font) More...
 
enum class  Background : uint8_t {
  NONE = 0 , BLACK , RED , GREEN ,
  YELLOW , BLUE , MAGENTA , CYAN ,
  WHITE , COUNT
}
 Terminal background color (Background) / 终端背景颜色 (Background) More...
 
enum class  Bold : uint8_t {
  NONE = 0 , YELLOW , RED , ON_RED ,
  COUNT
}
 Terminal bold style (Bold) / 终端粗体样式 (Bold) More...
 
enum class  LogLevel : uint8_t {
  XR_LOG_LEVEL_DEBUG = 0 , XR_LOG_LEVEL_INFO , XR_LOG_LEVEL_PASS , XR_LOG_LEVEL_WARN ,
  XR_LOG_LEVEL_ERROR
}
 日志级别枚举 / Log level enumeration More...
 

Functions

static uint32_t CH32GetGPIOPeriph (GPIO_TypeDef *port)
 
void PlatformInit ()
 平台初始化函数 Platform initialization function
 
template<typename T1 , typename T2 >
constexpr auto max (T1 a, T2 b) -> typename std::common_type< T1, T2 >::type
 计算两个数的最大值
 
template<typename T1 , typename T2 >
constexpr auto min (T1 a, T2 b) -> typename std::common_type< T1, T2 >::type
 计算两个数的最小值
 

Variables

constexpr const char * LIBXR_FORMAT_STR []
 ANSI escape sequences for text format / ANSI转义序列 - 文本格式
 
constexpr const char * LIBXR_FONT_STR []
 ANSI escape sequences for font color / ANSI转义序列 - 字体颜色
 
constexpr const char * LIBXR_BACKGROUND_STR []
 ANSI escape sequences for background color / ANSI转义序列 - 背景颜色
 
constexpr const char * LIBXR_BOLD_STR []
 ANSI escape sequences for bold styles / ANSI转义序列 - 粗体样式
 
constexpr size_t IPADDR_STRLEN = 16
 
constexpr size_t MACADDR_STRLEN = 18
 
static constexpr uint16_t LIBXR_DATABASE_VERSION = 2
 
constexpr DefaultScalar PID_SIGMA = 1e-6f
 

Detailed Description

LibXR 命名空间

LibXR namespace

Typedef Documentation

◆ DefaultScalar

typedef double LibXR::DefaultScalar = double

Definition at line 10 of file cycle_value.hpp.

◆ libxr_mutex_handle

typedef pthread_mutex_t LibXR::libxr_mutex_handle

Definition at line 8 of file libxr_system.hpp.

◆ libxr_semaphore_handle

typedef sem_t* LibXR::libxr_semaphore_handle

Definition at line 9 of file libxr_system.hpp.

◆ libxr_thread_handle

typedef pthread_t LibXR::libxr_thread_handle

Definition at line 10 of file libxr_system.hpp.

◆ ReadFun

typedef ErrorCode(* LibXR::ReadFun) (ReadPort &port)

Function pointer type for read operations.

读取操作的函数指针类型。

Definition at line 247 of file libxr_rw.hpp.

◆ ReadOperation

typedef Operation<ErrorCode> LibXR::ReadOperation

Read operation type.

读取操作类型。

Definition at line 235 of file libxr_rw.hpp.

◆ WriteFun

typedef ErrorCode(* LibXR::WriteFun) (WritePort &port)

Function pointer type for write operations.

写入操作的函数指针类型。

Definition at line 243 of file libxr_rw.hpp.

◆ WriteOperation

typedef Operation<ErrorCode> LibXR::WriteOperation

Write operation type.

写入操作类型。

Definition at line 239 of file libxr_rw.hpp.

Enumeration Type Documentation

◆ Background

enum class LibXR::Background : uint8_t
strong

Terminal background color (Background) / 终端背景颜色 (Background)

Definition at line 48 of file libxr_color.hpp.

49{
50 NONE = 0,
51 BLACK,
52 RED,
53 GREEN,
54 YELLOW,
55 BLUE,
56 MAGENTA,
57 CYAN,
58 WHITE,
59 COUNT
60};

◆ Bold

enum class LibXR::Bold : uint8_t
strong

Terminal bold style (Bold) / 终端粗体样式 (Bold)

Optional bold styles like yellow bold, red bold, red background bold. 可选粗体样式,包括黄色粗体、红色粗体、红色背景粗体等。

Definition at line 67 of file libxr_color.hpp.

68{
69 NONE = 0,
70 YELLOW,
71 RED,
72 ON_RED,
73 COUNT
74};

◆ ch32_gpio_group_t

enum LibXR::ch32_gpio_group_t

Definition at line 11 of file ch32_gpio.hpp.

12{
13#if defined(GPIOA)
14 CH32_GPIOA,
15#endif
16#if defined(GPIOB)
17 CH32_GPIOB,
18#endif
19#if defined(GPIOC)
20 CH32_GPIOC,
21#endif
22#if defined(GPIOD)
23 CH32_GPIOD,
24#endif
25#if defined(GPIOE)
26 CH32_GPIOE,
27#endif
28#if defined(GPIOF)
29 CH32_GPIOF,
30#endif
31#if defined(GPIOG)
32 CH32_GPIOG,
33#endif
34#if defined(GPIOH)
35 CH32_GPIOH,
36#endif
37#if defined(GPIOI)
38 CH32_GPIOI,
39#endif
40 CH32_GPIO_NUMBER
41} ch32_gpio_group_t;

◆ Font

enum class LibXR::Font : uint8_t
strong

Terminal font color (Font) / 终端字体颜色 (Font)

Definition at line 31 of file libxr_color.hpp.

32{
33 NONE = 0,
34 BLACK,
35 RED,
36 GREEN,
37 YELLOW,
38 BLUE,
39 MAGENTA,
40 CYAN,
41 WHITE,
42 COUNT
43};

◆ Format

enum class LibXR::Format : uint8_t
strong

Terminal text format (Format) / 终端文本格式 (Format)

Defines text styles like NONE, RESET, BOLD, DARK, UNDERLINE, etc. 定义文本样式,如NONE(无格式)、RESET(重置)、BOLD(加粗)、DARK(暗色)、UNDERLINE(下划线)等。

Definition at line 14 of file libxr_color.hpp.

15{
16 NONE = 0,
17 RESET,
18 BOLD,
19 DARK,
20 UNDERLINE,
21 BLINK,
22 REVERSE,
23 CONCEALED,
24 CLEAR_LINE,
25 COUNT
26};

◆ LogLevel

enum class LibXR::LogLevel : uint8_t
strong

日志级别枚举 / Log level enumeration

Enumerator
XR_LOG_LEVEL_DEBUG 

调试信息 / Debug message

XR_LOG_LEVEL_INFO 

一般信息 / Informational message

XR_LOG_LEVEL_PASS 

通过信息 / Pass message

XR_LOG_LEVEL_WARN 

警告信息 / Warning message

XR_LOG_LEVEL_ERROR 

错误信息 / Error message

Definition at line 18 of file logger.hpp.

19{
25};
@ XR_LOG_LEVEL_INFO
一般信息 / Informational message
@ XR_LOG_LEVEL_DEBUG
调试信息 / Debug message
@ XR_LOG_LEVEL_WARN
警告信息 / Warning message
@ XR_LOG_LEVEL_ERROR
错误信息 / Error message
@ XR_LOG_LEVEL_PASS
通过信息 / Pass message

Function Documentation

◆ CH32GetGPIOPeriph()

static uint32_t LibXR::CH32GetGPIOPeriph ( GPIO_TypeDef * port)
static

Definition at line 43 of file ch32_gpio.hpp.

44{
45 if (false)
46 {
47 }
48#if defined(GPIOA)
49 else if (port == GPIOA)
50 return RCC_APB2Periph_GPIOA;
51#endif
52#if defined(GPIOB)
53 else if (port == GPIOB)
54 return RCC_APB2Periph_GPIOB;
55#endif
56#if defined(GPIOC)
57 else if (port == GPIOC)
58 return RCC_APB2Periph_GPIOC;
59#endif
60#if defined(GPIOD)
61 else if (port == GPIOD)
62 return RCC_APB2Periph_GPIOD;
63#endif
64#if defined(GPIOE)
65 else if (port == GPIOE)
66 return RCC_APB2Periph_GPIOE;
67#endif
68#if defined(GPIOF)
69 else if (port == GPIOF)
70 return RCC_APB2Periph_GPIOF;
71#endif
72#if defined(GPIOG)
73 else if (port == GPIOG)
74 return RCC_APB2Periph_GPIOG;
75#endif
76#if defined(GPIOH)
77 else if (port == GPIOH)
78 return RCC_APB2Periph_GPIOH;
79#endif
80#if defined(GPIOI)
81 else if (port == GPIOI)
82 return RCC_APB2Periph_GPIOI;
83#endif
84 return 0;
85}

◆ max()

template<typename T1 , typename T2 >
auto LibXR::max ( T1 a,
T2 b ) -> typename std::common_type<T1, T2>::type
constexpr

计算两个数的最大值

Computes the maximum of two numbers

Template Parameters
T1第一个数的类型 | Type of the first number
T2第二个数的类型 | Type of the second number
Parameters
a第一个数 | First number
b第二个数 | Second number
Returns
两数中的较大值 | The larger of the two numbers

Definition at line 150 of file libxr_def.hpp.

151{
152 return (a > b) ? a : b;
153}

◆ min()

template<typename T1 , typename T2 >
auto LibXR::min ( T1 a,
T2 b ) -> typename std::common_type<T1, T2>::type
constexpr

计算两个数的最小值

Computes the minimum of two numbers

Template Parameters
T1第一个数的类型 | Type of the first number
T2第二个数的类型 | Type of the second number
Parameters
a第一个数 | First number
b第二个数 | Second number
Returns
两数中的较小值 | The smaller of the two numbers

Definition at line 165 of file libxr_def.hpp.

166{
167 return (a < b) ? a : b;
168}

◆ PlatformInit()

void LibXR::PlatformInit ( )

平台初始化函数 Platform initialization function

该函数用于初始化 POSIX 线程相关的资源,例如互斥锁、信号量和条件变量。 在使用 LibXR 线程库之前,应调用该函数进行必要的系统初始化。

This function initializes POSIX thread-related resources such as mutexes, semaphores, and condition variables. It should be called before using the LibXR threading library for proper system setup.

Definition at line 88 of file libxr_system.cpp.

89{
90 auto write_fun = [](WritePort &port)
91 {
92 UNUSED(port);
93 stdo_sem.Post();
94 return ErrorCode::FAILED;
95 };
96
98 new LibXR::WritePort(32, static_cast<size_t>(4 * LIBXR_PRINTF_BUFFER_SIZE));
99
100 *LibXR::STDIO::write_ = write_fun;
101
102 auto read_fun = [](ReadPort &port)
103 {
104 UNUSED(port);
105 return ErrorCode::FAILED;
106 };
107
109 new LibXR::ReadPort(static_cast<size_t>(4 * LIBXR_PRINTF_BUFFER_SIZE));
110
111 *LibXR::STDIO::read_ = read_fun;
112
113 gettimeofday(&libxr_linux_start_time, nullptr);
114 UNUSED(clock_gettime(CLOCK_REALTIME, &libxr_linux_start_time_spec));
115
116 struct termios tty;
117 tcgetattr(STDIN_FILENO, &tty); // 获取当前终端属性
118 tty.c_lflag &= ~(ICANON | ECHO); // 禁用规范模式和回显
119 tcsetattr(STDIN_FILENO, TCSANOW, &tty); // 立即生效
120
121 LibXR::Thread stdi_thread, stdo_thread;
122 stdi_thread.Create<LibXR::ReadPort *>(LibXR::STDIO::read_, StdiThread, "STDIO.read_",
124
125 stdo_thread.Create<LibXR::WritePort *>(LibXR::STDIO::write_, StdoThread, "STDIO.write_",
127}
ReadPort class for handling read operations.
Definition libxr_rw.hpp:270
static ReadPort * read_
Read port instance. 读取端口。
Definition libxr_rw.hpp:821
static WritePort * write_
Write port instance. 写入端口。
Definition libxr_rw.hpp:822
void Post()
释放(增加)信号量 Releases (increments) the semaphore
Definition semaphore.cpp:23
线程管理类,封装 POSIX 线程创建和调度 Thread management class encapsulating POSIX thread creation and scheduling
Definition thread.hpp:14
@ MEDIUM
中等优先级 Medium priority
void Create(ArgType arg, void(*function)(ArgType arg), const char *name, size_t stack_depth, Thread::Priority priority)
创建新线程 Creates a new thread
Definition thread.hpp:64
WritePort class for handling write operations.
Definition libxr_rw.hpp:564

Variable Documentation

◆ IPADDR_STRLEN

size_t LibXR::IPADDR_STRLEN = 16
constexpr

Definition at line 10 of file net.hpp.

◆ LIBXR_BACKGROUND_STR

const char* LibXR::LIBXR_BACKGROUND_STR[]
inlineconstexpr
Initial value:
= {
"", "\033[40m", "\033[41m", "\033[42m", "\033[43m",
"\033[44m", "\033[45m", "\033[46m", "\033[47m"}

ANSI escape sequences for background color / ANSI转义序列 - 背景颜色

Definition at line 93 of file libxr_color.hpp.

93 {
94 "", "\033[40m", "\033[41m", "\033[42m", "\033[43m",
95 "\033[44m", "\033[45m", "\033[46m", "\033[47m"};

◆ LIBXR_BOLD_STR

const char* LibXR::LIBXR_BOLD_STR[]
inlineconstexpr
Initial value:
= {"", "\033[33m\033[1m", "\033[31m\033[1m",
"\033[1m\033[41m"}

ANSI escape sequences for bold styles / ANSI转义序列 - 粗体样式

Definition at line 100 of file libxr_color.hpp.

100 {"", "\033[33m\033[1m", "\033[31m\033[1m",
101 "\033[1m\033[41m"};

◆ LIBXR_DATABASE_VERSION

uint16_t LibXR::LIBXR_DATABASE_VERSION = 2
staticconstexpr

Definition at line 14 of file database.hpp.

◆ LIBXR_FONT_STR

const char* LibXR::LIBXR_FONT_STR[]
inlineconstexpr
Initial value:
= {"", "\033[30m", "\033[31m",
"\033[32m", "\033[33m", "\033[34m",
"\033[35m", "\033[36m", "\033[37m"}

ANSI escape sequences for font color / ANSI转义序列 - 字体颜色

Definition at line 86 of file libxr_color.hpp.

86 {"", "\033[30m", "\033[31m",
87 "\033[32m", "\033[33m", "\033[34m",
88 "\033[35m", "\033[36m", "\033[37m"};

◆ LIBXR_FORMAT_STR

const char* LibXR::LIBXR_FORMAT_STR[]
inlineconstexpr
Initial value:
= {"", "\033[m", "\033[1m",
"\033[2m", "\033[4m", "\033[5m",
"\033[7m", "\033[8m", "\033[K"}

ANSI escape sequences for text format / ANSI转义序列 - 文本格式

Definition at line 79 of file libxr_color.hpp.

79 {"", "\033[m", "\033[1m",
80 "\033[2m", "\033[4m", "\033[5m",
81 "\033[7m", "\033[8m", "\033[K"};

◆ MACADDR_STRLEN

size_t LibXR::MACADDR_STRLEN = 18
constexpr

Definition at line 11 of file net.hpp.

◆ PID_SIGMA

DefaultScalar LibXR::PID_SIGMA = 1e-6f
constexpr

Definition at line 13 of file pid.hpp.