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
use crate::event::bootloader_event::*;
use crate::event::general_event::*;
use crate::event::programmer_event::*;
use crate::event::bcm_event::*;
use crate::event::internal_event::*;
#[derive(Debug, PartialEq)]
pub enum EventPacketError {
WrongEventType,
}
#[derive(Debug, PartialEq)]
pub enum EventPacket {
Ack(AckEvent),
Data(DataEvent),
BootloaderHello(BootloaderHelloEvent),
ProgrammerHello(ProgrammerHelloEvent),
ProgrammerStartUpload(ProgrammerStartUploadEvent),
BcmChangeBrightness(BcmChangeBrightnessEvent),
InternalButtonPressed(InternalButtonPressedEvent),
InternalButtonReleased(InternalButtonReleasedEvent),
}