can_aerospace_lite 0.1.0

A lite version of CAN Aerospace Implementation according to 'Interface specification for airborne CAN applications V 1.7'
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! # CANAerospace - Driver
//!
//! CANAerospace requires a driver to interract with CAN hardware

use crate::{message::{CANAerospaceFrame}};

/// CANAerospaceDriver trait is act like a gate to hardware for CANAerospaceLite
pub trait CANAerospaceDriver {
    /// Takes [CANAerospaceFrame] to send it using the hardware
    fn send_frame(&mut self, frame: CANAerospaceFrame);
    /// Returns Option<[CANAerospaceFrame]> if the value is None then no action will be taken.
    /// if the value is present then frame will be handled by [crate::CANAerospaceLite].
    fn recv_frame(&mut self) -> Option<CANAerospaceFrame>;
}