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
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub enum Error {
NoResponse,
InvalidCommand,
InvalidLength,
}
pub type Message = heapless::Vec<u8, 7609>;
pub type AppResult = core::result::Result<(), Error>;
pub type ShortMessage = heapless::Vec<u8, 1024>;
pub type InterchangeResponse = core::result::Result<Message, Error>;
pub use crate::command::Command;
interchange::interchange! {
HidInterchange: ((Command, crate::types::Message), crate::types::InterchangeResponse)
}