CSPCL - Rust Bindings
Safe Rust bindings for the CubeSat Space Protocol Convergence Layer (CSPCL), enabling Bundle Protocol 7 (BP7) bundles to be transmitted over CubeSat Space Protocol (CSP).
Features
- Type-safe API - Safe Rust wrappers around C FFI
- Bundle Send/Receive - Simple interface for BP7 bundle handling
- Automatic Cleanup - Resource management via RAII (Drop trait)
- Cross-platform - POSIX (Linux) and FreeRTOS support
Quick Start
Add to Cargo.toml:
[]
= "0.1"
Basic usage:
use Cspcl;
// Initialize with local CSP address
let mut cspcl = init?;
cspcl.open_rx_socket?;
// Send bundle to CSP address 2
let bundle = vec!;
cspcl.send_bundle?;
// Receive bundle (5 second timeout)
let = cspcl.recv_bundle?;
println!;
Documentation
See main repository README for complete documentation and examples.
License
MIT