1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Bounded [`Vec`], [`String`], and [`BTreeMap`] from [`sigma_bounded`], wired to DBC compile-time limits.
//!
//! With **`heapless`**, [`BTreeMap`] wraps `heapless::LinearMap` (iteration follows insertion order, not sorted keys).
extern crate alloc;
pub use ;
use crate::;
/// Maximum size for comment text (CM_ entries).
/// Not defined in DBC spec, using 256 as reasonable default.
pub const MAX_COMMENT_SIZE: usize = 256;
// ============================================================================
// Common Type Aliases
// ============================================================================
/// A name string with `MAX_NAME_SIZE` limit.
///
/// Used for identifiers like signal names, message names, node names, etc.
pub type Name = MAX_NAME_SIZE }>;
/// A comment string with `MAX_COMMENT_SIZE` limit.
///
/// Used for CM_ comment text (messages, signals, nodes, database).
pub type Comment = ;
/// A value description entry: `(numeric_value, description_string)`.
///
/// Used in VAL_ statements to map signal values to human-readable text.
pub type ValueDescEntry = ;
/// A collection of value description entries.
pub type ValueDescEntries = MAX_VALUE_DESCRIPTIONS }>;
/// Validates and converts a string to a [`Name`] with `MAX_NAME_SIZE` limit.