mod.rs 347 Bytes
Newer Older
Ralf's avatar
Ralf committed
1 2 3 4
//! The input module defines the event data structure, which is used to communicate
//! events from the sensors to the brain. Furthermore, there are a few
//! types that can be sued to generate inputs from I2C bits, and for debugging.

Ralf's avatar
Ralf committed
5 6
pub mod fake;

Ralf's avatar
Ralf committed
7
#[derive(Copy,Clone,Debug)]
Constantin Berhard's avatar
Constantin Berhard committed
8 9 10 11 12
pub enum Event {
    DoorLocked(bool),
    Buzz,
    UserCommand,
}