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
//! Vendor specific commands for STM32WB family

pub mod command;
pub mod event;
pub mod opcode;

/// specify vendor specifi extensions for STM32WB family
pub struct Stm32wbTypes;
impl crate::Vendor for Stm32wbTypes {
    type Status = event::Status;
    type Event = event::Stm32Wb5xEvent;
}

pub use crate::host::uart::CommandHeader;
pub use event::Stm32Wb5xError;

/// master trait that encompasses all commands, and communicats over UART
pub trait UartController:
    command::gap::GapCommands
    + command::gatt::GattCommands
    + command::hal::HalCommands
    + command::l2cap::L2capCommands
    + crate::host::uart::UartHci
{
}

impl<T> UartController for T where
    T: command::gap::GapCommands
        + command::gatt::GattCommands
        + command::hal::HalCommands
        + command::l2cap::L2capCommands
        + crate::host::uart::UartHci
{
}