Skip to main content

powerlink_rs/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2
3
4// 'alloc' is used for dynamic allocation (e.g., Vec<u8> in frames)
5extern crate alloc;
6
7// --- Foundation Modules ---
8pub mod types;
9pub mod hal;
10pub mod common;
11
12// --- Node Abstraction ---
13pub mod node;
14
15// --- Data Link Layer (DLL) ---
16pub mod frame;
17
18// --- Higher Layers ---
19pub mod nmt;
20pub mod od;
21pub mod pdo;
22pub mod sdo;
23    
24// --- Top-level Exports ---
25pub use types::NodeId;
26pub use hal::{NetworkInterface, PowerlinkError, ObjectDictionaryStorage};
27pub use common::{NetTime, RelativeTime};
28pub use frame::error::{ErrorHandler, DllErrorManager, NoOpErrorHandler};
29pub use frame::codec::{Codec, deserialize_frame};
30pub use node::{Node, NodeAction};
31pub use node::cn::ControlledNode;