2023-07-15 14:47:34 -05:00
|
|
|
pub mod commands;
|
|
|
|
mod consts;
|
2023-07-15 19:15:01 -05:00
|
|
|
pub mod control;
|
2023-07-17 19:26:58 -05:00
|
|
|
mod driver;
|
2023-07-15 14:47:34 -05:00
|
|
|
pub mod event;
|
|
|
|
pub mod indications;
|
|
|
|
mod macros;
|
|
|
|
mod opcodes;
|
|
|
|
pub mod responses;
|
2023-07-15 19:15:01 -05:00
|
|
|
pub mod runner;
|
2023-07-15 14:47:34 -05:00
|
|
|
pub mod typedefs;
|
2023-07-15 19:15:01 -05:00
|
|
|
|
|
|
|
pub use crate::mac::control::{Control, Error as ControlError};
|
2023-07-17 19:26:58 -05:00
|
|
|
use crate::mac::driver::Driver;
|
2023-07-16 09:32:54 -05:00
|
|
|
pub use crate::mac::runner::Runner;
|
2023-07-15 19:15:01 -05:00
|
|
|
|
2023-07-17 19:26:58 -05:00
|
|
|
const MTU: usize = 127;
|
2023-07-15 19:15:01 -05:00
|
|
|
|
2023-07-18 18:28:12 -05:00
|
|
|
pub async fn new<'a>(runner: &'a Runner<'a>) -> (Control<'a>, Driver<'a>) {
|
2023-07-17 20:14:06 -05:00
|
|
|
(Control::new(runner), Driver::new(runner))
|
2023-07-15 19:15:01 -05:00
|
|
|
}
|